fix(codex): block unsupported execute worktrees

This commit is contained in:
Tom Boucher
2026-05-10 17:38:36 -04:00
committed by GitHub
parent 14e47acd9c
commit b55848bd7d
4 changed files with 91 additions and 15 deletions

View File

@@ -2334,6 +2334,10 @@ Direct mapping:
at install time so \`model_overrides\` from \`.planning/config.json\` and
\`~/.gsd/defaults.json\` are honored automatically by Codex's agent router.
- \`fork_context: false\` by default — GSD agents load their own context via \`<files_to_read>\` blocks
- \`Task(isolation="worktree")\` / \`Agent(isolation="worktree")\` → no direct Codex mapping.
Codex \`spawn_agent\` does not create or bind a git worktree automatically.
Workflows that require this isolation must fail closed or use an explicit
manual worktree protocol before spawning (#3360).
Spawn restriction:
- Codex restricts \`spawn_agent\` to cases where the user has explicitly