Commit 266039f
Jordi
fix(auth-profiles): break self-reinforcing session auth override loop
When a session falls back to a different provider (e.g. minimax → deepseek),
the session entry stores the fallback provider's auth profile override
(e.g. deepseek:default) with source 'auto'. On subsequent turns,
resolveSessionAuthProfileOverride builds the auth profile order from the
current run's provider (deepseek), not the agent's configured default
model provider (minimax). Since deepseek:default is valid for deepseek's
auth order, it's never re-evaluated against the agent's actual default
model, creating a self-reinforcing loop.
Fix: when source === 'auto', also include the agent's configured default
model provider's auth profiles in the order list. This ensures the
resolver can find and prefer the default model's auth profile when it's
available, breaking the loop.
Fixes #851261 parent ff79299 commit 266039f
1 file changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
164 | 193 | | |
165 | 194 | | |
166 | 195 | | |
| |||
0 commit comments