“socket is not connected” on POST /session/{id}/message when project root contains .git; removing .git avoids the error (Windows 10, Bun 1.3.0, opencode 0.15.3) #2124

Closed
opened 2026-02-16 17:34:15 -05:00 by yindo · 14 comments
Owner

Originally created by @TangTangH on GitHub (Oct 16, 2025).

Originally assigned to: @rekram1-node on GitHub.

Any project with a .git folder returns “socket is not connected” on POST /session/{id}/message ; removing .git makes it succeed.

I have tried multiple attempts given in the issue dialogue, but have not been able to resolve it.

Logs with .git folder:
2025-10-16T093229.log

Logs without .git folder:
2025-10-16T093329.log

Originally created by @TangTangH on GitHub (Oct 16, 2025). Originally assigned to: @rekram1-node on GitHub. Any project with a .git folder returns “socket is not connected” on POST /session/{id}/message ; removing .git makes it succeed. I have tried multiple attempts given in the issue dialogue, but have not been able to resolve it. Logs with .git folder: [2025-10-16T093229.log](https://github.com/user-attachments/files/22946081/2025-10-16T093229.log) Logs without .git folder: [2025-10-16T093329.log](https://github.com/user-attachments/files/22946080/2025-10-16T093329.log)
yindo added the bug label 2026-02-16 17:34:15 -05:00
yindo closed this issue 2026-02-16 17:34:16 -05:00
Author
Owner

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

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

  • #2304: Same exact issue - socket connection error with .git folder presence on macOS, renaming .git folder fixes it
  • #2365: Not working in git project directories but works in non-git directories
  • #3142: "Failed to send message" error when doing any type of prompt (Windows-specific messaging issues)

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

@github-actions[bot] commented on GitHub (Oct 16, 2025): This issue might be a duplicate of existing issues. Please check: - #2304: Same exact issue - socket connection error with .git folder presence on macOS, renaming .git folder fixes it - #2365: Not working in git project directories but works in non-git directories - #3142: "Failed to send message" error when doing any type of prompt (Windows-specific messaging issues) Feel free to ignore if none of these address your specific case.
Author
Owner

@tmaarcxs commented on GitHub (Oct 16, 2025):

same for me

Edit: downgrading to 0.14.7 solves the issue temporally

@tmaarcxs commented on GitHub (Oct 16, 2025): same for me Edit: downgrading to 0.14.7 solves the issue temporally
Author
Owner

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

Ill look into that

@rekram1-node commented on GitHub (Oct 16, 2025): Ill look into that
Author
Owner

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

Seems to be due to bun 1.3, both of you are on windows right

@rekram1-node commented on GitHub (Oct 17, 2025): Seems to be due to bun 1.3, both of you are on windows right
Author
Owner

@tmaarcxs commented on GitHub (Oct 17, 2025):

Seems to be due to bun 1.3, both of you are on windows right

Yes, I'm on windows also

@tmaarcxs commented on GitHub (Oct 17, 2025): > Seems to be due to bun 1.3, both of you are on windows right Yes, I'm on windows also
Author
Owner

@sollie commented on GitHub (Oct 18, 2025):

I am also seeing this on macOS 15.7.1

@sollie commented on GitHub (Oct 18, 2025): I am also seeing this on macOS 15.7.1
Author
Owner

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

hm good to know...

@sollie is it without fail always happening? Is the git project really big or something?

@rekram1-node commented on GitHub (Oct 18, 2025): hm good to know... @sollie is it without fail always happening? Is the git project really big or something?
Author
Owner

@sollie commented on GitHub (Oct 18, 2025):

hm good to know...

@sollie is it without fail always happening? Is the git project really big or something?

The first repo I had it happen to had less than 10 commits across 5-10 files total in the repo.

@sollie commented on GitHub (Oct 18, 2025): > hm good to know... > > @sollie is it without fail always happening? Is the git project really big or something? The first repo I had it happen to had less than 10 commits across 5-10 files total in the repo.
Author
Owner

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

weird hm okay thanks

@rekram1-node commented on GitHub (Oct 18, 2025): weird hm okay thanks
Author
Owner

@TangTangH commented on GitHub (Oct 26, 2025):

Image

After upgrading to version 0.15.18, I got a more precise error message, which points to this location: src/file/ripgrep.ts:217:27

@TangTangH commented on GitHub (Oct 26, 2025): <img width="1214" height="635" alt="Image" src="https://github.com/user-attachments/assets/ce8a79e7-12b9-48bd-a079-3e028280351c" /> After upgrading to version 0.15.18, I got a more precise error message, which points to this location: src/file/ripgrep.ts:217:27
Author
Owner

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

Ahh okay that's helpful

@rekram1-node commented on GitHub (Oct 26, 2025): Ahh okay that's helpful
Author
Owner

@freddiehaddad commented on GitHub (Oct 27, 2025):

Can confirm the same as the other folks. Downgrading works as a temporary solution.

@freddiehaddad commented on GitHub (Oct 27, 2025): Can confirm the same as the other folks. Downgrading works as a temporary solution.
Author
Owner

@TangTangH commented on GitHub (Nov 3, 2025):

The issue was still present in version v1.0.15, but it has been resolved after updating to v1.0.18.

@TangTangH commented on GitHub (Nov 3, 2025): The issue was still present in version v1.0.15, but it has been resolved after updating to v1.0.18.
Author
Owner

@rekram1-node commented on GitHub (Nov 4, 2025):

amazing, going to close and if anyone else has this issue on v1 lmk and we will reopen

@rekram1-node commented on GitHub (Nov 4, 2025): amazing, going to close and if anyone else has this issue on v1 lmk and we will reopen
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2124