Repository navigation
fix(antigravity): align replay identities and fork checkpoints with native inputs - #996
Conversation
|
Caution Review failedThe pull request is closed. No actionable comments were generated in the recent review. Summary
Merge Risk:
|
…ross upgrade When merged native user inputs had been saved with contiguous zero-based keys (turn-0, turn-1, ...), re-identifying groups by native boundary shifted the first group onto the second group's stored Turn ID. Restore the saved identities while keeping the corrected native fork checkpoints.
|
Merged, thanks @bwndlct! Verified against real |
…eview findings Resolve conflicts with main (preserving dfe3d82 trailing background promotion alongside independent autonomous wake Turns, #944 live WAL fork, #996 legacy merged Turn identities, #976 Turn-ID plan replay, and #942 request-level TTFT); validate turn.autonomous.completed strictly in harness-broker; isolate autonomous Turn recording/projection failures from foreground Turns and retry stale history reads; keep wake-observer polling until the window deadline so a notified-but-uncommitted wake is not dropped after publishing an earlier wake.
Summary
Cold replay previously reused stored turn references by the display-group position. Missing mappings or adjacent native user inputs grouped together could therefore assign an existing identity to the wrong turn, duplicate a key, or fork at the wrong native boundary.
Related issues
Relates to #905 (history recovery and mapping alignment). This PR does not change the live
readNativeTurnCount()lag/failure path or claim to resolve every part of that issue.Test plan
Reviewed independently with GPT-6.1 Sol at max reasoning, against upstream
80d4926a4; no blocking findings.node node_modules/typescript/bin/tsc -b --pretty false --force— passed.node node_modules/vitest/vitest.mjs run --config tests/vitest.config.js packages/adapters/antigravity/test/acp-projection.test.ts packages/adapters/antigravity/test/native-history.test.ts packages/adapters/antigravity/test/fork.test.ts packages/adapters/antigravity/test/rollback.test.ts packages/adapters/antigravity/test/adversarial-fork-rollback.test.ts packages/host-runtime/test/antigravity-history.test.ts packages/host-runtime/test/external-thread-history.test.ts packages/host-runtime/test/external-thread-fork.test.ts— 8 files, 104 tests passed.node tools/check-boundaries.mjs, andgit diff --check— passed.node node_modules/typescript/bin/tsc -p tests/tsconfig.json --noEmit --pretty false— reports 9 errors in unchanged desktop-extension and local-shared-host test files. Repeated the same command on detached, unmodified upstream80d4926a4in the same worktree: exactly the same 9 diagnostics; no new diagnostics in this PR.Local environment: macOS arm64, Node 24.22.0. Real Antigravity/Desktop fork UI, Windows, and the full repository test suite were not run. The tests use isolated fixtures and do not invoke a real model.
Remote CI note: the PR's Static checks job passes formatting and lint, then reports the same 12 test-type diagnostics as current upstream main
810f46e0b(upstream CI run 44740366913, PR run 44742539238). They are in unchanged desktop-extension/local-shared-host tests; subsequent upstream icon changes account for the difference from the 9 diagnostics on the local review baseline.The completed Windows job also reproduces upstream's
desktop-extension-data.test.tsEPERMrename failure (same test and source location as upstream run 44740366913). Vitest, Web Host, Ubuntu, macOS, Linux ARM64, and CodeRabbit checks passed for this PR. The two remaining failures are documented rather than changing unrelated extension code in this history fix.