Skip to content

OPE-58: Slash actions #568

Closed
Closed

Description

@ivanfenenko

Parent

OPE-56 — Slash & @ Commands

What to build

Add a composer Commands entry: IconCircle with / immediately after Attach ([+] [/] … [send]). It opens an OpenCodeBottomSheet titled Commands with curated client slash actions. Selecting a row runs local session behavior and dismisses the sheet. It does not call POST /session/.../command.

Typed / stays OPE-57 server commands only (including skills/MCP). Client actions do not appear in the typed / overlay.

Allowlist

One-line rows: [command] description. Hide inapplicable rows (new always shown).

Command Copy Visible when
new [new] Start a new session Always
fork [fork] Fork this session ≥1 visible user message
undo [undo] Undo last message Undoable user message
redo [redo] Redo undone message Active session revert
compact [compact] Compact session context ≥1 user message + selected composer model

Out of this ticket: share / unshare; desktop-only builtins; model / agent rows.

Behavior

  • Tap → dismiss sheet → run immediately; do not clear the composer draft (except undo/redo composer restore).
  • Opening Commands dismisses any open / or @ suggestion overlay; draft text stays.
  • new: create in current Session Chat worktree, seed model preference like home, replace-navigate to the new session.
  • fork: implement the OPE-81 whole-session path (name dialog → fork → Open / Stay). OPE-58 owns that flow; OPE-81 later wires overflow + message “Fork from here”.
  • undo / redo: web session semantics (abort if busy → revert/unrevert; restore composer on undo). Do not rename message-sheet “Revert message” here.
  • compact: thin POST …/summarize with selected composer model + toast; richer compact UX stays OPE-80.

Acceptance criteria

  • Composer Commands / button after Attach (design-system + gallery) on iOS and Android
  • Commands sheet shows the allowlist with hide rules and [command] description copy
  • Selecting a client action runs local behavior and never submits as a server command
  • Typed / overlay remains server-command-only
  • new / fork / undo / redo / compact behaviors match the plan
  • Unit coverage for visibility gates and client-action vs server-command routing
  • Allowlist and intentional omissions recorded in feature decisions/parity docs

Out of scope

  • Client actions in typed / suggestions
  • Share / unshare
  • Full compact progress/timeline UX (OPE-80)
  • Overflow / message fork entry points (OPE-81 follow-through)
  • Renaming message “Revert message”

Docs

  • Plan: docs/features/slash-and-at-commands/ope-58-plan.md
  • Feature: docs/features/slash-and-at-commands/
  • Research: docs/research/slash-and-at-commands.md

Related

  • OPE-80 — richer compact UX
  • OPE-81 — overflow/message fork entry points after OPE-58 owns the shared fork dialog flow

Branch

feature/ope-58-slash-actions


Imported from Linear OPE-58. Linear status: Done. Priority: High. Created 2026-07-16. Completed 2026-07-24.
Parent: OPE-56.
Related: OPE-81, OPE-217, OPE-116, OPE-79, OPE-80.

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