You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug]: OpenCode 2 TUI: /quota flashes in chat, and opens a new session from Home #296
In v5.0.0 on OpenCode 2 (TUI), two small quirks come from OpenCode 2.0.16 itself:
Brief flash: with tuiCommandDisplay: "dialog" (the default), /quota and the other quota slash commands flash the report in the chat for a moment before the popup opens and the chat copy is removed.
Home opens a new session: running /quota from the Home screen creates a new empty session. Workaround: use Ctrl+P → OpenCode Quota on Home.
Why: quota slash commands must be server commands so they work on Web and Desktop. OpenCode 2 has no way for a TUI plugin to take over a slash command with the same name. Its autocomplete lists plugin and server commands without removing duplicates, and server commands always run in a session.
What would fix it upstream: the TUI prefers a TUI plugin's slash command when a server command has the same name (packages/tui/src/component/prompt/autocomplete.tsx). Related: anomalyco/opencode#28292, anomalyco/opencode#43132.
changed the title [-]OpenCode 2 TUI: /quota flashes in chat, and opens a new session from Home[/-][+][bug]: OpenCode 2 TUI: /quota flashes in chat, and opens a new session from Home[/+]on Sep 28, 2026
Activity
fix(tui): open quota commands locally so they never flash or create a…
slkiser commentedon Sep 28, 2026
Fixed in
v5.0.0(try5.0.0-beta.1): the TUI now opens quota commands itself, so they no longer flash in the chat or open a new session from Home.[-]OpenCode 2 TUI: /quota flashes in chat, and opens a new session from Home[/-][+][bug]: OpenCode 2 TUI: /quota flashes in chat, and opens a new session from Home[/+]