feat(#1597): persist + apply per-agent claude effort override

This commit is contained in:
damocles 2026-06-10 01:15:50 +02:00 committed by mara
commit ec343046ea
3 changed files with 166 additions and 1 deletions

View file

@ -649,6 +649,7 @@ async fn run_claude(prompt: &str, files: &TurnFiles, bus: &Bus) -> Result<(bool,
// failure notification to the manager) instead of just "exit 1".
const STDERR_TAIL_LINES: usize = 20;
let model = bus.model();
let effort = bus.effort();
let resume = !bus.take_skip_continue();
if !resume {
bus.emit(LiveEvent::Note {
@ -670,6 +671,8 @@ async fn run_claude(prompt: &str, files: &TurnFiles, bus: &Bus) -> Result<(bool,
.arg("stream-json")
.arg("--model")
.arg(&model)
.arg("--effort")
.arg(&effort)
.arg("--settings")
.arg(&files.settings);
if resume {