Opencode sometimes hangs when running in VSCode Terminal #2621

Closed
opened 2026-02-16 17:36:30 -05:00 by yindo · 6 comments
Owner

Originally created by @thaoula on GitHub (Nov 6, 2025).

Originally assigned to: @thdxr on GitHub.

Description

Hi Team,

I have been running Opencode in the Vscode terminal on Macos for over a week.

I have been having a recurring issue where Opencode will completely hang and kill all vscode terminals in the window.

So far, this has happened after the following actions -

  • Resume a previous sessions
  • Click on the prompt area
  • Attempting to answer a tool permission question.

In all cases the hang is absolute and all vscode terminals get locked and turn orange and you have to exit vscode and start again.

Unfortunately, I have been unable to make it happen on demand but it has happened at least 1 time per day.

I have upgrade to v1.0.34 now but was running v.1x-1.0.28 previously it was still occuring.

Kind Regards,
Tarek

OpenCode version

1.0.28

Steps to reproduce

I have been unable to reproduce this issue by an known steps.

It has occurred during -

  • Resume a previous sessions
  • Click on the prompt area
  • Attempting to answer a tool permission question.

Screenshot and/or share link

No response

Operating System

macOS 26.1

Terminal

vscode

Originally created by @thaoula on GitHub (Nov 6, 2025). Originally assigned to: @thdxr on GitHub. ### Description Hi Team, I have been running Opencode in the Vscode terminal on Macos for over a week. I have been having a recurring issue where Opencode will completely hang and kill all vscode terminals in the window. So far, this has happened after the following actions - - Resume a previous sessions - Click on the prompt area - Attempting to answer a tool permission question. In all cases the hang is absolute and all vscode terminals get locked and turn orange and you have to exit vscode and start again. Unfortunately, I have been unable to make it happen on demand but it has happened at least 1 time per day. I have upgrade to v1.0.34 now but was running v.1x-1.0.28 previously it was still occuring. Kind Regards, Tarek ### OpenCode version 1.0.28 ### Steps to reproduce I have been unable to reproduce this issue by an known steps. It has occurred during - - Resume a previous sessions - Click on the prompt area - Attempting to answer a tool permission question. ### Screenshot and/or share link _No response_ ### Operating System macOS 26.1 ### Terminal vscode
yindo added the opentuibug labels 2026-02-16 17:36:30 -05:00
yindo closed this issue 2026-02-16 17:36:30 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 6, 2025):

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

  • #3944: Concurrent permissions cause app to freeze - Similar symptoms when attempting to answer tool permission questions
  • #3691: Opencode is able to crash the terminal - Similar terminal crashing behavior
  • #731: Critical Stability Issues: App Freezing & Hanging Analysis - Comprehensive analysis of hanging/freezing issues in OpenCode
  • #3798: OpenTUI causes crashes and heavy memory usage - Similar crashes and terminal issues

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

@github-actions[bot] commented on GitHub (Nov 6, 2025): This issue might be a duplicate of existing issues. Please check: - #3944: Concurrent permissions cause app to freeze - Similar symptoms when attempting to answer tool permission questions - #3691: Opencode is able to crash the terminal - Similar terminal crashing behavior - #731: Critical Stability Issues: App Freezing & Hanging Analysis - Comprehensive analysis of hanging/freezing issues in OpenCode - #3798: OpenTUI causes crashes and heavy memory usage - Similar crashes and terminal issues Feel free to ignore if none of these address your specific case.
Author
Owner

@thdxr commented on GitHub (Nov 6, 2025):

can you try again with latest?

@thdxr commented on GitHub (Nov 6, 2025): can you try again with latest?
Author
Owner

@thaoula commented on GitHub (Nov 6, 2025):

I installed 1.0.35 just now.

@thaoula commented on GitHub (Nov 6, 2025): I installed 1.0.35 just now.
Author
Owner

@thdxr commented on GitHub (Nov 11, 2025):

should be fixed now

@thdxr commented on GitHub (Nov 11, 2025): should be fixed now
Author
Owner

@ironbelly commented on GitHub (Dec 22, 2025):

I am unsure if this is 100% related but I can confirm this is happening at an alarming frequency. I can't operate a session longer than 4-5 minutes without Opencode exited to terminal with the 'killed' message. It has rendered opencode completely unuseable in this environment

@ironbelly commented on GitHub (Dec 22, 2025): I am unsure if this is 100% related but I can confirm this is happening at an alarming frequency. I can't operate a session longer than 4-5 minutes without Opencode exited to terminal with the 'killed' message. It has rendered opencode completely unuseable in this environment
Author
Owner

@rekram1-node commented on GitHub (Dec 22, 2025):

it wouldn't have anything to do w/ your terminal. If something is getting killed you don't have enough ram on your machine it seems

@rekram1-node commented on GitHub (Dec 22, 2025): it wouldn't have anything to do w/ your terminal. If something is getting killed you don't have enough ram on your machine it seems
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2621