feat(mma): Finalize Orchestrator Integration and fix all regressions
This commit is contained in:
@@ -108,6 +108,10 @@ def generate_tracks(user_request: str, project_config: dict, file_items: list[di
|
||||
json_match = json_match.split("```")[1].split("```")[0].strip()
|
||||
|
||||
tracks = json.loads(json_match)
|
||||
# Ensure each track has a 'title' for the GUI
|
||||
for t in tracks:
|
||||
if "title" not in t:
|
||||
t["title"] = t.get("goal", "Untitled Track")[:50]
|
||||
return tracks
|
||||
except Exception as e:
|
||||
print(f"Error parsing Tier 1 response: {e}")
|
||||
|
||||
Reference in New Issue
Block a user