Skip to content

runtime: use install context for bundled bwrap#23634

Merged
bolinfest merged 1 commit into
mainfrom
pr23634
May 20, 2026
Merged

runtime: use install context for bundled bwrap#23634
bolinfest merged 1 commit into
mainfrom
pr23634

Conversation

@bolinfest
Copy link
Copy Markdown
Collaborator

@bolinfest bolinfest commented May 20, 2026

Summary

The Linux sandbox should find bundled bwrap through the same package-layout abstraction as the rest of the runtime, instead of maintaining a separate standalone-specific lookup path.

This adds an InstallContext helper for bundled resources and updates codex-linux-sandbox to ask the current install context for codex-resources/bwrap before falling back to the old executable-relative probes. The tests cover npm-style, standalone, and canonical package layouts so bwrap lookup follows the package structure introduced earlier in the stack.

Test plan

  • cargo test -p codex-install-context
  • cargo test -p codex-linux-sandbox --lib
  • just fix -p codex-install-context -p codex-linux-sandbox
  • just bazel-lock-check

Stack created with Sapling. Best reviewed with ReviewStack.

## Summary

The Linux sandbox should find bundled `bwrap` through the same package-layout abstraction as the rest of the runtime, instead of maintaining a separate standalone-specific lookup path.

This adds an `InstallContext` helper for bundled resources and updates `codex-linux-sandbox` to ask the current install context for `codex-resources/bwrap` before falling back to the old executable-relative probes. The tests cover npm-style, standalone, and canonical package layouts so `bwrap` lookup follows the package structure introduced earlier in the stack.

## Test plan

- `cargo test -p codex-install-context`
- `cargo test -p codex-linux-sandbox --lib`
- `just fix -p codex-install-context -p codex-linux-sandbox`
- `just bazel-lock-check`
@bolinfest bolinfest merged commit b0b383b into main May 20, 2026
46 checks passed
@bolinfest bolinfest deleted the pr23634 branch May 20, 2026 15:24
@github-actions github-actions Bot locked and limited conversation to collaborators May 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants