Repository navigation
fix(orcad): a desktop that met another desktop's update fence clears its note once the host answers - #25995
Merged
OrcaWin merged 1 commit intoOct 6, 2026
Conversation
…its note once the host answers The serving note "holds this host" and a fence-busy update deferral stayed until a reconnect, minutes after the other desktop's update finished. The connect now rechecks serving and the update every 45s while the fence holds, and publishes the first answer without it. A recorded deferral is dropped once the host runs its candidate or a newer release. Co-Authored-By: Claude <[email protected]>
2 of 3 tasks
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.
ELI5
When two desktops connect to the same outdated managed SSH server, one of them updates it and the other waits. The waiting desktop kept saying "An update, rollback or recovery holds this host" for minutes after the update finished. Its server status also kept showing a "deferred update" for a version the host was already running. Now the waiting desktop checks again every 45 seconds and clears the note as soon as the host answers normally. The stale deferred update disappears once the host runs that version.
What Changed
Before (real-host testing):
serving: unverifiable, "An update, rollback or recovery holds this host; it was not started."until B reconnected, more than 6 minutes after A finished, even though B's calls worked.environment statuson B keptdeferredUpdate {code: orcad_activation_fence_busy, candidateVersion}for a version already active.After:
orcad_activation_fence_busy.Why
Linked Issue
Real-host testing: two desktops racing an update on one outdated managed host (Rerun 3 on r8-shared; also r17-shared).
Visual Proof
N/A. This is status behavior, and the tests below cover it.
Testing
managed-server-fence-recheck.test.ts:orcad-managed-update-deferrals.test.ts:I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
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
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)