#4037·paseo

bug: user-defined ACP providers can't surface slash commands or skills (waitForInitialCommands is gated on a provider-ID allowlist)

Author: sleeyaxCreated Aug 29, 2026Updated Sep 28, 2026
Labelsbugp2triaged

What's broken

A user-defined ACP provider (extends: "acp" in config.json) can never get its slash commands or skills into the composer of an agent that doesn't exist yet. Typing / before the first prompt always shows an empty menu. Once the agent has taken a turn the commands appear, because the live session cached them by then.

Expected: the same behaviour Cursor, Kiro and TRAE CLI now get — commands available from the start, usable in the first prompt. Actual: empty menu until the agent has run at least one turn.

Unlike #1897 this isn't a timing race that sometimes wins. For a user-defined provider it's deterministic: there is no ordering in which the agent can win.

Root cause

Same class as #1791 and #1897, but the per-vendor fixes were keyed to a provider-ID allowlist, so anything outside it is still broken.

Two constraints combine:

  1. ACPAgentSession.sessionUpdate() drops any update whose sessionId doesn't match (acp-agent.js:1520), and this.sessionId is only assigned after session/new resolves (acp-agent.js:887). An agent therefore cannot publish commands before the response — the client has nowhere to route them. ACP offers no alternative channel: NewSessionResponse has no availableCommands field.
  2. AgentManager.listDraftCommands() (agent-manager.js:515) spawns a throwaway session, calls session.listCommands(), and immediately closes it. listCommands() returns [] right away unless waitForInitialCommands is set (acp-agent.js:1087-1096), which defaults to false (acp-agent.js:870) and is only enabled for the cursor, kiro and traecli provider IDs (provider-registry.js:493-503).

So the agent must publish after the response, and nothing on the path between the response and listCommands() performs I/O that would let the notification be processed first. An agent that emits on the very next tick still loses, every time.

Steps to reproduce

  1. Register any ACP agent that publishes commands via available_commands_update as a custom provider:
    json
    { "agents": { "providers": { "my-agent": { "extends": "acp", "command": ["/path/to/agent"] } } } }
  2. Create a new agent with that provider and type / in the composer before sending anything.
  3. The menu is empty. Send a prompt, type / again — the commands are there.

Version

Paseo desktop 0.6.1, daemon 0.6.1, @agentclientprotocol/sdk 0.17.1.

Evidence

Client mirroring initializeNewSession() + listCommands() on the same SDK version, against an agent that publishes 65 commands one tick after session/new, 5 runs:

commands at listCommands() : 0   (65 available one tick later)   run 1
commands at listCommands() : 0   (65 available one tick later)   run 2
commands at listCommands() : 0   (65 available one tick later)   run 3
commands at listCommands() : 0   (65 available one tick later)   run 4
commands at listCommands() : 0   (65 available one tick later)   run 5

With waitForInitialCommands: true simulated, the same client gets all 65 on every run, with no measurable wait — the notification is already in flight.

Proposed fix

Default waitForInitialCommands to true in GenericACPAgentClient, keeping the existing 1500ms cap. settleCommandsReady() is already called for empty batches, so a provider that legitimately has no commands doesn't stall — it settles as soon as the first batch lands, whatever its size. That subsumes the cursor/kiro/traecli special cases for the standard update type and makes the ID allowlist unnecessary for this purpose.

Failing that, reading waitForInitialCommands and initialCommandsWaitTimeoutMs from the provider's params would at least make it reachable — GenericACPProviderParamsSchema is already .passthrough().

Today the only workaround for a user-defined provider is to name it traecli and borrow that special case, which also means a real TRAE CLI provider can't be registered alongside it.

Context

The provider this came out of: https://github.com/sleeyax/paseo-plugins/pull/3