Commit 3e1a758
committed
fix: prioritize CLI --model argument over command markdown model
Fixes #17783
The CLI --model argument should have highest priority according to docs,
but it was being overridden by model specified in command/agent markdown.
Changed the priority order in session/prompt.ts to check input.model
(CLI argument) before falling back to command.model and command.agent model.1 parent 51fcd04 commit 3e1a758
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1804 | 1804 | | |
1805 | 1805 | | |
1806 | 1806 | | |
| 1807 | + | |
1807 | 1808 | | |
1808 | 1809 | | |
1809 | 1810 | | |
| |||
1813 | 1814 | | |
1814 | 1815 | | |
1815 | 1816 | | |
1816 | | - | |
1817 | 1817 | | |
1818 | 1818 | | |
1819 | 1819 | | |
| |||
0 commit comments