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
/exit or /quit command kills the terminal on Windows PowerShell #27749
When exiting the TUI (via /quit, /exit, or tab-completed /quit), the entire terminal window/tab closes instead of returning to the shell prompt. This happens both with bun run dev and the bundled opencode command on Windows 11.
Plugins
No response
OpenCode version
1.15.0
Steps to reproduce
Start opencode TUI (bun run dev or opencode)
Type /qui then press Tab to autocomplete to /quit or type /quit and press enter or Ctrl + C to quit
Activity
github-actions commentedon May 15, 2026
This issue might be a duplicate of existing issues. Please check:
Please review these issues and consider closing this one if it covers the same problem.
hongenge commentedon May 20, 2026
This problem does exist
AK47are commentedon May 20, 2026
The same issue,and it seems to have existed for a long time and no one solve it?
Audrique commentedon May 28, 2026
I use opencode 1.15.4 and alacritty 0.17.0 and have the same issue.
hongenge commentedon Jun 5, 2026
Using /exit or /q closes the terminal window, while using exit does not.
hongenge commentedon Jun 5, 2026
Using /exit or /q closes the terminal window, while using exit does not.
github-actions commentedon Aug 6, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
Elvin-zhujunde commentedon Sep 14, 2026
If you are PowerShell, before starting, try setting $env:OTUI_USE_ALTERNATE_SCREEN=0 and then restart. The same applies to other terminals.