feat: /sessions slash command — shortcut to session switcher #292

Closed
opened 2026-07-12 01:29:27 +02:00 by dries · 0 comments
Owner

Part of OpenCode command parity (transparent-layer goal). OpenCode's TUI has /sessions (aliases /resume, /continue) to list and switch sessions. Ocman already has a full session-list UI, so this is a thin shim, not new machinery.

Scope

  • Add sessions to BUILTIN_COMMANDS (frontend/src/lib/commands/builtinCommands.ts) with aliases resume/continue.
  • Invoking it opens the existing command palette / session switcher (CommandPalette.tsx) scoped to sessions — no new picker, no backend.

Reference

OpenCode docs: https://opencode.ai/docs/tui#sessions

Notes

Deliberately reuses existing UI. If aliases complicate the slash-menu filter, ship /sessions alone and note the aliases as follow-up.

Part of OpenCode command parity (transparent-layer goal). OpenCode's TUI has `/sessions` (aliases `/resume`, `/continue`) to list and switch sessions. Ocman already has a full session-list UI, so this is a **thin shim**, not new machinery. ## Scope - Add `sessions` to `BUILTIN_COMMANDS` (frontend/src/lib/commands/builtinCommands.ts) with aliases `resume`/`continue`. - Invoking it opens the existing command palette / session switcher (CommandPalette.tsx) scoped to sessions — no new picker, no backend. ## Reference OpenCode docs: https://opencode.ai/docs/tui#sessions ## Notes Deliberately reuses existing UI. If aliases complicate the slash-menu filter, ship `/sessions` alone and note the aliases as follow-up.
dries closed this issue 2026-07-12 10:10:43 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dries/ocman#292
No description provided.