[FEATURE]: command IDs for prev/next Subagents panel tab switching
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 66/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- cli, developer-experience
Línea de trabajo
Empieza en packages/tui/src/routes/session/composer/index.tsx y compara los comandos inline para cambiar de pestaña con los comandos con nombre de subagente en el mismo panel. Revisa packages/tui/src/config/keybind.ts y packages/tui/src/context/keymap.tsx para entender los ID de comando y las asignaciones configuradas. El trabajo estará terminado cuando el cambio a la pestaña anterior y a la siguiente tenga comandos con nombre y valores predeterminados configurables; prueba las asignaciones en la TUI.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Posting this because my OpenCode asked me to, lol:
Summary
Composer panel tab switching (Subagents / Shell / Terminals / Scripts) is registered as inline keymap commands with bind: "left" / bind: "right" and no command ID, so it cannot be remapped through the keybinds config. Vim-style users who want h/l to switch tabs have no config-level way to do it.
Environment
- opencode version: 2.4.4
- Client: TUI
- Model and provider: Not relevant
- OS: Linux 7.3.7-1-MANJARO (linux x64)
- Terminal: tmux, TERM=screen-256color, COLORTERM=truecolor
- Shell: /bin/zsh
- Install/channel: latest release
- Active plugins: vimcode v0.19.2 (git pin), @mohak34/opencode-notifier
Reproduction
- Open a session that has child (subagent) sessions.
- Open the composer panel (via
session.child.first). - Switch between the Subagents / Shell / Terminals tabs — only the left/right arrow keys work.
- Attempt to rebind in
keybinds(e.g."session.child.next": "l","session.child.previous": "h") in~/.config/opencode/cli.json. - The overrides parse without error but have no effect: those command IDs are defined in the keybind schema but never registered in any keymap layer in v2.4.4, and the live tab-switch commands have no IDs at all.
Expected Behavior
Composer tab switching should be exposed as named keymap commands (e.g. composer.tab.previous / composer.tab.next) with default bindings left / right, so users can rebind them via keybinds — the same pattern already used by the bindable composer.subagent.up / composer.subagent.down / composer.subagent.select commands in the same panel.
Actual Behavior
The tab-switch commands are registered inline in packages/tui/src/routes/session/composer/index.tsx:
{ bind: "left", title: "Previous tab", group: "Composer", run: () => switchTab(-1) },
{ bind: "right", title: "Next tab", group: "Composer", run: () => switchTab(1) },
Inline commands carry no ID, and layer binding resolution in packages/tui/src/context/keymap.tsx only consults user config for named command IDs (config.keybinds.get(command.id)), so no config entry can bind these commands.
Additional Context
session.child.next/session.child.previousare defined inpackages/tui/src/config/keybind.ts(defaultsright/left) but are not registered in any keymap layer in v2.4.4, so user bindings for them are inert as well.- A plugin-level workaround exists (rewriting key events via
renderer.keyInput.prependListenerbefore the keymap dispatch), which confirms the events are reachable — but the config-level fix is the pair of named commands above.
Related
- #51903 — composer tabs not clickable; same root cause (inline tab-switch commands have no IDs)
- #56002 — rebind inline
composer.subagent.toggle-activity(same "rebind an inline composer command" ask) - #56153 —
session.child.next/previousdead commands - #57335 — 13 declared-but-unregistered keybind IDs, incl. the two above
- PR #56199 — deprecate the dead child defaults (closed, unmerged)
- Lenguaje dominante
- TypeScript
- Estrellas
- 230k
- Forks
- 31.3k
- Merge medio
- 5 h 44 min
- PR fusionados (30 d)
- 529
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de anomalyco/opencode
-
area/desktop type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
anomalyco/opencode#68437 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
cli: opencode models <provider> filter from v1 is rejected in v2 ("Unexpected positional argument")Posiblemente ocupada @nilparra-dev la tomó hoy. Abiertoarea/cli platform/macos type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
anomalyco/opencode#68364 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
goal: session started with /goal gets a truncated objective as its title, not a generated titleAbiertoarea/plugins platform/windows type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
anomalyco/opencode#68298 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Web UI: Pressing Ctrl+<key> with Caps Lock active triggers Ctrl+Shift+<key> shortcutsPosiblemente ocupada @saurabhbhoir456 la tomó hoy. Abiertoarea/web platform/windows type/bug version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
anomalyco/opencode#68237 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
area/desktop inference/go platform/macos type/bug version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
anomalyco/opencode#68121 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de anomalyco/opencode
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ranxianglei/billion-context#8319 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
JimLiu/open-artifact#126 ·
-
Claude Code: replace stub has no cut cue, a 6128 B Bash output reads as the one line `END6000`Abiertobug repro-ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
mksglu/context-mode#1454 ·
-
pending triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
laststance/design-world#98 ·
Los mantenedores suelen responder en 1 día