fix(omo-senpi): skip drvfs config watchers - #7476
Merged
Merged
Conversation
code-yeongyu
force-pushed
the
fix/drvfs-config-watch-sb
branch
from
August 29, 2026 12:06
043f02f to
2c926a5
Compare
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.
Fixes #6450
Supersedes stale community PR #7368.
Root cause
On WSL, Windows drives are Plan 9/v9fs mounts (
statfs().type === 0x01021997). Senpi expandsdirconfig-watch targets into recursive watches, so project and ancestor targets can block while traversing a drvfs tree. Currentdevhad no filesystem-type guard.Changes
statfsSyncfilesystem-type probe with an injectable seam for deterministic tests..omoconfig targets and ancestor creation targets when the projectcwdis on Plan 9.omo.jsextension bundle.Test evidence
bun test packages/omo-senpi/src/components/config-watch: 39 passed, 0 failed.bunx tsgo --noEmit -p packages/omo-senpi/tsconfig.jsonpassed.node packages/omo-senpi/plugin/scripts/build-extension.mjs --checkpassed.node packages/omo-senpi/scripts/qa/drive.mjsreturnedPASS, withrealSenpiUntouched: true..omo/evidence/omo-senpi-adapter/20260829-drvfs-config-watch/README.mdResidual risk
This macOS runner cannot provide an actual WSL Plan 9 mount, so the drvfs branch is tested via the injected filesystem identity seam and exact magic value. The live adapter driver uses an isolated Senpi agent directory and does not exercise a real drvfs mount.
Summary by cubic
Fixes #6450 by skipping config-watch targets on WSL's Plan 9 (drvfs) filesystem so recursive watches no longer block while traversing those trees.
Changes
statfsSyncfilesystem-type probe with an injectable seam for deterministic tests..omotargets and ancestor creation targets when the projectcwdis on Plan 9.omo.jsextension bundle.Written for commit 2c926a5. Summary will update on new commits.