opencode icon indicating copy to clipboard operation
opencode copied to clipboard

“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)

Open TangTangH opened this issue 1 year ago • 14 comments

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

TangTangH avatar Oct 16 '25 10:10 TangTangH

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] avatar Oct 16 '25 10:10 github-actions[bot]

same for me

Edit: downgrading to 0.14.7 solves the issue temporally

tmaarcxs avatar Oct 16 '25 11:10 tmaarcxs

Ill look into that

rekram1-node avatar Oct 16 '25 15:10 rekram1-node

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

rekram1-node avatar Oct 17 '25 15:10 rekram1-node

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

Yes, I'm on windows also

tmaarcxs avatar Oct 17 '25 16:10 tmaarcxs

I am also seeing this on macOS 15.7.1

sollie avatar Oct 18 '25 11:10 sollie

hm good to know...

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

rekram1-node avatar Oct 18 '25 15:10 rekram1-node

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 avatar Oct 18 '25 15:10 sollie

weird hm okay thanks

rekram1-node avatar Oct 18 '25 16:10 rekram1-node

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 avatar Oct 26 '25 12:10 TangTangH

Ahh okay that's helpful

rekram1-node avatar Oct 26 '25 16:10 rekram1-node

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

freddiehaddad avatar Oct 27 '25 22:10 freddiehaddad

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

TangTangH avatar Nov 04 '25 04:11 TangTangH

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

rekram1-node avatar Nov 04 '25 05:11 rekram1-node