Skip to content

AHP listSessions fails globally when Claude provider catalog is unavailable #332830

Closed

Description

@cephalin
  • 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

  1. Start a standalone VS Code Agent Host using fresh isolated --user-data-dir and --server-data-dir directories.

  2. Connect over the token-protected loopback WebSocket.

  3. Send an AHP 1.0 initialize request with initialSubscriptions: ["ahp-root://"].

  4. Authenticate every advertised protected resource.

  5. Confirm Copilot models are advertised and ping succeeds.

  6. 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:

  1. Return locally registered sessions while omitting the unavailable provider's external sessions.
  2. Return a partial result with provider-level diagnostics.
  3. 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

This issue is specifically about one unavailable provider failing the whole listSessions command, including locally registered sessions from other healthy providers.

Activity

  1. added
    unreleased
    on Aug 27, 2026
  2. added this to the 1.136.0 milestone on Aug 27, 2026
  3. added
    insiders-released
    and removed
    unreleased
    on Aug 28, 2026
  4. blumu commented on Aug 29, 2026

    @blumu

    The same global listSessions failure occurs in Stable 1.135.0 when the Codex provider catalog is unavailable, and it presents in https://vscode.dev/agents as an empty historical session list.

    Environment:

    • VS Code Stable 1.135.0, commit 08d4889f9ec4a1685d257b9b95de036c8e1ce1e5
    • Windows 11
    • Editor-owned Agent Host using AHP 1.0.0 through a delegated code tunnel
    • Local Copilot catalog remained intact (240 session directories)

    Observed behavior:

    • Existing desktop sessions did not appear in vscode.dev/agents.
    • A session created from the web app immediately appeared in desktop, proving the live channel and shared host were working.
    • Every initial history request failed instead of returning the healthy Copilot catalog:
    [AgentService] initial provider catalog for codex was unavailable; retrying before accessing sessions
    [Codex] SDK not downloaded yet; deferring the migratable chat list
    [ProtocolServer] Request 'listSessions' failed Provider codex cannot enumerate its native session catalog yet
    
    -32603 ProviderCatalogUnavailableError: Provider codex cannot enumerate its native session catalog yet
    

    Verified workaround for Stable:

    1. Set:
      "chat.agentHost.codexAgent.enabled": false
      ("chat.agentHost.claudeAgent.enabled": false is also useful when that SDK is unavailable.)
    2. Run Developer: Restart Local Agent Host (workbench.action.chat.restartLocalAgentHost).
    3. Hard-refresh 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.

  5. locked and limited conversation to collaborators on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

insiders-released

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions