Repository navigation
fix(orcad): a fence this desktop's exited process left is cleared without the 20-minute wait - #25941
Merged
OrcaWin merged 2 commits intoOct 6, 2026
Merged
Conversation
added 2 commits
October 6, 2026 13:56
…hout the 20-minute wait The client records the fence tokens its processes hold beside the profile. On a later launch, a POSIX fence carrying a token from a process that has exited, quiet for three heartbeats and with no live state mutation, is backdated so the existing stale rules clear it or hand it to Recover at once. Another desktop's fence, a live holder's, or one with a mutation still running keeps the normal stale window.
… and boot, and pruned after a day A token-file write that fails no longer breaks a fence operation; an entry recorded on another machine sharing the profile, or before a reboot, never proves its holder exited; entries older than 24 hours are dropped. Tests cover a journal kept for Recover, a successor freshened back after a racing backdate, a Windows host, and the record across release, supersession, busy and a lost connection.
OrcaWin
force-pushed
the
OrcaWin/node-rt-p3-own-dead-fence
branch
from
October 6, 2026 21:04
30b792f to
b1f404c
Compare
This was referenced Oct 6, 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.
ELI5
If you quit Orca while it was updating the server on an SSH host, the next launch couldn't update or stop that server for up to 20 minutes. It was waiting for its own leftover "busy" marker to expire. Now Orca recognises a marker it left itself and clears it straight away, but only when nothing from the old session can still be running on the host.
What Changed
orcad-held-fence-tokens.jsonbeside the profile.Why
tar/rmchildren survived.Linked Issue
Fixes # (maintainer: BUG-23, fence half; the quit-time crash is #25922)
Visual Proof
N/A: no UI change. This changes how an SSH host's activation fence is classified on the next attempt.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Added
orcad-exited-own-fence.test.ts, 13 tests that run the real host commands in a local shell:src/main/ssh: 4022 passed.tc:nodeandtypecheck:cli: clean.Changed-code quality gate: passed.
Tested on macOS.
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)