You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: load MCP servers on lazy-resume so tools work after restart (#561)
## Summary
Two fixes for MCP server availability:
### 1. MCP servers missing on lazy-resumed sessions
When sessions are lazily resumed after app restart, the
`ResumeSessionConfig` was missing `McpServers` and `SkillDirectories`.
This meant MCP tools (e.g., WorkIQ, Maestro) were unavailable until the
user manually ran `/mcp reload`.
**Fix:** Load MCP servers and skill directories in
`EnsureSessionConnectedAsync` before creating the resume config. Also
applied to the fresh-session fallback path.
### 2. `/mcp reload` crashes on mobile
The command tried to access the local SDK session which doesn't exist in
remote mode, throwing `InvalidOperationException`. The guard existed in
`CopilotService` but the UI called through without checking first.
**Fix:** Guard in `Dashboard.razor` before calling
`ReloadMcpServersAsync`, showing a friendly message.
## Test plan
- [x] `LazyResumePath_IncludesMcpServersAndSkills` — structural test
verifying MCP servers in both resume and fallback configs
- [x] Full suite: 3320 tests pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments