feat(conductor): Restore mma_implementation track

This commit is contained in:
2026-02-26 13:13:29 -05:00
parent ff1b2cbce0
commit 9e56245091
19 changed files with 339 additions and 68 deletions

View File

@@ -91,9 +91,13 @@ class GeminiCliAdapter:
if "session_id" in data:
self.session_id = data.get("session_id")
elif msg_type == "message":
content = data.get("content", data.get("text"))
if content:
accumulated_text += content
# CRITICAL: Only accumulate content from the assistant/model role.
# The CLI echoes back the 'user' prompt in the stream, which we must skip.
role = data.get("role", "")
if role in ["assistant", "model"]:
content = data.get("content", data.get("text"))
if content:
accumulated_text += content
elif msg_type == "result":
self.last_usage = data.get("stats") or data.get("usage")
if "session_id" in data: