Repository navigation
Description
- Copilot Chat Extension Version: N/A (built-in Agent Host)
- VS Code Version: 1.135.0 (
08d4889f9ec4a1685d257b9b95de036c8e1ce1e5) - OS Version: Linux remote container; macOS client
- Feature: Agent Host Protocol 1.0
listSessions - Selected model: GPT-5.6 Sol
- Logs: Redacted error and source-level analysis included below
Steps to reproduce
-
Start a standalone VS Code Agent Host using fresh isolated
--user-data-dirand--server-data-dirdirectories. -
Connect over the token-protected loopback WebSocket.
-
Send an AHP 1.0
initializerequest withinitialSubscriptions: ["ahp-root://"]. -
Authenticate every advertised protected resource.
-
Confirm Copilot models are advertised and
pingsucceeds. -
Call:
{ "jsonrpc": "2.0", "id": 2, "method": "listSessions", "params": { "channel": "ahp-root://", "limit": 2 } }
Actual
The entire command fails:
-32603 ProviderCatalogUnavailableError:
Provider claude cannot enumerate its native session catalog yet
Waiting and retrying does not repair it. The same failure occurs with both a persistent profile and a completely fresh isolated profile.
Meanwhile, all of the following continue to work:
- AHP 1.0
initialize ping- protected-resource authentication
- Copilot model discovery
resolveSessionConfig- direct
createSession - direct session/chat subscriptions
- chat turns and completion
- reconnect replay
- session disposal
Expected
One unavailable provider-native external catalogue should not fail the entire Agent Host session catalogue.
Any of these would be preferable:
- Return locally registered sessions while omitting the unavailable provider's external sessions.
- Return a partial result with provider-level diagnostics.
- Mark Claude catalogue discovery unavailable and retry it independently.
Source-level cause
In AgentService._migrateLegacyProviderChats, an undefined provider catalogue throws ProviderCatalogUnavailableError. listSessions() awaits initial provider migration before listing the Agent Host registry, so one provider blocks every registered session.
Related, but not duplicate
- AHP listSessions ignores limit and cursor pagination parameters #329619 covers ignored
limit/cursorpagination. - Copilot Agent Host sessions take ~60 seconds to appear after restart with a large ~/.copilot catalog #331155 covers slow Copilot catalogue migration.
This issue is specifically about one unavailable provider failing the whole listSessions command, including locally registered sessions from other healthy providers.
Activity
agentHost: retain deferred catalog retries
agentHost: defer optional SDK session catalogs (#332869)
blumu commentedon Aug 29, 2026
The same global
listSessionsfailure occurs in Stable 1.135.0 when the Codex provider catalog is unavailable, and it presents inhttps://vscode.dev/agentsas an empty historical session list.Environment:
08d4889f9ec4a1685d257b9b95de036c8e1ce1e5code tunnelObserved behavior:
vscode.dev/agents.Verified workaround for Stable:
"chat.agentHost.claudeAgent.enabled": falseis also useful when that SDK is unavailable.)workbench.action.chat.restartLocalAgentHost).https://vscode.dev/agents.After the Agent Host restart, the existing desktop history appeared in the web app. Merely changing the setting was insufficient for the already-running host.
This appears to be the Codex variant of the same root cause fixed by this issue. Adding the workaround here for users on Stable until the fix reaches that channel.