Commit 4a83b5c
Fix TODO loading wrong workspace on startup
Constructor's InitializeMcpEndpoint() was calling ApplyWorkspaceConnectionOptions()
with a synthetic Default entry, which triggered SwitchWorkspaceConnectionAsync and
set IsSwitchingWorkspace=true. When LoadWorkspaceConnectionsAsync later selected the
saved workspace (RequestTracker), the switch was blocked by IsSwitchingWorkspace.
Fix: Replace ApplyWorkspaceConnectionOptions() in constructor with direct picker
population (no switch logic). The first real switch now comes from
LoadWorkspaceConnectionsAsync, which has the actual catalog and saved workspace key.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent a6dcc56 commit 4a83b5c
1 file changed
Lines changed: 14 additions & 7 deletions
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
412 | 419 | | |
413 | 420 | | |
414 | 421 | | |
| |||
0 commit comments