Skip to content

OPE-57: Server slash commands #567

Closed

Description

@ivanfenenko

Parent

OPE-56 — Slash & @ Commands

What to build

In Session Chat on iOS and Android, users discover and run server commands from the composer.

Typing / (bare leading token only) opens a composer-anchored suggestion overlay listing the full server catalog from GET /command (config, init/review, MCP prompts, and skills). Each row shows /{name}, description when present, and a skill/mcp source badge when applicable. Selecting a row inserts /name for optional arguments; a space closes suggestions so the user can type args.

On send, if the head token matches a known server command, run it via the session command API with the current composer snapshot: arguments = text after /{name}; pass agent/model/variant and pending attachments as parts; omit messageID. Unknown /foo and normal text still send as prompts. Clear/restore matches prompt send.

Ship Command Repository (list + run), the reusable suggestion overlay (design-system; later reused by client slash actions and @), feature docs under docs/features/slash-and-at-commands/, and unit coverage for list/match/submit routing on both platforms.

Prefetch the catalog on Session Chat enter and reconnect; retry when / is invoked; quiet empty suggestions if the catalog still fails.

Acceptance criteria

  • Feature docs exist under docs/features/slash-and-at-commands/ (plan, progress, decisions/parity as needed) and link this parent epic
  • Command Repository lists server commands (with project directory) and runs them against a session
  • Composer / trigger opens a composer-anchored suggestion overlay (design-system) sourced from the full server catalog, including skills
  • Suggestion rows show /{name}, description, and skill/mcp badges; no argument-hints UI
  • Selecting a server command inserts /name ; suggestions only while the composer matches bare / + optional filter token
  • Send of a matching server command uses the session command API with composer agent/model/variant and pending attachment parts (not prompt send; no messageID)
  • Unknown /… and non-command text still send as normal prompts
  • Send lifecycle matches prompt send (clear on accept, restore text + attachments on failure)
  • Catalog prefetch on Session Chat enter / reconnect; retry on / invoke; quiet empty state if list still fails
  • Works on both iOS and Android with unit coverage for list/match/submit routing

Out of scope

  • Client slash actions (OPE-58)
  • @ mentions (OPE-59)
  • Shell mode (!), separate skills dialog, desktop slash-menu-when-composer-has-text

Blocked by

None — can start immediately.

Research: docs/research/slash-and-at-commands.md
Docs (create with this ticket): docs/features/slash-and-at-commands/


Imported from Linear OPE-57. Linear status: Done. Priority: High. Created 2026-07-16. Completed 2026-07-19.
Parent: OPE-56.

Activity

  1. self-assigned this
    on Oct 11, 2026
  2. added
    enhancement
    ios
    android
    shared
    priority: high
    ready-for-agent
    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

androidenhancementiospriority: highready-for-agentshared

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions