Repository navigation
Conversation
Allow Antigravity (`agy`) panes to open Mobile Conversation View and participate in `conversation.read`, `send`, `choose`, and `key`. Because Antigravity hooks report `conversationId` without an explicit `transcript_path`, resolve `<HOME>/.gemini/antigravity-cli/brain/<id>/ .system_generated/logs/transcript_full.jsonl` (with `transcript.jsonl` fallback) off-thread inside the owning local, WSL, or SSH environment: - validate single-segment ASCII session IDs and reject symlinks or Windows reparse points across ancestor directories and leaf files; - reject subagent transcripts whose initial step has `source: "SYSTEM"`; - unwrap outer `<USER_REQUEST>` envelopes while preserving nested markup and repeated messages, omit private `thinking` and `SYSTEM` records, and pair `PLANNER_RESPONSE` tool calls with `GENERIC` tool outputs.
…paging coverage Parse the JSON record header prefix before "content" via serde_json when the first transcript line exceeds HEAD_BYTES without a newline, so whitespace-spaced "source": "SYSTEM" subagent headers still fail closed, and add multi-page backward-cursor projection coverage starting mid-turn on a GENERIC tool-output step.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enable Mobile Conversation View (
对话视图/ConversationScreen) and Desktop Runtimeconversation.*projection for Antigravity (agy) panes across local, WSL, and built-in SSH environments.Cause & Context
"conversation"route and Desktopruntime_api::conversationpreviously gated onkind in {"codex", "claude"}, causing Antigravity panes to display the placeholder waiting for a Codex or Claude Code session file.conversationIdwithout atranscript_pathfield; instead, Antigravity deterministically writestranscript_full.jsonl(andtranscript.jsonl) under<HOME>/.gemini/antigravity-cli/brain/<conversationId>/.system_generated/logs/.Key Changes
nebula_app/src/runtime_api/conversation.rs,nebula_app/src/gpui_shell/terminal/view/conversation.rs,nebula_app/src/assistant_answer/conversation/antigravity.rs,nebula_app/src/platform/local_paths.rs):"antigravity"inruntime_api::conversationwhile keepingTerminalView::runtime_conversation_sourcefree of disk or guest I/O on the UI thread (valid_antigravity_session_idrejects.,.., leading dots, and path separators).<HOME>/.gemini/antigravity-cli/brain/<session_id>/.system_generated/logs/transcript_full.jsonl(falling back totranscript.jsonlonly whentranscript_full.jsonlis absent; returningconversation_changediftranscript_full.jsonlappears mid-read) inside the owning environment:home_dir()rejecting symlinks/reparse points and open the leaf viaopen_regular_file_no_follow(O_NOFOLLOWon Unix,FILE_FLAG_OPEN_REPARSE_POINT+ attribute verification on Windows).$HOME/~([ ! -L ... ]in WSL;os.lstat+O_NOFOLLOWinremote_read.py) and return the resolved path for ownership verification.nebula_app/src/assistant_answer/conversation.rs,nebula_app/src/assistant_answer/conversation/antigravity.rs):<session_id>/.system_generated/logs/transcript[_full].jsonlsuffix and require a non-SYSTEMfirst step invalidate_sourceso subagent transcripts fail closed.<USER_REQUEST>...</USER_REQUEST>envelope onUSER_INPUT(preserving literal inner tags and repeated identical messages), emit assistant prose and FIFOtool_callsfromPLANNER_RESPONSEwhile omitting"thinking", pairMODELGENERICoutputs (marking detached"RUNNING"background-task launches completed once returned), and skipSYSTEMrecords.MainActivity.kt,values/strings.xml,values-zh-rCN/strings.xml,DesktopRecoveryTest.kt):supportsConversationView(kind)allowing"codex","claude", and"antigravity", updatechat_unavailablein English and Simplified Chinese, and add unit coverage inDesktopRecoveryTest.architecture/notes/nebula_app/assistant_answer/conversation/2026-11-13-antigravity-conversation-projection.md.Verification
cargo test -p nebula --bin pebrel --features "gpui-shell,gpui-test-support" --locked conversation(15 passed)cargo test -p nebula --bin pebrel --features "gpui-shell,gpui-test-support" --locked local_paths(4 passed)cargo test -p nebula --test file_line_budget --locked(2 passed)cargo check --locked --workspacepy -3.12 scripts/check_architecture.py --base 09e5eb47ed38a81b60b8cc0eba69a0c68004b0c9py -3.12 scripts/check_platform_cfg.py(459 / 459)py -3.12 scripts/check_prohibited_names.py range --base 09e5eb47ed38a81b60b8cc0eba69a0c68004b0c9 --head HEAD:app:testDebugUnitTestand:app:lintPrevieware left for the Android workflow environment.