-
Notifications
You must be signed in to change notification settings - Fork 12k
Description
Description
Preview builds derive the channel from the git branch. If that channel contains /, OpenCode uses it directly in the SQLite database filename.
In my case, the installed preview binary reports:
0.0.0-foo/bar-202603061937
and startup tries to open:
/home/aasoft/.local/share/opencode/opencode-foo/bar.db
That turns the database filename into a nested path, and startup fails with:
unable to open database file
This looks related to #16224, but it is a different failure mode. #16224 is about slash-containing preview channels breaking version/plugin flows; this one is the same unsanitized channel reaching the local SQLite filename.
Plugins
None configured (~/.config/opencode/opencode.jsonc has an empty plugin array)
OpenCode version
0.0.0-dev-202603061937 (but with a branch name that has a slash in it, eg foo/bar)
Steps to reproduce
- Build or install a preview
opencodebinary whose channel comes from a branch name containing/, for examplefoo/bar - Run
opencode - Observe startup failure with
unable to open database file
Screenshot and/or share link
Error:
Unexpected error, check log file ... unable to open database file
Log excerpt:
INFO ... service=db path=/home/aasoft/.local/share/opencode/opencode-foo/bar.db opening database
Operating System
Arch Linux
Terminal
Alacritty