Conversation
Under a sandboxed Codex parent on macOS, Grok either cannot reach its API and reports only built-in models, or refuses to start because its own sandbox profile cannot nest inside Codex's. Name both failure signatures and the parent profile a Grok-routing Codex setup needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
|
|
Thanks for this, @smashru. I appreciate the time you put into it. Open Pstack now accepts contributions as detailed issues rather than pull requests, so I'm closing this one. If it's still relevant, please open an issue describing the problem, how to reproduce it, and the change you'd suggest. I'll take it from there. |
|
Follow-up to the close: this work is already tracked in #56, so there is no need to open a new issue. This PR is noted there as prior art and will be credited when the fix lands. |
What changed
provider-dispatch.mdalready says the parent's tool sandbox controls whether a child CLI can reach its credentials and network. This adds the Grok-specific case, which fails in two ways that don't look like a sandbox problem from the receipt alone. On macOS, a Codex parent running any sandbox cannot host a Grok lane:read-only, orworkspace-writewithout network.grok modelscannot reach the API and falls back to its built-in model list. The preflight then recordsunavailable-modelfor a current model such asgrok-4.7, which reads like an account or model problem.workspace-writewith network. Grok exits with "could not apply the 'workspace' sandbox profile ... Refusing to start with its protections missing", because macOS sandboxes do not nest. The receipt recordschild-failed.The note says a Codex parent that routes roles to
grok:*must run withdanger-full-access, chosen deliberately in the user's profile. Grok's own sandbox still confines the lane. The note keeps the existing rule that a blocked CLI is a dropout, never a reason for the parent to escalate itself.Docs only. No runner or skill behavior changes. Found while verifying #81.
Verification
git diff --checkpass. No code or manifest changed.Live evidence (macOS, codex-cli 0.155.1, grok CLI 1.0.34,
grok:grok-4.7@xhighisolated-writelane launched by acodex execsession through the installedpstack-runner):workspace-write, no networkunavailable-modelgrok-4.6,grok-4.5, plus "HTTP export failed: network error"workspace-write, network on,~/.grokwritablechild-faileddanger-full-accesscomplete,grok-4.7-buildverifiedGIT_STATUS: ## HEAD (no branch)🤖 Generated with Claude Code