Repository navigation
fix(ai-vault): restore Antigravity workspace metadata - #15775
haoliangli wants to merge 1 commit into
Conversation
Prefer the stable conversation ID from Antigravity history records so setup prompts and long dispatched prompts still resolve to the correct workspace. AI-Assisted-By: gpt-5.6-sol via Pi
08a76c5 to
4682823
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe Antigravity history index now maintains separate conversation-ID and display-title lookups. Valid records with conversation IDs use the earliest matching timestamp, including records without display titles when workspace and timestamp data are valid. Workspace resolution checks the session conversation ID before using title and time-window matching. A regression test covers sessions whose later history prompt has a different title from the initial transcript prompt. Merge Risk: ⚪ Minimal · up to The change restores workspace metadata using the exact conversation ID while retaining legacy fallbacks and regression coverage; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Carried this approach into draft #21638 and verified it against fresh files from installed agy 1.2.7. A long initial prompt followed by Found one edge in this head ( Ten parser/discovery tests, full typecheck, and quality/pre-commit checks pass. Actual rendered workspace-list validation and real Linux/WSL/SSH/Windows runs remain pending, so no merge readiness or issue closure is claimed. Model generation failed HTTP 401; the saved user turn/history used for the live-file check were real. |
|
Thanks for putting this together, and sorry for the slow turnaround. The area has since been reworked and this is now covered on main by #21794 (conversationId workspace join), so we're closing this as superseded. If you still see the problem on the latest build, please open a fresh report or reopen with a current repro. Thank you for the contribution. |
ELI5
Antigravity already records a conversation ID alongside its workspace. Use that exact ID instead of guessing from prompt text, so conversations that begin with setup prompts still appear in the correct workspace history.
What Changed
conversationIdand by the existing normalized display text.Why
The transcript parser titles a session from its first user prompt. Antigravity history may only record a later prompt, so the existing title/timestamp join leaves
cwdunset even though the history row has the same stable conversation ID. Matching that identifier is both more reliable and safer than broadening truncated-title matching.Linked Issue
Fixes #15774
Visual Proof
N/A — this is a metadata parser fix with no UI code changes; the workspace-filter behavior is covered by the regression test.
Testing
Validated locally:
vitesttargeted Antigravity parser and source suites: 8 tests passedoxlinton both changed filesoxfmt --checkon both changed filesgit diff --checkAI Disclosure
GPT-5.6 Sol via Pi assisted with diagnosis, implementation, and test drafting. The change was reviewed against the repository's existing Antigravity history safety constraints.
Review
The direct join only accepts an exact conversation ID. The earliest valid history row wins if a conversation has multiple workspace entries, preserving origin-workspace semantics. Legacy rows retain the existing ambiguity and truncated-title protections.
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
The change is path-independent and reuses the same history transport for local, WSL, and remote scans. It adds one bounded map lookup per session and preserves backward compatibility with history rows that omit
conversationId.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)