mirror of
https://github.com/sst/opencode.git
synced 2025-08-31 18:27:22 +00:00
Fix project folder name starting with "-" in data (#323). Note old session data will still be in the old format in ~/.local/share/opencode/projects
- you can remove the leading dash to recover the,
This commit is contained in:
parent
8d3b2fb821
commit
ed1b0d97bf
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ export namespace App {
|
|||
const data = path.join(
|
||||
Global.Path.data,
|
||||
"project",
|
||||
git ? git.split(path.sep).join("-") : "global",
|
||||
git ? git.split(path.sep).filter(Boolean).join("-") : "global",
|
||||
)
|
||||
const stateFile = Bun.file(path.join(data, APP_JSON))
|
||||
const state = (await stateFile.json().catch(() => ({}))) as {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue