Repository navigation
fix(mobile): show only installable updates in update all - #1087
Merged
Merged
Conversation
nixuuu
enabled auto-merge (squash)
November 21, 2026 17:06
nixuuu
added a commit
that referenced
this pull request
Nov 21, 2026
## Change Thread lifecycle writes now take PostgreSQL's `FOR NO KEY UPDATE` lock on thread rows. A cascade still serializes with other writes. A worker transaction updating a side thread can finish a foreign-key check on its parent while the cascade waits for the side thread. In CI, archive held the parent row while waiting on the child. The ingest transaction held the child and was waiting on the parent during the second update of the tuple. Added a regression that observes the lock wait in PostgreSQL and then lets the child transaction finish against both archive and soft delete. Related: #1087 ## Verification - The new archive regression failed with PostgreSQL `40P01` before the fix. - Eight focused runs under the same two-CPU limit used to reproduce the race passed all 40 tests in `thread-snooze.test.ts`. - The existing schedule-writer concurrency test, integration typecheck, edited-file lint and diff checks passed. CI handles the full repository gate.
This was referenced Nov 22, 2026
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.
Changes
The mobile Updates sheet uses the gateway's update plan for its count, sidebar indicator, and Update all action. When the gateway rejects an empty plan, the phone reloads the snapshot and shows the current state. In Workers settings, Show update progress opens the sheet for the current run.
A paired desktop row gets its state and update action from the desktop control channel. An up-to-date app stays current when its worker disconnects. A downloaded app update remains actionable when the feed omits the target version.
Fixes: #371
Verification
tests/integration/update-center.test.tspassed throughbun run check:tmp. Coverage includes remote desktop and binary worker updates, plus an empty Canopy plan with manual updates and an installable agent CLI.Copy audit