Commit ea7a148
committed
fix(mcp): reset connectionStatus when a server is switched to OAuth
An authType flip to oauth (via a plain authType change or an implicit
oauthClientId) cleared the cache but left connectionStatus='connected', so a
server that had not completed its OAuth flow falsely read as connected and the
OAuth-authorization-required prompt never showed. Reset to disconnected on any
switch to oauth, matching the create path. Adds the missing test assertion.1 parent 99e235a commit ea7a148
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
356 | 359 | | |
357 | 360 | | |
358 | 361 | | |
| |||
0 commit comments