anomalyco / anomalyco/opencode

Desktop app `/` slash commands lack parity with TUI

Open
#49,803 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Problem

Typing / in the Mac desktop app composer shows a smaller set of slash commands than the TUI, with no way to reach the missing ones.

Current behavior (v2.0.8, verified in source)

Desktop / suggestions come from packages/app/src/composer/model.ts (slashCommands memo): custom commands from command.list plus only app builtins registered with a slash: property:

  • use-session-commands.tsx: /new, /undo, /redo, /compact, /fork, /export, /open, /terminal, /mcp
  • composer/commands.tsx: /model, /agent

Missing TUI builtins (per https://opencode.ai/docs/tui#commands): /init, /share, /unshare, /sessions, /models (desktop has singular /model picker instead), /themes, /thinking, /details, /editor, /connect, /help, /exit, plus the new /btw.

Custom commands (opencode.json command section / commands/ markdown) only send prompt templates to the server, so client-action commands like /share, /sessions, /themes cannot be recreated by users.

Expected

/ in the desktop composer should offer the same built-in commands as the TUI (mapping to the desktop equivalent where the UI differs, e.g. /models -> model picker, /themes -> theme picker), or document which are intentionally desktop-excluded.

Version

Desktop 2.0.8 (arm64, Mac), server/CLI 2.0.8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in packages/app/src/composer/model.ts, especially the slashCommands memo, then inspect use-session-commands.tsx and composer/commands.tsx alongside the TUI command list in the issue. Done means the desktop composer exposes equivalent built-in commands with desktop mappings, or clearly documents which commands are intentionally excluded.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, desktop-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.