Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: expose all OpenCode built-in commands via /opencode/command endpoint

Aperta
#142 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@talhaimtiaz09 ci sta già lavorando.

Dal 9/6/2026.

  • #301 di @talhaimtiaz09 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
openapi, rust
Ambito
api, backend

Direzione di ricerca

Start with the oc_command_list and oc_tui_execute_command handlers in server/packages/sandbox-agent/src/opencode_compat.rs. Read the OpenCode OpenAPI spec at resources/agent-schemas/artifacts/openapi/opencode.json and research/specs/command-shell-exec.md, then compare the existing custom-command proxy with the built-in command strings. Done means the command listing mechanism exposes the complete expected set, including built-in TUI commands, without relying on a native proxy.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

The GET /opencode/command endpoint currently only returns custom/user-defined commands (source: command, mcp, skill). Built-in TUI commands like /compact, /clear, /undo, etc. are hardcoded in the OpenCode TUI client and not discoverable via any API endpoint.

This means Gigacode has no way to expose or list the full set of available commands to users or frontends.

Built-in TUI commands that need coverage

These are the commands defined in OpenCode's EventTuiCommandExecute enum, currently only executable via POST /tui/execute-command:

  • session.compact — compact/summarize context
  • session.list — list sessions
  • session.new — create new session
  • session.share — share session
  • session.interrupt — interrupt current generation
  • prompt.clear — clear prompt input
  • prompt.submit — submit prompt
  • agent.cycle — cycle between agents
  • session.page.up / session.page.down — scroll page
  • session.line.up / session.line.down — scroll line
  • session.half.page.up / session.half.page.down — scroll half page
  • session.first / session.last — jump to first/last

Current behavior

  • GET /opencode/command proxies to native OpenCode (returns custom commands like /init, /review, skills) or returns [] if no proxy is configured
  • POST /tui/execute-command accepts built-in command strings but there's no listing endpoint
  • No single endpoint returns the full set of available commands (custom + built-in)

Expected behavior

The GET /opencode/command endpoint (or a supplementary mechanism) should return all available commands, including built-in TUI commands, so that:

  1. Frontends can render a complete command palette
  2. Users can discover all available commands
  3. Gigacode doesn't depend on the native OpenCode proxy just to list built-in commands

Relevant code

  • oc_command_list handler: server/packages/sandbox-agent/src/opencode_compat.rs
  • oc_tui_execute_command handler: server/packages/sandbox-agent/src/opencode_compat.rs
  • OpenCode OpenAPI spec: resources/agent-schemas/artifacts/openapi/opencode.json
  • Command stub spec: research/specs/command-shell-exec.md
Lingua principale
TypeScript
Stelle
1.6k
Fork
131
Merge medio
7h 40m
PR unite (30g)
29

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rivet-dev/agents

Tutte le issue di rivet-dev/agents

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.