Commands lock opencode #2090

Open
opened 2026-02-16 17:34:06 -05:00 by yindo · 6 comments
Owner

Originally created by @tomaswilhelmsson on GitHub (Oct 13, 2025).

Originally assigned to: @thdxr on GitHub.

Some commands in prisma etc can lock opencode, i tried to make a fix for it, some parts might be usable atleast .. dont know how to handle it tho as it times out in about 60s, might be an idea to implement as it locks opencode idefinently

shell_blocking_fix.patch

Originally created by @tomaswilhelmsson on GitHub (Oct 13, 2025). Originally assigned to: @thdxr on GitHub. Some commands in prisma etc can lock opencode, i tried to make a fix for it, some parts might be usable atleast .. dont know how to handle it tho as it times out in about 60s, might be an idea to implement as it locks opencode idefinently [shell_blocking_fix.patch](https://github.com/user-attachments/files/22893232/shell_blocking_fix.patch)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 13, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2940: Reports OpenCode hanging randomly after receiving instructions
  • #2819: TUI stuck forever with timeout issues around 60s
  • #1721: Bash tool often times out, which could be related to command execution blocking
  • #652: App becomes unresponsive when executing commands requiring sudo password
  • #2144: OpenCode stucks while trying to write a file
  • #2766: OpenCode just hangs (general hanging issue)
  • #2476: OpenCode just hangs when trying to start it
  • #3082: Program is stuck on initialization
  • #1058: OpenCode stopped responding with recent updates

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 13, 2025): This issue might be a duplicate of existing issues. Please check: - #2940: Reports OpenCode hanging randomly after receiving instructions - #2819: TUI stuck forever with timeout issues around 60s - #1721: Bash tool often times out, which could be related to command execution blocking - #652: App becomes unresponsive when executing commands requiring sudo password - #2144: OpenCode stucks while trying to write a file - #2766: OpenCode just hangs (general hanging issue) - #2476: OpenCode just hangs when trying to start it - #3082: Program is stuck on initialization - #1058: OpenCode stopped responding with recent updates Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 13, 2025):

so like agent runs a command using bash tool and then evne if you double escape it does nothing?

@rekram1-node commented on GitHub (Oct 13, 2025): so like agent runs a command using bash tool and then evne if you double escape it does nothing?
Author
Owner

@tomaswilhelmsson commented on GitHub (Oct 13, 2025):

so like agent runs a command using bash tool and then evne if you double escape it does nothing?

yes, cant double escape or anything, have to kill the process it runs in a seperate shell or kill opencode and reload the session

@tomaswilhelmsson commented on GitHub (Oct 13, 2025): > so like agent runs a command using bash tool and then evne if you double escape it does nothing? yes, cant double escape or anything, have to kill the process it runs in a seperate shell or kill opencode and reload the session
Author
Owner

@rekram1-node commented on GitHub (Oct 13, 2025):

hm got it thx for sharing

@rekram1-node commented on GitHub (Oct 13, 2025): hm got it thx for sharing
Author
Owner

@fpv-dev commented on GitHub (Oct 14, 2025):

Yeah, I faced with the same problem using simple command. TUI just stuck eating CPU and doesn't respond to anything

Image
---
description: run request as a subtask
subtask: true
---

$ARGUMENTS
@fpv-dev commented on GitHub (Oct 14, 2025): Yeah, I faced with the same problem using simple command. TUI just stuck eating CPU and doesn't respond to anything <img width="812" height="68" alt="Image" src="https://github.com/user-attachments/assets/2e5c2b87-6777-42ef-a055-1c91ef2e0a83" /> ```md --- description: run request as a subtask subtask: true --- $ARGUMENTS ```
Author
Owner

@rekram1-node commented on GitHub (Oct 14, 2025):

@fpv-dev I think this is about shell commands not slash commands, your issue comes down to 2 things:

  • bubble tea eats a lot of cpu and the tui is inefficient (we are working on fixing this)
  • the command ux when using subagents is poor and it isnt easy to tell when an agent is finished
@rekram1-node commented on GitHub (Oct 14, 2025): @fpv-dev I think this is about shell commands not slash commands, your issue comes down to 2 things: - bubble tea eats a lot of cpu and the tui is inefficient (we are working on fixing this) - the command ux when using subagents is poor and it isnt easy to tell when an agent is finished
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2090