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
Workflow Codex/OpenCode/Cursor phases drop thread.permissionMode #793
startWorkflowRun already reads thread.permissionMode and spawnPhaseAgent already has it, but only spawnAgentClaude passes it into buildArgs. Codex, OpenCode, and Cursor workflow phases ignore the thread picker.
Confirmed on origin/main (dc15acba):
Codex buildArgs maps mode via codexSandboxFor (plan → --sandbox read-only, bypassPermissions → danger-full-access, else workspace-write). Without the field, phases always get workspace-write.
OpenCode buildArgs emits --auto for bypassPermissions / leftover acceptEdits. Without the field, phases never get --auto.
Cursor buildArgs uses --mode plan (no --force) for plan, else --force. Without the field, phases always get --force.
Scope
Thread permissionMode through spawnAgentCodex / spawnAgentOpencode / spawnAgentCursor the same way Claude already does. Add argv-evidence tests (fake CLIs dump process.argv) for spawnPhaseAgent and startWorkflowRun.
Confirmed on origin/main (dc15acba): startWorkflowRun already read thread.permissionMode and spawnPhaseAgent already had it, but only spawnAgentClaude passed it into buildArgs. Codex/OpenCode/Cursor phases ignored the picker.
Fix (this thread): those three spawners now pass permissionMode || "default" into buildArgs, same shape as Claude. spawnPhaseAgent forwards the field it already had.
Activity
currentbits commentedon Sep 1, 2026
Confirmed on
origin/main(dc15acba):startWorkflowRunalready readthread.permissionModeandspawnPhaseAgentalready had it, but onlyspawnAgentClaudepassed it intobuildArgs. Codex/OpenCode/Cursor phases ignored the picker.Fix (this thread): those three spawners now pass
permissionMode || "default"intobuildArgs, same shape as Claude.spawnPhaseAgentforwards the field it already had.Evidence (watched fail first, then pass):
electron/test/workflow-permission.test.js: 6/6 pass--sandbox workspace-write, nowread-only--auto--force, now--mode planelectron/test/workflow.test.js: 13/13 passelectron/test/workflow-kimi.test.js: 2/2 passelectron/test/permission-modes.test.js: 16/16 passDid not reopen effort (#785) or webSearch (#792). Did not add phase resume (#782).
Merge origin/main into leftover extract; keep workflow Codex effort/p…
currentbits commentedon Sep 2, 2026
Worktree already on origin/main via #840 (
ca6c5146). Closing and marking plan:done.