fix: clean up orchestrator chat UX

- Tool call names now show human-readable labels ("Dispatched agent"
  instead of "spawn_agent"), deduped if called multiple times
- Model label only shown when a real value is returned; "unknown"
  and null are suppressed; model names shortened (GLM-5, Gemini)

Made-with: Cursor
This commit is contained in:
2026-02-27 18:15:50 -08:00
parent fe89087cc5
commit b2b3424b05
2 changed files with 33 additions and 7 deletions

View File

@@ -74,7 +74,7 @@ export async function POST(
reasoning: data.reasoning ?? null,
toolCalls: data.toolCalls ?? [],
turns: data.turns ?? 0,
model: data.model ?? "unknown",
model: data.model || null,
sessionId,
});
} catch (err) {