Repository navigation
fix: perf and flaky-test follow-ups from the upstream syncs - #851
Merged
Merged
Conversation
- server: migration 132 adds the delegatedFrom fields to the active shell index, so listActiveShellIndex parses no thread payload. - server: one ref move refreshes VCS status once. The HEAD watch compares HEAD, the branch ref, packed-refs and the index instead of event kinds, so Linux's two HEAD.lock Removes and a commit's index plus HEAD.lock no longer refresh twice. - web: a draft branch pick stops watching the draft once it settles, instead of leaving a store subscription per pick. - scenarios: an iOS fill gets an answer time sized to its text once sent, so a loaded runner no longer reports a landed fill as cut off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Batch fix 0201, group 5: the perf items and the flaky iOS scenario from the upstream-sync follow-up queue.
Fixes
ProjectionStore.listActiveShellIndexreads$.delegatedFrom.environmentId,.threadIdand.title, which migration 118'sorchestration_v2_projection_threads_active_shell_idxdid not cover, so SQLite parsed every active thread's payload. Migration 132 recreates the index with those three expressions, guarded byjson_validand identical to the query's.assertShellIndexCoversShellsnow runsEXPLAINon the traced read and asserts nojson_extractopcode is left. Before the migration it failed in all 9 cases, with 3 extracts.HEAD.lockfires tworenamecallbacks, and both stat asRemove HEAD.lock, so a soft reset refreshed twice. A commit refreshed once forindexand again forHEAD.lock.watchHeadno longer tracks event kinds (nextHeadWatch). Each event now refreshes only whencheckoutStatediffers from what the previous event saw.checkoutStateis the HEAD identity, plus stat identities of the index,packed-refsand the loose branch ref in the common directory. A repeated event for the same move sees nothing new. Every real soft reset, commit,git add, checkout or detached HEAD move changes one of those files. A refresh always starts after the state it records, so nothing a skipped event saw goes unread. The new test covers a linked-worktree layout: a repeated read, two soft resets, an index rewrite, and a branch kept only inpacked-refs. The live commit/soft-reset test and the reftable tests still pass.BranchToolbarBranchSelectorsubscribed to the composer draft store and never unsubscribed.beginDraftBranchPicknow holds one watcher per draft. It ends when the checkout settles (done, refused, or an early exit), when the workspace changes, or when a later pick replaces it. Two logic tests cover settling and staleness. The selector usesPromise#finally/catchrather thantry/finallyso React Compiler still compiles it.fillis no longer reported as cut off on a loaded runner (scenarios, flaky).new-task-draft-title-keeps-whole-charactersfailed three times on the self-hosted runner withACTION_FAILED: fill timed out before the device answered; its input may have been dispatched. Every step of afillshares one 30 s action budget, and once the fill is sent it answers withinmax(remaining, 250 ms). When snapshots on a busy host use up most of the budget, the 96-character type-and-verify loses the race, and the result is a non-retryableACTION_MAY_HAVE_COMMITTED. Our@e2e-dev/mobilepatch now givesfillandclearan answer time sized to the text once sent,5 s + 100 ms per character. The test timeout still caps it.Verification
vp run check:changed: all green (format, lint, knip, typecheck, 92 test files, React Compiler).checkoutStateandbeginDraftBranchPicktests: the functions don't exist on main.--action-timeout 2500to make the load deterministic: the base patch fails with the exact CI error (fill timed out before the device answered…), and this patch passes. It also passes at the default and at 4 s.onicode environment link.questionchild to B.Council review
Not run. Antigravity reports
model_unavailablefor gemini-4-neon, which it doesn't advertise (offered: gemini-4-hydrogen, gemini-3.8-flash, claude-opus-5-5, claude-sonnet-5-5, gpt-oss-120b-medium). The batch rules don't allow switching the reviewer model, so this is an external limit.Implemented by Claude Opus 5.5 in Claude Code (Onicode).
🤖 Generated with Claude Code