Skip to content

tui: slash-invoked skills drop trailing arguments after autocomplete #48720

Closed as not planned

Description

@stevoland

Summary

OpenCode V2 drops the trailing user request when a skill is invoked through slash autocomplete. The skill is activated, but text following the skill name never reaches the model.

Environment

  • opencode version: v2.0.2
  • OS: Darwin 25.6.0 (arm64)
  • Terminal: Ghostty (TERM=xterm-ghostty, COLORTERM=truecolor)
  • Shell: /bin/zsh
  • Install/channel: latest
  • Active plugins: five local plugins; reproduced at the repository transport boundary independently of plugin execution

Reproduction

  1. Start OpenCode V2 with a slash-invocable skill.
  2. Select the skill through slash autocomplete and submit:
    /skill-name This is a Test
  3. Inspect the resulting model input.

Expected Behavior

The skill instructions should be activated and This is a Test should reach the model as the user's request.

Actual Behavior

The skill is activated, but This is a Test is discarded.

The slash parser correctly produces { name: "skill-name", arguments: "This is a Test" }. Both TUI paths then call session.skill with only the skill name:

  • packages/tui/src/component/prompt/index.tsx
  • packages/tui/src/mini/stream-v2.transport.ts

The session.skill protocol payload has no text or arguments field, so Session.skill appends only the skill instructions before resuming execution.

Additional Context

This is deterministic on v2.0.2 and was reproduced with a focused mini transport test.

This is a regression of #41245, which was closed after #41188 preserved skill arguments. The regression appears to have been introduced by #43523, merged on 19 August. That change switched slash autocomplete from inserting a prompt-bound skill attachment to inserting a plain slash invocation. Before that change, the completion-driven path sent the skill attachment and surrounding user text together.

Existing coverage tests only /tigerstyle without arguments and explicitly expects no user prompt. It does not cover /tigerstyle review this change.

Workaround: reference the skill with @skill-name or ask for it in natural language so the ordinary user prompt is preserved.

Related: #40463 reports similar argument loss in V1's older command-template implementation, but this report concerns the current V2 native skill activation path.

Activity

  1. github-actions commented on Sep 12, 2026

    @github-actions
    Contributor

    This issue might be related to existing issues. Please check:

  2. neriousy commented on Oct 20, 2026

    @neriousy
    Member

    Thanks for the detailed report! Starting in 2.0.4, skills are no longer invoked through slash autocomplete; use @skill-name or /skills to attach the skill while keeping your request text. Update with opencode upgrade or npm i -g @opencode/cli@latest (desktop: update the app). Please comment or reopen if your request text is still lost on that version or later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions