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
{{ message }}
Repository navigation
cua serve sends no sandbox metadata, so node_repl denies all writes (temp dirs included): decide the sandbox profile #20
cua serve never sends _meta["codex/sandbox-state-meta"] on tool calls, so node_repl applies its restrictive default sandbox: reads allowed, writes denied everywhere, including $TMPDIR and /tmp. Spike #8 proved this is what breaks the vendor's profile enrichment (mkdtemp EPERM). It very likely also breaks every vendor feature that needs scratch space: downloads, uploads, screenshots to disk, the untested items of residue 4 (#15). With {"permissionProfile":{"type":"disabled"}} the enrichment works.
Question
Which sandbox metadata should cua serve send with every js call?
disabled (recommended under the project's trust model: the design says the agent is trusted and cua adds no anti-exfiltration policy; the desktop app's own computer-use sessions run with the host-chosen profile). Simplest, unblocks every vendor feature at once. Cost: node_repl's JS cells can write anywhere the user can.
A narrow profile that permits writes under cua's temp/run directories only, if the vendor schema has one (research: enumerate the permissionProfile types node_repl accepts, from the readable vendor source). Cost: a spike first, and some vendor features may still need other paths.
Implement as a server setting (CUA_SHIM_SANDBOX, default per the decision), document in README's configuration table, record the decision in the spec's Decision Log (it changes what the runtime may do on the user's machine), verify with the labelled listing and one download.
[board] needs-human: Owner decision: which codex/sandbox-state-meta permissionProfile cua serve should send. Recommended: disabled (trust model: agent is trusted, no anti-exfiltration policy); alternative: a narrow temp-only profile after a schema spike; or keep the write-denying default and work around per feature.
[answers] Owner's decision (2026-10-05): send permissionProfile type 'disabled' on every call cua makes to node_repl. Rationale: matches the design's trust model (the agent is trusted; cua adds no anti-exfiltration policy) and unblocks every vendor feature needing scratch space at once. Accepted cost: JS cells may write anywhere the user can. Implement as CUA_SHIM_SANDBOX (default disabled; 'default' sends nothing), README config table, spec Decision Log.
[board] in-progress: Implementing CUA_SHIM_SANDBOX (default disabled): sandbox-state-meta on js/js_reset/turn_ended and the profiles listing launch; a probe shows node_repl also requires sandboxCwd (file URI)
[board] in-review: PR #22: CUA_SHIM_SANDBOX (default disabled) on js/js_reset/turn_ended and the listing launch; live write ok/EPERM, labels 3/3 vs 0/3, verify green; independent review dispatched
Activity
SSFSKIM commentedon Oct 5, 2026
[board] needs-human: Owner decision: which codex/sandbox-state-meta permissionProfile cua serve should send. Recommended: disabled (trust model: agent is trusted, no anti-exfiltration policy); alternative: a narrow temp-only profile after a schema spike; or keep the write-denying default and work around per feature.
SSFSKIM commentedon Oct 5, 2026
[answers] Owner's decision (2026-10-05): send permissionProfile type 'disabled' on every call cua makes to node_repl. Rationale: matches the design's trust model (the agent is trusted; cua adds no anti-exfiltration policy) and unblocks every vendor feature needing scratch space at once. Accepted cost: JS cells may write anywhere the user can. Implement as CUA_SHIM_SANDBOX (default disabled; 'default' sends nothing), README config table, spec Decision Log.
SSFSKIM commentedon Oct 5, 2026
[board] ready-for-implementer: owner answered: disabled; implementation dispatched on feat/sandbox-meta
SSFSKIM commentedon Oct 5, 2026
[board] in-progress: Implementing CUA_SHIM_SANDBOX (default disabled): sandbox-state-meta on js/js_reset/turn_ended and the profiles listing launch; a probe shows node_repl also requires sandboxCwd (file URI)
SSFSKIM commentedon Oct 5, 2026
[board] in-review: PR #22: CUA_SHIM_SANDBOX (default disabled) on js/js_reset/turn_ended and the listing launch; live write ok/EPERM, labels 3/3 vs 0/3, verify green; independent review dispatched
SSFSKIM commentedon Oct 5, 2026
[board] done: merged to main