Commit 62e136d
committed
fix: infer provider from thread model when no session or explicit selection exists
When a thread has a Claude model slug but no active session and no entry
in selectedProviderByThread (e.g., after a page refresh), selectedProvider
incorrectly fell back to 'codex'. This caused resolveModelSlugForProvider
to resolve the Claude slug against the codex model catalog, showing the
wrong model/provider and sending turns to the wrong provider.
Use the existing inferProviderForThreadModel helper (now exported from
store.ts) to infer the correct provider from the thread's model slug
before falling back to the 'codex' default.1 parent 6d47c75 commit 62e136d
2 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
417 | 422 | | |
418 | 423 | | |
419 | 424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
0 commit comments