You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With macOS sandbox mode set to Auto, managed shell commands cannot read or write $TMPDIR or /tmp. Commands such as mktemp, touch, mkdir, and ls fail with Operation not permitted.
How to reproduce
Open $WORKSPACE in Maka on macOS.
Keep sandbox mode set to Auto and use the workspace-write profile.
Managed commands can read and write the configured $TMPDIR and /tmp roots.
Root cause
packages/runtime/src/builtin-tools.ts supplies os.tmpdir() and /tmp as lexical paths. packages/runtime/src/sandbox/macos-seatbelt.ts forwards those paths into READABLE_ROOT_N and WRITABLE_ROOT_N definitions. On macOS, /var and /tmp are symlinks into /private; Seatbelt evaluates the kernel-resolved paths, so lexical subpath clauses never match.
Resolving roots at the macOS policy-generation boundary fixes all root classes while keeping deny and protected-root comparisons consistent. Failed resolution can safely retain the original path.
Activity