Skip to content

fix(native-sidecar): resolve js_bridge mount-root realpath without a bridge round-trip#1659

Merged
NathanFlurry merged 2 commits into
mainfrom
stack/fix-native-sidecar-resolve-js_bridge-mount-root-realpath-without-a-bridge-round-trip-wmqznzol
Jul 8, 2026
Merged

fix(native-sidecar): resolve js_bridge mount-root realpath without a bridge round-trip#1659
NathanFlurry merged 2 commits into
mainfrom
stack/fix-native-sidecar-resolve-js_bridge-mount-root-realpath-without-a-bridge-round-trip-wmqznzol

Conversation

@NathanFlurry

Copy link
Copy Markdown
Member
  • Resolve realpath("/") of a js_bridge mount locally (mirroring host_dir): host-side drivers often cannot canonicalize their own root and returned ENOENT, which aborted kernel permission-subject resolution before the readDir bridge call was ever issued.
  • Regression test: readdir of a js_bridge mount root against a driver whose realpath always fails.

@NathanFlurry

Copy link
Copy Markdown
Member Author

Stack for rivet-dev/agentos

Get stack: forklift get 1659
Push local edits: forklift submit
Merge when ready: forklift merge 1659

@railway-app

railway-app Bot commented Jul 8, 2026

Copy link
Copy Markdown

🚅 Deployed to the agentos-pr-1659 environment in agentos

Service Status Web Updated (UTC)
agentos 😴 Sleeping (View Logs) Web Jul 8, 2026 at 5:19 am

@NathanFlurry NathanFlurry changed the base branch from stack/fix-agentos-sidecar-harden-the-close_session-already-exited-short-circuit-mkkuuouw to main July 8, 2026 06:17
…ircuit

- Builds on #1640: also short-circuit on the session record already marked closed (covers exits the kill RPC does not report), and skip the second wait when SIGKILL itself reports the process gone.
- Mirror the short-circuit in the agentos-sidecar-core sync engine, with regression tests proving zero dead waits.
…bridge round-trip

- Resolve `realpath("/")` of a js_bridge mount locally (mirroring host_dir): host-side drivers often cannot canonicalize their own root and returned ENOENT, which aborted kernel permission-subject resolution before the readDir bridge call was ever issued.
- Regression test: readdir of a js_bridge mount root against a driver whose realpath always fails.
@NathanFlurry NathanFlurry force-pushed the stack/fix-native-sidecar-resolve-js_bridge-mount-root-realpath-without-a-bridge-round-trip-wmqznzol branch from 990ddda to 190fdca Compare July 8, 2026 06:17
@railway-app railway-app Bot temporarily deployed to agentos / agentos-pr-1659 July 8, 2026 06:17 Destroyed
@NathanFlurry NathanFlurry changed the base branch from main to stack/fix-agentos-sidecar-harden-the-close_session-already-exited-short-circuit-mkkuuouw July 8, 2026 06:17
@NathanFlurry NathanFlurry changed the base branch from stack/fix-agentos-sidecar-harden-the-close_session-already-exited-short-circuit-mkkuuouw to main July 8, 2026 06:18
@NathanFlurry NathanFlurry merged commit 190fdca into main Jul 8, 2026
2 of 4 checks passed
@NathanFlurry NathanFlurry deleted the stack/fix-native-sidecar-resolve-js_bridge-mount-root-realpath-without-a-bridge-round-trip-wmqznzol branch July 8, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant