From 2d9ae7e8b5660de32eeb12f74e845417e70a7e64 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Wed, 8 Jul 2026 04:35:10 +0000 Subject: fix(executor): pass --model to the claude CLI in ContainerRunner buildInnerCmd never read t.Agent.Model when constructing the container's claude -p invocation -- every Claude-type task silently ran on the CLI's own default model regardless of what was requested via submit_task or the role-based escalation ladder. Confirmed via execution logs: every task run this session showed claude-sonnet-4-6 regardless of the model parameter passed, which only went unnoticed because sonnet was requested every time. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01VTUSAEKfsPc6WGDq45yPHD --- internal/executor/container.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/executor/container.go') diff --git a/internal/executor/container.go b/internal/executor/container.go index 6179ffc..e64adc4 100644 --- a/internal/executor/container.go +++ b/internal/executor/container.go @@ -564,6 +564,9 @@ func (r *ContainerRunner) buildInnerCmd(t *task.Task, e *storage.Execution, isRe if mcpEnabled { claudeCmd.WriteString(" --mcp-config " + mcpConfigContainerPath) } + if t.Agent.Model != "" { + claudeCmd.WriteString(" --model " + t.Agent.Model) + } claudeCmd.WriteString(" --output-format stream-json --verbose --permission-mode bypassPermissions") return []string{"sh", "-c", claudeCmd.String()} -- cgit v1.2.3