feat(conductor): Restore mma_implementation track
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user