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
Funny enough, I don't know which release fixed the issues, I mainly used only Wezterm, but today, I wanted to show this weird bug to my friend, when it suddenly worked
Hi! Not sure... It does exit sort of normally with "ctrl+c". "Sort of" because after one use of the hotkey opencode exits back to the command prompt of the shell, but doesn't allow input as if the process is still active, so I have to press the shortcut again and then wezterm gets fully back to normal. While using '/exit' command in user prompt of opencode hangs wezterm's open pane completely. Couple opencode releases back it also resulted in opencode.exe staying active in the task manager even after exiting, most recent release seems to have fixed at least that, but the weird exit code problem still remains. Using opencode from pure powershell (7) or cmd works normally though.
What do you mean by Pure Powershell, do you mean Powershell 5 that comes with all Windows releases?
No, no, I mean powershell 7, the pwsh one, which you install manually, that's why I put 7 in the parentheses. By 'pure' i rather mean from default windows terminal or windows terminal preview
Yeah I don't know why, but only wezterm has this issue. I think I stated it before already, this issue never occurred on Windows Terminal, but recent releases seemed to have fixed it for everything except wezterm, which sucks, because I want the cross platform config :/
In the recent versions however, I noticed that /exit does actually quit properly and shows the session ID, so it does mean it is able to exit properly. However, pressing Ctrl + C just freezes it or something.
Just as an FYI, if you're experiencing this issue with Windows Terminal, there's a fix that's in the preview version currently. Should be in the 1.25 standard release, but only available in 1.24 preview at the moment.
Activity
NSPC911 commentedon Nov 1, 2025
my config: opencode.json and AGENTS.md
veracioux commentedon Nov 1, 2025
@NSPC911 What if you disable wezterm-mcp?
NSPC911 commentedon Nov 1, 2025
no difference, it still crashes it
but as I showed, it crashed on rio, alacrity and tabby, but not on windows terminal
veracioux commentedon Nov 1, 2025
@NSPC911 I was aware, my thinking was that it interacts with the terminal in some unorthodox way. This issue is so weird...
Some other things to try:
thdxr commentedon Nov 1, 2025
what happens if you exit with
/exitNSPC911 commentedon Nov 1, 2025
2025-11-02.00-08-03.mp4
@veracioux @thdxr
/exitdoesn't seem to exist anywaythdxr commentedon Nov 1, 2025
sorry just merged that will release soon
NSPC911 commentedon Nov 2, 2025
https://github.com/user-attachments/assets/1bf811de-d2bc-4a1e-9ede-d54c0105aa46
@thdxr the same thing still happens
NSPC911 commentedon Nov 19, 2025
Update to this wonderfully weird bug:
This is resolved in Alacritty, Rio and Tabby, but the cursors persist to be based on the theme used.
The issue is still not resolved in Wezterm.
veracioux commentedon Nov 19, 2025
Any idea what caused/what fixed it for those terminals?
NSPC911 commentedon Nov 19, 2025
Funny enough, I don't know which release fixed the issues, I mainly used only Wezterm, but today, I wanted to show this weird bug to my friend, when it suddenly worked
rekram1-node commentedon Nov 19, 2025
guess we will close for now then
NSPC911 commentedon Feb 11, 2026
@branskugel I saw your message in #631 (comment) , is this something related maybe?
Nivarrym commentedon Feb 11, 2026
Hi! Not sure... It does exit sort of normally with "ctrl+c". "Sort of" because after one use of the hotkey opencode exits back to the command prompt of the shell, but doesn't allow input as if the process is still active, so I have to press the shortcut again and then wezterm gets fully back to normal. While using '/exit' command in user prompt of opencode hangs wezterm's open pane completely. Couple opencode releases back it also resulted in opencode.exe staying active in the task manager even after exiting, most recent release seems to have fixed at least that, but the weird exit code problem still remains. Using opencode from pure powershell (7) or cmd works normally though.
NSPC911 commentedon Feb 11, 2026
What do you mean by Pure Powershell, do you mean Powershell 5 that comes with all Windows releases?
Nivarrym commentedon Feb 11, 2026
No, no, I mean powershell 7, the pwsh one, which you install manually, that's why I put 7 in the parentheses. By 'pure' i rather mean from default windows terminal or windows terminal preview
NSPC911 commentedon Feb 11, 2026
Yeah I don't know why, but only wezterm has this issue. I think I stated it before already, this issue never occurred on Windows Terminal, but recent releases seemed to have fixed it for everything except wezterm, which sucks, because I want the cross platform config :/
NSPC911 commentedon Feb 11, 2026
In the recent versions however, I noticed that
/exitdoes actually quit properly and shows the session ID, so it does mean it is able to exit properly. However, pressing Ctrl + C just freezes it or something.Hoping https://x.com/LukeParkerDev/status/2021413272969498814 is able to fix it (or not, because the showcase uses Windows Terminal)
@rekram1-node could you maybe raise this up to Luke? (didn't want to directly ping
@Honabecause I think I might be wrong)Hona commentedon Feb 11, 2026
Yes - my stuff in beta/tweet should fix this. I'll close the loop when it's in a stable release
pjeby commentedon Mar 5, 2026
Just as an FYI, if you're experiencing this issue with Windows Terminal, there's a fix that's in the preview version currently. Should be in the 1.25 standard release, but only available in 1.24 preview at the moment.