Commit 8bf34b6
committed
fix(cli): pass --model flag to ConfigOverrides in run command
Fixes bounty issue #1485
The --model CLI flag was being captured but ignored because run_cmd.rs
used Config::default() instead of Config::load_sync() with the model
override. This change creates ConfigOverrides with the model and cwd
fields from CLI arguments, ensuring CLI flags take precedence over
agent defaults.1 parent 5579873 commit 8bf34b6
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
403 | 408 | | |
404 | 409 | | |
405 | 410 | | |
| |||
0 commit comments