Repository navigation
Conversation
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-10-telemetry
branch
from
October 22, 2026 12:26
6709a97 to
110a0b5
Compare
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-10-hooks
branch
from
October 22, 2026 12:26
bf14b4f to
65a500f
Compare
nwparker
marked this pull request as ready for review
October 22, 2026 12:27
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-10-telemetry
branch
from
October 22, 2026 12:33
110a0b5 to
5770de8
Compare
…he WSL bridge shares (R42) Co-Authored-By: Claude <[email protected]>
…ff skips too; mark the R42 guard to drop with the bridge Co-Authored-By: Claude <[email protected]>
nwparker
force-pushed
the
nwparker/wsl-mover-d1b-10-hooks
branch
from
October 22, 2026 12:33
65a500f to
0146ba1
Compare
Contributor
Author
|
Contained in the dark landing PR #34059 (its head commit is an ancestor of the landing branch). Closing in favour of it; branch kept. |
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
During the switch to WSL hosts, two parts of Orca can manage agent hooks in the same Linux home: the old WSL bridge on Windows, and the new Orca server inside the distro. We checked that they don't break each other's hooks. They don't, with one exception. Turning hooks off on the server deleted the hooks the bridge's terminals still use. Now the server leaves them in place, which is what Orca already does at startup.
What Changed
~/.orca/agent-hooks/<agent>-hook.sh, and the same command string. Both recognize it with the same matcher, so each reconcile replaces the other's entry with identical bytes.claude-hook-bridge-host-coexistence.test.tschecks both orders:~/.codex.applyAgentStatusHooksEnabledtakeskeepSharedEntries, and the runtime sets it when it runs as a WSL host's orcad (isWslHostOrcadProcess()). Off then means "skip", never "remove".COMPAT(wsl-bridge), to be dropped with the bridge at D4. Until then, a WSL host can't remove these entries; the desktop still removes its own.Why
Linked Issue
N/A (internal stack: D1b-10 of the WSL mover; risk row R42)
Visual Proof
N/A: no UI change.
Testing
claude-hook-bridge-host-coexistence.test.ts: both orders, idempotent, user hook kept.managed-agent-hook-controls.test.ts: withkeepSharedEntries, off and per-agent disable remove nothing.runtime-client-settings-wsl-host-hooks.test.ts: the flag is set only on a WSL host's orcad, both for off and for a per-agent disable.orcad-codex-account-homes.test.ts: on a WSL host with hooks off, the account home is left alone.pnpm tc:nodeandcheck:code-quality:changedare clean.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Before opening, an adversarial reviewer went over this. It found no HIGH issues. Both MEDIUM findings are fixed in bf14b4f15f2f:
COMPAT(wsl-bridge), drop at D4).Left as LOWs:
orca agent hooks disablerun inside a distro can still remove the entries;Agent skill upstream boundary
Notes
d1b-10-hostagent)./bin/sh -cand the bridge's doesn't. Both match, so each side rewriteshooks.jsonto its own form. There is always one working entry, but the file churns.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)