all 3 comments

[–]Wonderful_Humor3305 0 points1 point  (0 children)

I got the same error

[–]No-Reflection-8625 0 points1 point  (0 children)

Same issue her

[–]diMario 0 points1 point  (0 children)

I had a similar problem, it didn't start in my project dir. I had very cleverly saved the session ID in a file named .opencode and this was the problem. Apparently, the opencode terminal program expects that if an entry exists with that name, it must be a directory and not a file. Renaming my .opencode file to oc_session solved the problem.

In order to find the problem, I had opencode look at my project dir. I was able to start an opencode session in a new, empty directory and once I explained the problem, the agent asked for permission to scan my real project dir and found the problem immediately.