Repository navigation
fix(antigravity): match workspace history by conversation ID - #21638
Conversation
|
The folder-label/navigation gap found in this PR's real agy UI check now has a separate draft fix: #21640. It reuses the history matcher and resume host checks for folder workspaces, with 67 focused passing tests and before/after CDP screenshots. The actual Jump to Workspace action returns to the recorded folder. |
|
Verification update (2026-09-20):
Merge verdict: Approve scoped to CLI conversation-ID history joins, in stack order. This preserves the exact-ID match behavior and the PR's authenticated local macOS/native Windows generation evidence. Dedicated IDE-only history remains unverified; folder labels belong to #21640, and |
|
Fresh CI rerun: green. ELI5: Orca now reconnects history to the right workspace conversation instead of mixing sessions with similar metadata. Tests and CI are green; merge verdict: approve scoped history behavior. |
|
This run was cancelled 🛑 The workflow was cancelled before completion. Please check the link below for details. |
909c3b3
into
nwparker/agy-escape-navigation

Latest verification — 2026-09-20: Authenticated CLI generation now succeeds on macOS and Windows. The CLI conversation-ID join remains the scope of this PR. Folder labels are addressed by #21640.
/tmpversus/private/tmpcanonicalization remains outside scope. A real IDE-only history sample still awaits sign-in to the dedicated IDE profile; this is not evidence of IDE history support. All checks at the unchanged PR head are green. Earlier screenshots and test notes below describe their original runs.ELI5
Orca can find an Antigravity conversation but lose track of its folder when the first prompt differs from the history entry or is too long for the displayed title. This matches the conversation's ID instead of guessing from the title, so the session can appear in its workspace history.
What Changed
The workspace resolver prefers an exact
conversationIdfrom Antigravity history. The earliest valid matching entry supplies the origin workspace. Prompt/time matching remains only for legacy rows without an ID; a row explicitly naming a different conversation cannot supply a workspace.This carries @haoliangli's #15775 onto current code and fixes its foreign-ID fallback edge case. Stacked on #21636; this diff changes only history lookup and regressions.
Why
The installed agy writes stable IDs even for later
/usageentries. Titles are shortened for display and can reflect an earlier setup prompt, so widening title matching would increase wrong-folder matches. Exact identity avoids that ambiguity while preserving conservative legacy behavior.Linked Issue
Addresses #15774; continuation of #15775. Kept draft for cross-platform checks and the path-alias/folder-label limitations below.
Visual Proof
Created a fresh isolated conversation with installed agy 1.2.7 using a long initial prompt, then
/usage. Both parsers read the same real transcript and history rows:cwd: null.cwd: /private/tmp/orca-agy-readiness-workspace, from the matching conversation ID.The comparison above is parser evidence displayed in a hidden Orca terminal. A subsequent full build and hidden-app run also verified the session under Workspace scope with the exact recorded folder path:
The test workspace originally used
/tmp/..., while agy recorded/private/tmp/.... Workspace filtering did not equate those macOS aliases; the screenshot follows changing only the isolated test workspace to the exact recorded path. The row also still shows “Unavailable worktree” for this folder workspace. These are remaining adjacent gaps, not fixed by the conversation-ID join. Model generation returned HTTP 401, but agy saved the user turn and history metadata used by this verification. Only this investigation's validation sessions were used; no user transcript content is committed.Testing
Ten parser/discovery tests pass, covering mismatched and truncated titles, legacy matching, ambiguous rows, WSL discovery, and foreign conversation IDs. The foreign-ID regression fails against #15775's original logic. A separate temporary live-file probe verified the before/after result above. Full
pnpm tc, changed-code quality, pre-commit checks, and fullpnpm buildpass. The build includes desktop, CLI, web/mobile bundles and macOS native components at stack heade783bc9b67b.Review
The existing execution-host-scoped history transport is reused for local, WSL, and remote scans; there are no new paths, wire fields, or credentials. Real Linux/WSL/SSH/Windows runs and path-alias/folder-label fixes remain pending. This does not add IDE transcript discovery or token/cost analytics.
Agent skill upstream boundary
Checklist