[0.10.101][Antigravity] Subagent / Child cascade sessions fail import with "has no readable user turns yet"
Environment
- nmem version:
0.10.101(Rust backend) - OS: macOS (Darwin 24.5.0)
- Host: Antigravity CLI (2.0)
Describe the Bug
When executing nmem t sync --from antigravity (or during automatic background sync), child cascade sessions spawned by an agent fail to import with:
Antigravity transcript has no readable user turns yet: The host may still be flushing this conversation. Retry after the turn completes.
Root Cause & Evidence
-
Child Cascade Metadata: In
~/.gemini/antigravity-cli/conversations/<session_id>.db(gen_metadata), subagent sessions have explicit lineage:root_cascade_id: 81fc5551-1342-485e-9822-011bb15e1f32parent_cascade_id: 81fc5551-1342-485e-9822-011bb15e1f32cascade_id: 77843301-0b35-4800-b27a-fdc6d5e9d4ae(andb819b491-...) These are spawned child agent sessions executing delegated sub-tasks.
-
Transcript Content (
transcript.jsonl):- In normal human sessions, user inputs are recorded with
"source": "USER_EXPLICIT","type": "USER_INPUT". - In these child cascades, the initial turn is a delegated system directive from the parent agent:
{"step_index":0, "source":"SYSTEM", "type":"SYSTEM_MESSAGE", "content":"... [Message] sender=81fc5551-... content=Please stage and commit the changes..."} - Subsequent entries are all model thoughts and tool invocations (
"source": "MODEL"). - There is no
USER_EXPLICITturn in the transcript.
- In normal human sessions, user inputs are recorded with
-
Current Behavior: Unlike Codex (which has explicit rollout skipping:
Skipped Codex sub-agent rollout), Antigravity session discovery iterates all.db/brain/entries indiscriminately. The parser strictly checks for human user turns, misinterpreting the lack ofUSER_EXPLICITas an incomplete flushing session.
Expected Behavior
- Either inspect
gen_metadata/ cascade relationships and skip importing child cascades (parent_cascade_id != cascade_id) as standalone threads (similar to Codex sub-agent skipping); - Or, if child cascades should be imported, recognize the initial
SYSTEM_MESSAGEwithsender=<parent_cascade_id>as the prompt turn rather than failing with "no readable user turns yet".
Thank you for the detailed lineage and transcript examples. A delegated child with no human input is different from a normal conversation whose first turn is still being written, so repeatedly telling you to wait is not an adequate outcome.
We are tracking that classification separately. The investigation will preserve the original transcript and distinguish verified child ownership from incomplete or unknown metadata; it should not relabel a parent SYSTEM directive as human input. One correction to the proposed cause: the current discovery path reads transcript files, not the private database directly. The child-handling outcome still needs a tested fix and release; we are not marking this resolved. Your supplied record shapes are enough to start—there is no need to upload private conversation content.
Hi @wey-gu @QingZ11,
Just checking in to see if there are any updates or a planned release milestone for this fix.
Running nmem threads sync --from antigravity is still failing on existing subagent sessions due to this parsing behavior, so we are looking forward to the updated classification/handling. Thanks again for your work on this!
Hi @Ran-Xing, sorry for my late reply. This issue wasn't assigned to anyone before, so it sat unattended for a week. wey is now looking after it and will get to it as soon as possible. Sorry we missed this issue.
Hi @Ran-Xing, thanks for your patience and for the detailed lineage examples. The fix has been merged: Mem now recognizes a delegated subagent conversation by the parent that Antigravity records for it in conversation_summaries.db, syncs it as its own thread, and keeps the delegated task as a system message instead of treating it as your input. When that record cannot be read, sync now says why instead of asking you to retry.
The fix will ship in an upcoming release. After upgrading, re-running nmem t sync --from antigravity should also pick up the subagent sessions that failed before. I'll keep this issue open and post here once the release is available.
Hi @Ran-Xing, the fix is now released in Nowledge Mem 0.10.112.
After updating, preview with nmem t sync --from antigravity, then run it again with --apply. Subagent conversations that failed before should now import as their own threads, with the delegated task kept as a system message.
If one still fails, sync now prints the reason instead of asking you to retry. Could you paste that reason (no conversation content needed) and say whether Antigravity was open when you ran the sync? Either way, please let us know how it goes. I'll keep this issue open until you confirm.