Description
OpenCode fails to import session files, claiming that they do not exist.
I made the wrong assumption and tried to import the session transcript instead of the session data in JSON format. OpenCode provided an error message, but it did not match the reason why it failed.
To prevent others from making the same mistake, I recommend adapting the error message to inform users that the session data must be in JSON format instead of claiming that the file does not exist.
Plugins
No response
OpenCode version
1.14.21
Steps to reproduce
$ opencode --version
1.14.21
$ ls
session-ses_24ad.md
$ opencode import --pure session-ses_24ad.md
File not found: session-ses_24ad.md
Screenshot and/or share link
No response
Operating System
Arch Linux
Terminal
Alacritty, xterm, foot, kitty....
Description
OpenCode fails to import session files, claiming that they do not exist.I made the wrong assumption and tried to import the session transcript instead of the session data in JSON format. OpenCode provided an error message, but it did not match the reason why it failed.
To prevent others from making the same mistake, I recommend adapting the error message to inform users that the session data must be in JSON format instead of claiming that the file does not exist.
Plugins
No response
OpenCode version
1.14.21
Steps to reproduce
Screenshot and/or share link
No response
Operating System
Arch Linux
Terminal
Alacritty, xterm, foot, kitty....