Skip to content

acp-opencode: a leading /skill-name for a bb-only skill silently completes an empty turn (provider swallows it as an unknown command) #4923

Description

@timurkhakhalev

Summary

With the acp-opencode provider, a prompt that begins with a bb skill chip — a leading /skill-name for a skill bb injects but the provider does not know — makes the turn finish instantly with no output. The ACP bridge forwards the text verbatim to session/prompt; opencode then parses the leading /word as one of its own slash commands, finds nothing registered under that name, and ends the turn (stopReason: end_turn) before calling the model. bb records turn/started → turn/input/accepted → turn/completed within ~30 ms with zero items and no error, so the thread just looks like the agent ignored the message. Typing the same skill name without the leading slash works, because then it is ordinary text and the agent reads the pointed-to SKILL.md.

Versions and environment

  • bb 0.45.0 (desktop app), macOS 26.6.2
  • provider acp-opencode, opencode 1.18.33
  • project checkout environment, local machine; default data dir

Steps to reproduce

bb-level

  1. Install any skill that bb owns but the provider does not (a bb user/plugin skill; bb skill list shows it, and it is not in the provider's own command list).
  2. Create a thread on provider acp-opencode.
  3. As the message, type / and pick that skill from the composer, then add instructions after it, e.g. /example-skill summarize the repo. Send.
  4. Observe: no reasoning, no tools, no assistant text. bb thread log shows the four events above firing within milliseconds and nothing else.

Minimal provider-level repro (no bb needed)

Drive opencode acp directly over stdio and send any prompt whose text starts with a slash command opencode does not define:

// → initialize
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":1,"clientCapabilities":{"fs":{"readTextFile":true,"writeTextFile":true}}}}
// → session/new  (returns a sessionId)
{"jsonrpc":"2.0","id":2,"method":"session/new","params":{"cwd":"/tmp/scratch","mcpServers":[]}}
// → session/prompt
{"jsonrpc":"2.0","id":3,"method":"session/prompt","params":{"sessionId":"<id>","prompt":[{"type":"text","text":"/not-a-real-command say hi"}]}}

Result: {"result":{"stopReason":"end_turn"}} and the only session update is available_commands_update — no agent_message_chunk, no agent_thought_chunk (i.e. the model is never asked). Sending "say hi" without the slash returns a normal assistant message; sending /init (a real opencode command) also runs normally.

Did not reproduce with: the same skill name typed without a leading slash; a real provider command (/init) as the leading token.

Expected vs actual

Actual — bb thread log for the affected turn (timestamps are ~30 ms apart, all items absent):

turn/started        {"providerThreadId":"<provider-session>"}
turn/input/accepted {"clientRequestId":"<request>"}
turn/completed      {"status":"completed"}

Expected — either the skill runs (its SKILL.md reaches the model), or bb surfaces a clear failure instead of a silent, instant success. An unknown leading /name becoming a no-op turn is the worst case: nothing in the thread tells the user the message was discarded.

Cause (hypothesis, observed separately from the symptom above): the ACP bridge passes prompt text through unchanged — buildPromptContentBlocks emits {type:"text", text: item.text} per input part (packages/provider-bridge-acp/src/bridge/bridge.ts, around the session/prompt call). The composer's skill chip produces a command mention whose text still starts with /skill-name, and bb-only skills have no provider-side command, so opencode's leading-slash parser consumes it and resolves to nothing.

Evidence

  • Bridge forwards text verbatim: packages/provider-bridge-acp/src/bridge/bridge.ts on main @ 8e5fb1d05e8fb8e8b845dc49509580a00233b71f — buildPromptContentBlocks and the session/prompt send around L1285 and L2104.
  • bb injects bb skills as a text pointer catalog, not as provider commands: packages/provider-bridge-acp/src/session-params.ts (buildAcpSkillsInstructions) on the same sha — the catalog tells the model to read SKILL.md, there is no command registration.
  • Provider-level repro above was run against opencode 1.18.33 via opencode acp on macOS 26.6.2.
  • Composer serializes the skill as a command mention (resource.kind:"command", source:"skill") whose text keeps the leading /, and that text is what reaches session/prompt.

What you ruled out

Suggested priority and effort (optional)

Medium — silent loss of the user's message with no error, easy to hit whenever someone invokes a bb-only skill from the chip on an ACP provider; trivial workaround (drop the leading slash). Effort probably Low: either expand/strip a bb-skill leading /name before session/prompt, or register bb skills as provider commands.

AGENT GENERATED

Activity

  1. added theissue type on Oct 5, 2026
  2. added
    providers
    provider-acp
    partial-repro
    on Oct 5, 2026
  3. bb-slop-cop commented on Oct 5, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority Medium · Effort Low; labels: providers, provider-acp.
    • Report: Reproduction and root-cause evidence.
    • Verdict: PARTIALLY REPRODUCED · confidence medium · reproduction label: partial-repro.
    • Root cause: The ACP bridge drops skill mention metadata and forwards the leading slash unchanged. The focused transport regression fails identically in two clean trusted-main checkouts; plain-text and provider-command controls pass.
    • No PR: OpenCode is unavailable here, so its reported silent empty-turn behavior remains unverified and the full-reproduction safety gate is not met.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    partial-reproprovider-acpproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions