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
I’m trying to use open code more frequently because I really appreciate the work you put into it!
However, I've encountered an issue during my sessions: sometimes the user interface appears to be stuck and becomes unresponsive. Sometimes it is stuck on a prompt and when I press "enter", nothing seems to happen. In some occasions I just need to wait 5-10 seconds and it continues, but other times it will not do anything and I need to kill the process. I will not even listen to <ESC>, <CTRL>-C. <CTRL>-Z. So it is really stuck.
I can see the progress indicator moving over the model, so I know it’s not completely frozen.
Here is a screen recording. During this recording I pressed d and <ESC>, but it does not respond. You see that when I press <CTRL>-p, it does react to that.
no_response.mov
The second video is the same session. Theme switching get's the session stuck/really slow
Similar Issue - Permission Loop Causing Input Unresponsiveness
I encountered a very similar issue where the input box became completely unresponsive.
Symptoms:
Input field won't accept any text input
Tab key works (can switch between plan/build modes)
Process appears running but UI is stuck
Eventually need to kill the process
Environment:
OpenCode Version: 1.0.134
OS: Linux (NixOS)
Terminal: xterm-256color
Display: Wayland
Technical Details:
Process State:
Main process: PID 16760, state S (sleeping on do_epoll_wait)
20 threads, 478MB RSS
Very high voluntary context switches (1,350,043) indicating excessive waiting
CPU time: 15 minutes accumulated
YAML language server subprocess also running
Root Cause Found in Logs:
Analyzing ~/.local/share/opencode/log/ revealed a permission retry loop:
At 2025-12-05T22:47:28, user granted permission per_af060bdd2001LMBYDg2Bbsjuwk with response=once
90 seconds later at 2025-12-05T22:48:58, the same permission was requested again
Permission was rejected, but kept being re-requested repeatedly
Loop continued for over 5 minutes with requests at increasing intervals
UI input became completely unresponsive during this loop
Log excerpt showing the loop:
INFO 2025-12-05T22:47:28 service=permission permissionID=per_af060bdd2001LMBYDg2Bbsjuwk response=once response
...
INFO 2025-12-05T22:48:58 service=permission permissionID=per_af060bdd2001LMBYDg2Bbsjuwk response=reject response
INFO 2025-12-05T22:48:59 service=permission permissionID=per_af060bdd2001LMBYDg2Bbsjuwk response=reject response
INFO 2025-12-05T22:49:01 service=permission permissionID=per_af060bdd2001LMBYDg2Bbsjuwk response=reject response
... (continues repeatedly)
Theory:
It appears that when a permission is granted as "once", there's a bug where:
The permission gets re-requested after some condition/timeout
The UI tries to prompt for the same permission again
It gets auto-rejected (since it was already answered)
This creates a retry loop that blocks the input system
The input field becomes unresponsive even though the process isn't fully hung
This matches the symptoms reported here where the UI becomes unresponsive but some functions (like Ctrl-P in the original report, tab switching in my case) still work, suggesting the main event loop is running but the input handling is blocked waiting on permission resolution.
Suggestion:
The permission system should either:
Not re-request permissions that were already granted as "once" within the same session
Have a maximum retry limit and fail gracefully
Not block the input system while waiting for permission responses
Additional notes, I think it's very likely my previous comment outlines the issue as when I finally kill the process, restart opencode and bring the session back, it actually did work in behind the scenes.
Activity
github-actions commentedon Nov 3, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
jgordijn commentedon Nov 3, 2025
I got it to listen to
<CTRL>-p, but I cannot really do much as it seems still unresponsivethdxr commentedon Nov 4, 2025
can you produce a video?
jgordijn commentedon Nov 4, 2025
Here is a screen recording. During this recording I pressed
dand<ESC>, but it does not respond. You see that when I press<CTRL>-p, it does react to that.no_response.mov
The second video is the same session. Theme switching get's the session stuck/really slow
theme_switcher.mov
jgordijn commentedon Nov 4, 2025
I noticed that I am able to create a new session. This new session is working, so it seems to be related to the specific session
[-]No repsonse to user input[/-][+]No response to user input[/+]marklise commentedon Dec 5, 2025
Similar Issue - Permission Loop Causing Input Unresponsiveness
I encountered a very similar issue where the input box became completely unresponsive.
Symptoms:
Environment:
Technical Details:
Process State:
do_epoll_wait)Root Cause Found in Logs:
Analyzing
~/.local/share/opencode/log/revealed a permission retry loop:2025-12-05T22:47:28, user granted permissionper_af060bdd2001LMBYDg2Bbsjuwkwithresponse=once2025-12-05T22:48:58, the same permission was requested againLog excerpt showing the loop:
Theory:
It appears that when a permission is granted as "once", there's a bug where:
This matches the symptoms reported here where the UI becomes unresponsive but some functions (like Ctrl-P in the original report, tab switching in my case) still work, suggesting the main event loop is running but the input handling is blocked waiting on permission resolution.
Suggestion:
The permission system should either:
marklise commentedon Dec 6, 2025
Additional notes, I think it's very likely my previous comment outlines the issue as when I finally kill the process, restart opencode and bring the session back, it actually did work in behind the scenes.