Repository navigation
Conversation
…nscript rows A first send has no message boundary, so its echo is retired only by a user row stamped at or after the millisecond send time. Antigravity stamps whole seconds, so the send's own row reads up to 999ms earlier, never matches, and the echo stays pinned below every later turn. Whole-second rows now compare against the send time floored to its second; millisecond rows keep the exact comparison.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Whole-second transcript rows match a first send —
messageIsAfterPendingTimestampnow floors the comparison boundary to the row's second when the row is itself whole-second, so an Antigravity-style row stamped up to 999ms before the millisecond send time is recognized. Non-whole-second rows and the transcript-boundary path keep the exact comparison. - Two tests — one that fails without the fix (whole-second row preceding
sentAtretires the first send), one guarding that an earlier-second identical row still does not match.
The change is a private helper with a contained blast radius (messagesAfterPendingBoundary → prunePendingSends / pendingSendsAsMessages), and it only widens matching on the no-boundary (first-send) path, so it cannot introduce duplicates. The only nuance is that the whole-second detection is value-based, not agent-based, so a millisecond-precision row landing exactly on a second boundary is also floor-compared; the resulting worst case (an older identical prompt in the same second) is a narrow window the PR body explicitly weighs against a fixed tolerance.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe pending-send matching logic now accepts a whole-second transcript timestamp from the start of the send’s second when no transcript-clock boundary exists. It continues to exclude ties when a boundary exists. Regression tests cover a matching transcript row in the same second, which causes the pending send to be hidden and pruned, and a completed transcript row from the preceding second, which leaves it pending. Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The first-message fix is mergeable after normal checks. A narrow timing edge case may briefly hide an optimistic message, but no material disruption is established. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 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 |
Antigravity records first turns at whole seconds, leaving a millisecond composer echo visible below later turns. Publish optional source precision and use it when matching local sends and seeded launch prompts; retain strict transcript boundaries and exact matching when precision is absent. Credits @sojiro-o/#25117 for the first-send diagnosis and proposed regression. Retains the Antigravity Chat contributions from @haoliangli/#15773 and @sojiro-o/#24141 without changing accepted readiness or capture assets. Co-authored-by: sojiro-o <[email protected]>
Compose main 2b3b692 with the complete Chat feature and ed05 source-clock repair. Preserve provider step order and incoming split-reasoning order; remove a duplicated import introduced by the automatic merge and test the combined ordering contract. Retains credits for @sojiro-o/#25117 and #24141 and @haoliangli/#15773; original author objects and measured coauthor trailers remain unchanged.
|
Closing in favor of ed05fdb in #24627, which fixes this more precisely: the Antigravity decoder now marks its rows as second-precision, so only those rows get the rounded comparison, and launch prompts are covered too. This PR guessed precision from the value itself, and Antigravity Chat isn't on main yet anyway. Thanks for picking it up and for the credit! |

ELI5
When you send the first message of a new Antigravity conversation from Chat, Orca shows it twice. Orca shows your message right away and is supposed to hide that copy once Antigravity records the real one. For the first message, it never recognized the real one, so the copy stayed.
What Changed
Before: the first message sent from Chat in a new Antigravity session appears twice. The extra copy, with an empty "completed" turn under it, stays pinned at the bottom of the conversation as later turns arrive.
After: the first message appears once, like every later message.
Mechanism: Chat shows a sent message immediately, then hides it once the transcript contains the matching user row. Later sends anchor on the last message visible when they were sent. The first send has nothing to anchor on, so it only matches rows stamped at or after the send time. Antigravity stamps rows in whole seconds (
…00:44:36Z) while the send time is in milliseconds (…00:44:36.3), so the real row reads as before the send and never matches.In
messageIsAfterPendingTimestamp, a row stamped on an exact second is now compared against the send time rounded down to its second. Rows with millisecond precision (Claude, Codex) keep the exact comparison.Why
The time check exists so a new send can't be matched by an older message with the same text. Rounding only for whole-second rows keeps that protection: a whole-second row from any earlier second still doesn't match, and millisecond rows behave exactly as before.
Alternatives considered:
Linked Issue
Fixes #25116
Visual Proof
Before, on #24627 with Windows + WSL2, agy 1.2.16:
After: not captured. Antigravity Chat isn't on main yet (#24627), so the app can't show the fixed state on this branch alone. The regression test below covers the exact timestamps from this session.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Added
retires a first send whose whole-second transcript row precedes the send ms. It fails without the fix and passes with it.Added
keeps a first send visible against a whole-second row from an earlier second, so an older identical message still can't hide a new send.native-chat-pending,native-chat-pending-occurrence, anduse-native-chat-live-session-pendingtests: 81 passed.oxlint,oxfmt --check, and the changed-code quality gate (against main) pass.Full
pnpm typechecknot run locally (low-memory machine); CI will cover it.The bug itself was reproduced manually on Windows + WSL2 with Add Antigravity Chat and fix first-send and native-build lifecycle regressions #24627 (details: Add Antigravity Chat and fix first-send and native-build lifecycle regressions #24627 (comment)).
AI Disclosure
Investigation, fix, and tests were written with Claude Code (Claude Opus 5.5) and reviewed by me.
Review
Single function change in
src/renderer/src/components/native-chat/native-chat-pending.ts, plus two tests.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
Renderer-only comparison logic: no platform, SSH, mobile, or wire-format impact. Related: #24627 (Antigravity Chat), #24141.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)🤖 Generated with Claude Code