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
tui: inline slash opens an empty command list #54856
Typing / in the middle of a prompt opens a command list showing “No matching commands”. The command list should only open when / is at the start of the prompt.
Thanks for the report! I think this is a duplicate of #54190. It comes from the same cause: the TUI treats any / that follows a space as the start of a slash command, but only lists commands when the / is the first character of the prompt. So a / in the middle of a prompt opens an empty "No matching commands" popup.
Possible duplicates and related issues, ordered by likelihood:
Thanks for the report and for clarifying! I was able to reproduce this on 2.0.27: typing Review this / in an empty prompt opens the command popup, which only shows No matching commands. It still happens on the latest dev (5683367) run from source. The recording and screenshots below show it, and the script below reproduces it.
The likely cause is that the TUI starts the slash-command trigger for any / that follows a space, but only lists commands when the / is at the very start of the prompt, so the popup opens with nothing in it. Related: #50604 reported the same behaviour (closed without the fix being merged), and #51129 and #54468 are open PRs in this area.
recording.mp4
Reproduction script (drive.ts)
// Repro for anomalyco/opencode#54856: a `/` typed mid-prompt opens an empty// "No matching commands" popup. Run with OC_DEV=/path/to/checkout to test source.import{Effect}from"effect"import{OpenCodeDriver}from"opencode-drive"exportdefaultOpenCodeDriver.use({
...(process.env.OC_DEV ? {opencode: {dev: process.env.OC_DEV}} : {}),tui: {recording: true,keypressOverlay: true},},({ ui })=>Effect.gen(function*(){yield*Effect.sleep(1500)yield*ui.screenshot("home")yield*ui.type("Review this /")yield*Effect.sleep(1000)constframe=yield*ui.capture()consttext=JSON.stringify(frame)constpopup=text.includes("No matching commands")yield*Effect.log(`"No matching commands" popup visible: ${popup}`)yield*ui.screenshot("inline-slash")yield*Effect.sleep(1000)}),)
Run it with opencode-drive: opencode-drive run ./drive.ts. It drives opencode from your PATH; set OC_DEV to the path of an OpenCode checkout to run that from source instead.
Activity
opencode-agent commentedon Oct 12, 2026
Thanks for the report! I think this is a duplicate of #54190. It comes from the same cause: the TUI treats any
/that follows a space as the start of a slash command, but only lists commands when the/is the first character of the prompt. So a/in the middle of a prompt opens an empty "No matching commands" popup.Possible duplicates and related issues, ordered by likelihood:
list files in /tmp) open the empty command popup and block Enter. Same cause, still open, with a proposed fix in fix(tui): submit prompts ending in a path when no slash command matches #54468./after a space opens "No matching commands"). It was closed, but the fix PR for it was not merged, so the behaviour is still there in 2.0.27.The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.
OpeOginni commentedon Oct 12, 2026
I guess this issue is more on the List still being displayed even if no commands is shown, rather than one relating to blocking the enter button.
opencode-agent commentedon Oct 12, 2026
Thanks for the report and for clarifying! I was able to reproduce this on 2.0.27: typing
Review this /in an empty prompt opens the command popup, which only shows No matching commands. It still happens on the latestdev(5683367) run from source. The recording and screenshots below show it, and the script below reproduces it.The likely cause is that the TUI starts the slash-command trigger for any
/that follows a space, but only lists commands when the/is at the very start of the prompt, so the popup opens with nothing in it. Related: #50604 reported the same behaviour (closed without the fix being merged), and #51129 and #54468 are open PRs in this area.recording.mp4
Reproduction script (drive.ts)
Run it with opencode-drive:
opencode-drive run ./drive.ts. It drivesopencodefrom yourPATH; setOC_DEVto the path of an OpenCode checkout to run that from source instead.