Commit f6c3c22
committed
fix(status): keep runtime model for fallback detection, use override for cost
The /status usage fix was too aggressive — it changed activeProvider/activeModel
globally, which broke fallback line detection (resolveActiveFallbackState saw
selected == active when both used the override). Revert activeProvider/activeModel
to use runtime model (modelRefs.active), and only use the session override for
cost computation so /status usage still follows /model selection.
Fixes 11 test failures in src/auto-reply/status.test.ts1 parent 139a6ef commit f6c3c22
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
| 599 | + | |
| 600 | + | |
603 | 601 | | |
604 | 602 | | |
605 | 603 | | |
| |||
1022 | 1020 | | |
1023 | 1021 | | |
1024 | 1022 | | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
1025 | 1026 | | |
1026 | 1027 | | |
1027 | | - | |
1028 | | - | |
| 1028 | + | |
| 1029 | + | |
1029 | 1030 | | |
1030 | 1031 | | |
1031 | 1032 | | |
| |||
0 commit comments