Opencode hangs on node 20 #1594

Open
opened 2026-02-16 17:31:42 -05:00 by yindo · 4 comments
Owner

Originally created by @martinalderson on GitHub (Sep 3, 2025).

Originally assigned to: @thdxr on GitHub.

On node 20 opencode hangs with run commands in CLI mode. Some other commands do work though. I'm struggling to get a solid repro (I'm using it in a docker container) but it works perfectly in node 24. It seems to be hanging after opening a port.

It may be something else, but is it meant to work on node 20 or not? If so it would be good to fail quickly.

Originally created by @martinalderson on GitHub (Sep 3, 2025). Originally assigned to: @thdxr on GitHub. On node 20 opencode hangs with run commands in CLI mode. Some other commands do work though. I'm struggling to get a solid repro (I'm using it in a docker container) but it works perfectly in node 24. It seems to be hanging after opening a port. It may be something else, but is it meant to work on node 20 or not? If so it would be good to fail quickly.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 3, 2025):

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

  • #1431: opencode hangs when trying to end it - Similar hanging behavior when exiting opencode
  • #1717: TUI exits but process hangs (no shell return) when opencode.json is present - Hanging after exit with Docker-based MCP configurations
  • #854: On exit - hangs in terminal - Hanging issues when exiting after running requests
  • #1810: /exit hangs after new session - Exit hanging specifically after creating new sessions

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

@github-actions[bot] commented on GitHub (Sep 3, 2025): This issue might be a duplicate of existing issues. Please check: - #1431: opencode hangs when trying to end it - Similar hanging behavior when exiting opencode - #1717: TUI exits but process hangs (no shell return) when opencode.json is present - Hanging after exit with Docker-based MCP configurations - #854: On exit - hangs in terminal - Hanging issues when exiting after running requests - #1810: /exit hangs after new session - Exit hanging specifically after creating new sessions Feel free to ignore if none of these address your specific case.
Author
Owner

@esafak commented on GitHub (Sep 6, 2025):

Mine hangs when I try to exit; esp. when an update is involved. I have to ctrl+c another time.

@esafak commented on GitHub (Sep 6, 2025): Mine hangs when I try to exit; esp. when an update is involved. I have to ctrl+c another time.
Author
Owner

@sergiuszm commented on GitHub (Sep 17, 2025):

Hangs on exit for me as well. Double ctrl+c works but it's harder when I run it in docker container. I have to kill container manually...

@sergiuszm commented on GitHub (Sep 17, 2025): Hangs on exit for me as well. Double ctrl+c works but it's harder when I run it in docker container. I have to kill container manually...
Author
Owner

@veracioux commented on GitHub (Oct 10, 2025):

Might be fixed by https://github.com/sst/opencode/pull/3083.
Try it out if you feel so inclined.

@veracioux commented on GitHub (Oct 10, 2025): Might be fixed by https://github.com/sst/opencode/pull/3083. Try it out if you feel so inclined.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1594