Skip to content

Trying to import Markdown session transcript fails with "File not found" instead "Unsupported format" #23957

@sylv-io

Description

@sylv-io

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....

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions