Fix: Forward customModel to batch synopsis call#581
Conversation
The task-execution call forwards customModel but the synopsis call did not, causing synopsis generation to use the default model instead of the user's configured custom model.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR is a targeted follow-up to #563 that forwards
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant BP as batch-processor.ts<br/>(runPlaybook)
participant SA as agent-spawner.ts<br/>(spawnAgent)
participant CL as spawnClaudeAgent
participant JL as spawnJsonLineAgent
Note over BP: Task Execution
BP->>SA: spawnAgent(toolType, cwd, finalPrompt, undefined,<br/>{ customModel })
alt toolType === 'claude-code'
SA->>CL: spawnClaudeAgent(cwd, prompt, agentSessionId, readOnly)
Note over CL: ⚠️ customModel silently dropped
else usesJsonLineOutput
SA->>JL: spawnJsonLineAgent(..., customModel)
Note over JL: ✅ customModel applied via def.modelArgs
end
Note over BP: Synopsis Generation (this PR's fix)
BP->>SA: spawnAgent(toolType, cwd, BATCH_SYNOPSIS_PROMPT,<br/>result.agentSessionId, { customModel })
alt toolType === 'claude-code'
SA->>CL: spawnClaudeAgent(cwd, prompt, agentSessionId, readOnly)
Note over CL: ⚠️ customModel silently dropped (pre-existing)
else usesJsonLineOutput
SA->>JL: spawnJsonLineAgent(..., customModel)
Note over JL: ✅ customModel now correctly forwarded
end
|
Summary
customModelto the synopsisspawnAgentcall inbatch-processor.tsso synopsis generation uses the user's configured model instead of the defaultagent-spawner.ts(leftover from fix: enforce read-only mode for JSON line agents and pass customModel in CLI #563)Context
Follow-up to #563 — the task-execution call got
customModelforwarded but the synopsis call was missed.Test plan