Commit 8ec5892
committed
fix(cli): label reasoning vs toolcall slot explicitly in /model set output (#1182)
Reviewer (#1192) ran `/model set anthropic claude-haiku-4-5-20251001`
and asked "how is the reasoning model changing then?" because the
success line read
switched LLM provider: anthropic (claude-haiku-4-5-20251001)
with no indication of which slot the parenthetical model went into.
The /model show table below it then showed reasoning and toolcall both
equal to that model (toolcall was already haiku, reasoning had just
changed), which made it look like one command had silently overwritten
both. It hadn't — the parser treats the second positional as the
reasoning model and the toolcall row was unchanged — but the message
made the right behavior look wrong.
Always label both slots on a switch:
switched LLM provider: anthropic
reasoning model: claude-haiku-4-5-20251001 (ANTHROPIC_REASONING_MODEL)
[toolcall model: ... (ANTHROPIC_TOOLCALL_MODEL)] # only when --toolcall-model was passed1 parent e66ad5b commit 8ec5892
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
234 | 240 | | |
235 | | - | |
236 | | - | |
| 241 | + | |
| 242 | + | |
237 | 243 | | |
238 | 244 | | |
239 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
409 | 414 | | |
410 | 415 | | |
411 | 416 | | |
| |||
0 commit comments