You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Addresses four confirmed issues from the 1.4.266 release scan (Slice D):
STA-16424 (remote notification switches): useServerSettingValue now surfaces a 'error' state on failed settings.get reads, exposes a retry() callback, and automatically retries when the server's host connection transitions back to connected. ServerNotificationsPane renders an inline retry prompt instead of leaving all switches permanently disabled.
STA-16421 (Antigravity Gemini API key restarts): accounts.antigravityChatApiKeySave and accounts.antigravityChatApiKeyClear now only restart running Antigravity chats when the host's configured auth method is gemini-api-key, avoiding interrupting unrelated Google/Enterprise/Agent Platform chats.
STA-16418 (review-note failure-owner retention): Extracted ownNoteIdsAfterFailure into diff-comment-failure-owners.ts with forgetDiffCommentFailureOwners wired into worktree and folder-workspace teardown (remove-worktree-store-cleanup.ts and worktree-purge-state.ts), skips inserting gone copies, avoids storing note IDs for folder owners, and prunes dead owners on subsequent failures.
STA-16436 (hidden start-failure rows on resend): Added structuredAgentSessionReplacedStartFailureRowIds and passed hidden row IDs into agentSessionVisibleFailureFacts across useStructuredAgentSessionStartFailureFacts, NativeChatStructuredSession, useStructuredAgentSessionDeliveryNotices, and structuredConversationCommandRunner, so hidden start-failure rows no longer suppress sign-in/setup notices on resent messages.
(STA-16410 was already fixed on main by PR #51603 / d37173f17114.)
Performance
useServerSettingValue subscribes to the single environmentId entry via useRuntimeHostStatusSelector(environmentId, ...) rather than the full host-status map.
ownNoteIdsAfterFailure is now retired on worktree/folder removal and pruned of stale owners, eliminating unbounded retention of removed workspace owners and attempted note IDs.
structuredAgentSessionReplacedStartFailureRowIds short-circuits immediately when there are no rejected submissions, adding zero work during normal chat streaming.
Verification
pnpm check:changed — 41/41 checks passed (format, oxlint, typecheck, unit tests, localization catalogs/extraction, and all ratchets).
The changes update when Antigravity API-key operations restart live chats, which agent-session failure rows appear, how server notification settings handle load errors, and how diff-comment persistence tracks failed writes.
Estimated code review effort
Merge Risk: Low · up to 68be2
The changes behave as intended in the main paths. Two small gaps remain: a command reply could briefly show a duplicate failure notice or hide one when a resend changes during the send, and removing a folder workspace leaves a small leftover diff-comment tracking entry. Neither is likely to disrupt normal use, so merging is low risk after these are addressed or accepted.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title lists four unrelated fixes (remote notification reads, Antigravity key restarts, failed note owner retention, hidden start-failure facts) in one line. Each part matches a real change in the …
Description check
The description follows the repository template. It has a Summary, a Performance section, and a Verification section, and it describes the four linked issues in detail. It omits several required templ…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title lists four unrelated fixes (remote notification reads, Antigravity key restarts, failed note owner retention, hidden start-failure facts) in one line. Each part matches a real change in the changeset, so the title is not off-topic. It is overly broad and does not name a single primary change, and it is long at 145 characters.
Full details: Description check
Explanation
The description follows the repository template. It has a Summary, a Performance section, and a Verification section, and it describes the four linked issues in detail. It omits several required template sections: ELI5, a clear Linked Issue (it uses 'Fixes #' with no number and no issue link), Visual Proof for the UI change in STA-16424, a Risk level, the Testing checklist, and the Performance line is incomplete. The Notes and Checklist sections are also not addressed. Because the core content is present but several required sections are missing or incomplete, the check is marked as a pass with noted gaps.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Read reply-time submissions at the same moment as the items.
structuredAgentSessionReplacedStartFailureRowIds receives args.chat.submissions. That value comes from the render that created the run closure, so it does not change during the send await. args.items() reads the live items at reply time. A resend or withdrawal during the await can therefore make the two inputs disagree.
When they disagree, conversationCommandReply can make the wrong choice. If a pending resend was withdrawn, a start failure that is visible again in the rows can be left out of startFailures. A reply that repeats that failure then shows it twice. If a resend was added during the await, the failure can be left in startFailures while its row is hidden. The reply then suppresses the text, and the user sees no failure notice.
The reply-time replacement check should use the submissions read at the same moment as the items, so both observations come from one state.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Stability & Availability · Quick win
Retire failure-owner tracking when a folder workspace is removed.
STA-16418 requires failure-owner retirement during folder-workspace teardown. The only calls to forgetDiffCommentFailureOwners pass worktree IDs: worktree teardown in remove-worktree-store-cleanup.ts and the bulk purge in worktree-purge-state.ts. The renderer folder-removal path in folder-workspace-removal.ts clears unread state and filters folderWorkspaces, but it does not call the helper. A failed folder write that is followed by folder removal keeps its failure-owner entry and note IDs in the module map.
After a successful folder removal, call forgetDiffCommentFailureOwners with the removed folder's workspace key. Use the same key that the existing removeWorkspaceUnreadState call uses in that path.
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
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
Addresses four confirmed issues from the 1.4.266 release scan (Slice D):
useServerSettingValuenow surfaces a'error'state on failedsettings.getreads, exposes aretry()callback, and automatically retries when the server's host connection transitions back to connected.ServerNotificationsPanerenders an inline retry prompt instead of leaving all switches permanently disabled.accounts.antigravityChatApiKeySaveandaccounts.antigravityChatApiKeyClearnow only restart running Antigravity chats when the host's configured auth method isgemini-api-key, avoiding interrupting unrelated Google/Enterprise/Agent Platform chats.ownNoteIdsAfterFailureintodiff-comment-failure-owners.tswithforgetDiffCommentFailureOwnerswired into worktree and folder-workspace teardown (remove-worktree-store-cleanup.tsandworktree-purge-state.ts), skips inserting gone copies, avoids storing note IDs for folder owners, and prunes dead owners on subsequent failures.structuredAgentSessionReplacedStartFailureRowIdsand passed hidden row IDs intoagentSessionVisibleFailureFactsacrossuseStructuredAgentSessionStartFailureFacts,NativeChatStructuredSession,useStructuredAgentSessionDeliveryNotices, andstructuredConversationCommandRunner, so hidden start-failure rows no longer suppress sign-in/setup notices on resent messages.(STA-16410 was already fixed on
mainby PR #51603 /d37173f17114.)Performance
useServerSettingValuesubscribes to the singleenvironmentIdentry viauseRuntimeHostStatusSelector(environmentId, ...)rather than the full host-status map.ownNoteIdsAfterFailureis now retired on worktree/folder removal and pruned of stale owners, eliminating unbounded retention of removed workspace owners and attempted note IDs.structuredAgentSessionReplacedStartFailureRowIdsshort-circuits immediately when there are no rejected submissions, adding zero work during normal chat streaming.Verification
pnpm check:changed— 41/41 checks passed (format, oxlint, typecheck, unit tests, localization catalogs/extraction, and all ratchets).