ultraworkers-claw-code/rust/crates
Jobdori 89104eb0a2 fix(sandbox): probe unshare capability instead of binary existence
On GitHub Actions runners, `unshare` binary exists at /usr/bin/unshare
but user namespaces (CLONE_NEWUSER) are restricted, causing `unshare
--user --map-root-user` to silently fail. This produced empty stdout
in the bash_stdout_roundtrip parity test (mock_parity_harness.rs:533).

Replace the simple `command_exists("unshare")` check with
`unshare_user_namespace_works()` that actually probes whether
`unshare --user --map-root-user true` succeeds. Result is cached
via OnceLock so the probe runs at most once per process.

Fixes: CI red on main@85c5b0e (Rust CI run 23933274144)
2026-04-03 16:24:02 +09:00
..
api Preserve usage accounting on OpenAI SSE streams 2026-04-02 10:04:14 +00:00
commands feat: add 40 slash commands — command surface 67/141 2026-04-03 08:09:14 +09:00
compat-harness wip: plugins progress 2026-04-01 07:09:06 +00:00
mock-anthropic-service Expand parity harness coverage before behavioral drift lands 2026-04-03 04:00:33 +00:00
plugins Merge branch 'dori/hooks-parity' into main 2026-04-02 18:36:37 +09:00
runtime fix(sandbox): probe unshare capability instead of binary existence 2026-04-03 16:24:02 +09:00
rusty-claude-cli Expand parity harness coverage before behavioral drift lands 2026-04-03 04:00:33 +00:00
telemetry feat: anthropic SDK header matching + request profile 2026-04-01 05:55:25 +00:00
tools feat: add MCPTool + TestingPermissionTool — tool surface 40/40 2026-04-03 07:50:51 +09:00