JetBrains ACP hangs indefinitely on windows #4627

Closed
opened 2026-02-16 17:44:50 -05:00 by yindo · 18 comments
Owner

Originally created by @EnoroF on GitHub (Jan 10, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

The JetBrains ACP invocation gets stuck in the “thinking” state indefinitely. This happens with any ACP-enabled IDE.

2026-01-10T115724 - log.log

Plugins

Jetbrain AI Assistant ACP

OpenCode version

1.1.11

Steps to reproduce

  1. Configure the ACP in Jetbrain follow the Doc.
  2. Switch to AI Assistant in Jetbrain.
  3. The OpenCode Agent can be found and the model available is shown correctly.
  4. Ask any thing about the code
  5. No response from OpenCode anymore.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @EnoroF on GitHub (Jan 10, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description The JetBrains ACP invocation gets stuck in the “thinking” state indefinitely. This happens with any ACP-enabled IDE. [2026-01-10T115724 - log.log](https://github.com/user-attachments/files/24541714/2026-01-10T115724.-.log.log) ### Plugins Jetbrain AI Assistant ACP ### OpenCode version 1.1.11 ### Steps to reproduce 1. Configure the ACP in Jetbrain follow the Doc. 2. Switch to AI Assistant in Jetbrain. 3. The OpenCode Agent can be found and the model available is shown correctly. 4. Ask any thing about the code 5. No response from OpenCode anymore. ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the windowsbug labels 2026-02-16 17:44:50 -05:00
yindo closed this issue 2026-02-16 17:44:50 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 10, 2026):

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

  • #2940: [BUG] OpenCode just hangs randomly after receiving instructions - Reports OpenCode hanging indefinitely in various scenarios
  • #6573: Sessions hang indefinitely when Task tool spawns subagents via REST API - Describes sessions getting stuck in "busy" state
  • #6959: lsp bug: edit tool stalls after first diff; assistant hangs - Shows assistant hanging after edits in similar scenarios
  • #4402: Is opencode web broken? - Reports thinking state hanging indefinitely with web version
  • #5662: Getting stuck at 'Running commands' - Reports hanging at shell execution stage

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

@github-actions[bot] commented on GitHub (Jan 10, 2026): This issue might be a duplicate of existing issues. Please check: - #2940: [BUG] OpenCode just hangs randomly after receiving instructions - Reports OpenCode hanging indefinitely in various scenarios - #6573: Sessions hang indefinitely when Task tool spawns subagents via REST API - Describes sessions getting stuck in "busy" state - #6959: lsp bug: edit tool stalls after first diff; assistant hangs - Shows assistant hanging after edits in similar scenarios - #4402: Is opencode web broken? - Reports thinking state hanging indefinitely with web version - #5662: Getting stuck at 'Running commands' - Reports hanging at shell execution stage Feel free to ignore if none of these address your specific case.
Author
Owner

@anna239 commented on GitHub (Jan 12, 2026):

hi! I'm from JetBrains and working on the ACP integration in IDE. I can check if this hanging is related to the IDE integration, but I'll have to see the logs for that. Would it be ok for you to share acp logs? The action to get the logs is in AI Assistant's menu in the top right corner. You can share the logs directly with me via anna.zhdan@jetbrains.com or create an issue in our youtrack instance and attach the logs there https://youtrack.jetbrains.com/newIssue?project=LLM

@anna239 commented on GitHub (Jan 12, 2026): hi! I'm from JetBrains and working on the ACP integration in IDE. I can check if this hanging is related to the IDE integration, but I'll have to see the logs for that. Would it be ok for you to share acp logs? The action to get the logs is in AI Assistant's menu in the top right corner. You can share the logs directly with me via anna.zhdan@jetbrains.com or create an issue in our youtrack instance and attach the logs there https://youtrack.jetbrains.com/newIssue?project=LLM
Author
Owner

@EnoroF commented on GitHub (Jan 12, 2026):

hi! I'm from JetBrains and working on the ACP integration in IDE. I can check if this hanging is related to the IDE integration, but I'll have to see the logs for that. Would it be ok for you to share acp logs? The action to get the logs is in AI Assistant's menu in the top right corner. You can share the logs directly with me via anna.zhdan@jetbrains.com or create an issue in our youtrack instance and attach the logs there https://youtrack.jetbrains.com/newIssue?project=LLM

Hi, anna~

I send you the logs with e-mail, I check both log, It seems the problem from opencode, please check again.

@EnoroF commented on GitHub (Jan 12, 2026): > hi! I'm from JetBrains and working on the ACP integration in IDE. I can check if this hanging is related to the IDE integration, but I'll have to see the logs for that. Would it be ok for you to share acp logs? The action to get the logs is in AI Assistant's menu in the top right corner. You can share the logs directly with me via [anna.zhdan@jetbrains.com](mailto:anna.zhdan@jetbrains.com) or create an issue in our youtrack instance and attach the logs there https://youtrack.jetbrains.com/newIssue?project=LLM Hi, anna~ I send you the logs with e-mail, I check both log, It seems the problem from opencode, please check again.
Author
Owner

@anna239 commented on GitHub (Jan 12, 2026):

Checked the logs, looks like the issue is indeed with opencode — it just doesn't stream any events after client does session/prompt request

@anna239 commented on GitHub (Jan 12, 2026): Checked the logs, looks like the issue is indeed with opencode — it just doesn't stream any events after client does `session/prompt` request
Author
Owner

@EnoroF commented on GitHub (Jan 12, 2026):

Checked the logs, looks like the issue is indeed with opencode — it just doesn't stream any events after client does session/prompt request

yes, the opencode do not response and doesn't stream any events.

@EnoroF commented on GitHub (Jan 12, 2026): > Checked the logs, looks like the issue is indeed with opencode — it just doesn't stream any events after client does `session/prompt` request yes, the opencode do not response and doesn't stream any events.
Author
Owner

@mulehang6 commented on GitHub (Jan 13, 2026):

yeah, i'm getting this too. first only in webstorm,and now it's ok in webstorm but stuck in both idea and zed

@mulehang6 commented on GitHub (Jan 13, 2026): yeah, i'm getting this too. first only in webstorm,and now it's ok in webstorm but stuck in both idea and zed
Author
Owner

@EnoroF commented on GitHub (Jan 13, 2026):

yeah, i'm getting this too. first only in webstorm,and now it's ok in webstorm but stuck in both idea and zed

yeah,those IDE can integrate with other ACP agent correctly.

@EnoroF commented on GitHub (Jan 13, 2026): > yeah, i'm getting this too. first only in webstorm,and now it's ok in webstorm but stuck in both idea and zed yeah,those IDE can integrate with other ACP agent correctly.
Author
Owner

@dream-0708 commented on GitHub (Feb 1, 2026):

Has this problem been solved? I'd like to hear about the experience.

@dream-0708 commented on GitHub (Feb 1, 2026): Has this problem been solved? I'd like to hear about the experience.
Author
Owner

@mulehang6 commented on GitHub (Feb 1, 2026):

Has this problem been solved? I'd like to hear about the experience.

unfortunately not,still getting no response via acp,at least on my computer

@mulehang6 commented on GitHub (Feb 1, 2026): > Has this problem been solved? I'd like to hear about the experience. unfortunately not,still getting no response via acp,at least on my computer
Author
Owner

@rekram1-node commented on GitHub (Feb 2, 2026):

are all of you on windows?

@rekram1-node commented on GitHub (Feb 2, 2026): are all of you on windows?
Author
Owner

@mulehang6 commented on GitHub (Feb 2, 2026):

are all of you on windows?

i am

@mulehang6 commented on GitHub (Feb 2, 2026): > are all of you on windows? i am
Author
Owner

@rekram1-node commented on GitHub (Feb 2, 2026):

ahh windows bug

@rekram1-node commented on GitHub (Feb 2, 2026): ahh windows bug
Author
Owner

@cole-miller commented on GitHub (Feb 2, 2026):

This issue affects people using OpenCode via ACP in Zed as well: https://github.com/zed-industries/zed/issues/48120. Interestingly, the OP there reports that the hang only occurs when the project has a .git folder.

@cole-miller commented on GitHub (Feb 2, 2026): This issue affects people using OpenCode via ACP in Zed as well: https://github.com/zed-industries/zed/issues/48120. Interestingly, the OP there reports that the hang only occurs when the project has a `.git` folder.
Author
Owner

@Fugitive844 commented on GitHub (Feb 3, 2026):

I'm also experiencing this issue on Windows with JetBrains IDEA.
OpenCode version: 1.1.49
The ACP process starts but hangs indefinitely with no output.
CLI works fine, but ACP integration in IDE shows "thinking..." forever.
Confirmed it happens in Git repositories (similar to Zed issue #48120).

@Fugitive844 commented on GitHub (Feb 3, 2026): I'm also experiencing this issue on Windows with JetBrains IDEA. OpenCode version: 1.1.49 The ACP process starts but hangs indefinitely with no output. CLI works fine, but ACP integration in IDE shows "thinking..." forever. Confirmed it happens in Git repositories (similar to Zed issue #48120).
Author
Owner

@mkeryao commented on GitHub (Feb 3, 2026):

I've reproduced the issue. It fails when a .git directory exists, but works fine when it's absent.

@mkeryao commented on GitHub (Feb 3, 2026): I've reproduced the issue. It fails when a .git directory exists, but works fine when it's absent.
Author
Owner

@ParticleG commented on GitHub (Feb 10, 2026):

Any updates or workarounds?

@ParticleG commented on GitHub (Feb 10, 2026): Any updates or workarounds?
Author
Owner

@EnoroF commented on GitHub (Feb 10, 2026):

@ParticleG still can not work at all.

@EnoroF commented on GitHub (Feb 10, 2026): @ParticleG still can not work at all.
Author
Owner

@aSidorenkoCodePPI commented on GitHub (Feb 11, 2026):

Image

Bun's $ shell template tag makes child processes inherit the parent's stdin. In ACP mode, stdin is a pipe carrying protocol data (ndjson between the IDE and OpenCode). On Windows, when git inherits this pipe, the child process deadlocks and never finishes. This blocks Snapshot.track(), which blocks the stream processor, so no response ever shows up.

This doesn't happen in terminal mode because stdin is a normal TTY there, not a protocol pipe.

See https://github.com/anomalyco/opencode/pull/13222
Cheers!

@aSidorenkoCodePPI commented on GitHub (Feb 11, 2026): <img width="1167" height="1325" alt="Image" src="https://github.com/user-attachments/assets/30bdaa0c-d63e-4ca8-a003-89d7a6b972da" /> Bun's $ shell template tag makes child processes inherit the parent's stdin. In ACP mode, stdin is a pipe carrying protocol data (ndjson between the IDE and OpenCode). On Windows, when git inherits this pipe, the child process deadlocks and never finishes. This blocks Snapshot.track(), which blocks the stream processor, so no response ever shows up. This doesn't happen in terminal mode because stdin is a normal TTY there, not a protocol pipe. See https://github.com/anomalyco/opencode/pull/13222 Cheers!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4627