Repository navigation
Description
Problem
Antigravity CLI (agy) works in Terminal, but Chat falls back to “Conversation unavailable — show terminal output.” The current resolver has no native Agy reader. This is a request to support another agent, rather than a demonstrated regression in existing support.
Proposal
Read the active Agy conversation into the existing Chat view: user messages, assistant text, and expandable tool activity, while leaving native commands and approvals in Terminal. Reading history should not invoke a model.
Agy 1.3.3 provides a readable brain/<conversation-id>/.system_generated/logs/transcript_full.jsonl. The selected Agy process holds a presence/<conversation-id>.lock; that held file identifies the store and current conversation, including after /new and /resume. Directory recency and startup arguments are insufficient.
Replay the ledger in order and reuse the existing paging and whole-output routes. Saved rewinds also require the active step indices from the conversation database: the export can retain removed records until replacement records arrive. No database payload decoding is needed. Planner calls and exported results lack a shared call ID in the tested format, so results should remain separate rows rather than be paired by position.
Missing or ambiguous identity should retain terminal fallback. Linux discovery has been tested; macOS can use lsof but needs native validation. Windows needs a separate means of establishing the active conversation. The database and export are separate writes, so their consistency limits should be documented.
Where
Chat and prompt cards
Workarounds and alternatives
Use Terminal today. Agy hooks provide conversation information during turns, but do not establish every idle session switch. Following the process-held lock avoids requiring user hook configuration. Reasoning, images, child-session expansion, and answering native approval dialogs can remain outside the initial reader.
Activity
feat(chat): add Antigravity conversation support (devswha#789)