opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Error: Failed To Open Session

Open S-A-Martin opened this issue 1 year ago • 8 comments

  • Windows 11
  • Git bash terminal
  • Opencode v0.5.5
  • Github Copilot/GPT5 model

I was mid session when I got an error that opencode wouldn't continue from (I'll try to grab it again next time I see it it was possibly a connection error message?), and my gut reaction was to close opencode and reopen it, then source the session with '/session' command and that's when I saw the 'Failed to open session' error.

I mentioned this in the discord and was asked to raise the issue.

S-A-Martin avatar Aug 18 '25 19:08 S-A-Martin

ty for making issue

rekram1-node avatar Aug 18 '25 19:08 rekram1-node

I had this again... Everything was working normally until...

Image

I had this three or four times, and the queued messages were not sent. So I closed/re-opened and then tried to restore the session with /session and got the failed session error:

Image

S-A-Martin avatar Aug 19 '25 15:08 S-A-Martin

that’s some very odd behavior, I haven’t seen anyone else reporting this issue, maybe there is something with your config? Not sure… are you using anything custom model wise or anything out of the usual?

rekram1-node avatar Aug 19 '25 16:08 rekram1-node

No, nothing unusual - just what's stated in the issue description plus an AGENTS.md in ~/.config/opencode/ Other than that it's 'out of the box'.

S-A-Martin avatar Aug 20 '25 08:08 S-A-Martin

interesting, well thx for reporting

rekram1-node avatar Aug 20 '25 12:08 rekram1-node

@itsrainingmani

rekram1-node avatar Sep 24 '25 02:09 rekram1-node

Are u still getting this issue?

rekram1-node avatar Nov 13 '25 20:11 rekram1-node

I haven't seen it in a long time. Perhaps it's safe to close.

Steven-Martin-CC avatar Nov 13 '25 21:11 Steven-Martin-CC