docs(codex): say what Allow network access leaves alone

The owner's answer to the PR's open question: the switch does not also pass
--sandbox workspace-write. Settings, wiki, skill and release note now state
the consequence: a folder Codex runs read-only keeps the network closed and
asks per command. A golden test pins the decision by name, and the stale
launch-defaults comments now name networkAccess.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer committed 2026-11-06 02:52:52 +01:00
1 parent 35ff4e886c
commit 131a12d195
11 files changed
+45 -19

No files matched your search

+15
View File
@@ -197,6 +197,21 @@ describe('codex', () => {
expect(cx({ networkAccess: false })).toBe('codex');
});
it('never pairs network access with a sandbox mode (owner decision, 2026-11-06)', () => {
// A folder codex runs read-only must stay read-only: it keeps the network closed and asks
// per command. `--sandbox workspace-write` here would also grant write access to it.
for (const version of ['0.162.0', null]) {
const command = render({
mode: 'codex',
sessionId: SID,
codexConfig: { networkAccess: true },
claudeCliVersion: version,
});
expect(command).not.toContain('--sandbox');
expect(command).not.toContain('-s ');
}
});
// The `claudeCliVersion` option is the version every gate of THIS entry is measured
// against (the name predates a second gated CLI); undefined probes codex itself.
const cxv = (version: string | null, codexConfig?: SpawnBridgeOptions['codexConfig']) =>