Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit 143a689

Browse files
committed
fix: codex exec 분기 추가
1 parent d21c83d commit 143a689

1 file changed

Lines changed: 17 additions & 8 deletions

File tree

internal/daemon/task_oneshot.go

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,23 @@ func (d *Daemon) buildOneShotArgs(containerName string, dal *localdal.DalProfile
162162
args = append(args, "-e", "TASK_REPO="+tr.Repo)
163163
}
164164

165-
// ── COMMAND ──
166-
// claude -p with allowed tools, reading task from stdin
167-
claudeCmd := `cd /workspace && TOOLS="Bash(git:*,gh:*) Read Write Glob Grep Edit" && claude -p --allowedTools "$TOOLS"`
168-
args = append(args,
169-
"-i", // stdin for task pipe
170-
image,
171-
"bash", "-c", claudeCmd,
172-
)
165+
// ── COMMAND (player-specific) ──
166+
switch dal.Player {
167+
case "codex":
168+
args = append(args, image,
169+
"codex", "exec",
170+
"--dangerously-bypass-approvals-and-sandbox",
171+
"-C", "/workspace",
172+
tr.Task,
173+
)
174+
default: // claude
175+
claudeCmd := `cd /workspace && TOOLS="Bash(git:*,gh:*) Read Write Glob Grep Edit" && claude -p --allowedTools "$TOOLS"`
176+
args = append(args,
177+
"-i",
178+
image,
179+
"bash", "-c", claudeCmd,
180+
)
181+
}
173182

174183
return args
175184
}

0 commit comments

Comments
 (0)