diff options
| author | Dax Raad <[email protected]> | 2025-06-03 14:25:25 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-03 14:25:25 -0400 |
| commit | c5eafd5722123b35cf3d995551395b23bb69e907 (patch) | |
| tree | a71315c61df2fa0fb9308a12b749b803cdbe7dbb | |
| parent | caf9fdc893bfdda79450d62f9140a6a314ab1387 (diff) | |
| download | opencode-c5eafd5722123b35cf3d995551395b23bb69e907.tar.gz opencode-c5eafd5722123b35cf3d995551395b23bb69e907.zip | |
sync
| -rw-r--r-- | packages/opencode/src/app/app.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/opencode/src/app/app.ts b/packages/opencode/src/app/app.ts index ed4408da0..652dc0339 100644 --- a/packages/opencode/src/app/app.ts +++ b/packages/opencode/src/app/app.ts @@ -33,7 +33,7 @@ export namespace App { ) const data = path.join(Global.data(), git ?? "global") - const stateFile = Bun.file(path.join(data, "state")) + const stateFile = Bun.file(path.join(data, "state.json")) const state = (await stateFile.json().catch(() => ({}))) as { initialized: number version: string @@ -113,7 +113,7 @@ export namespace App { const { info, version } = ctx.use() info.time.initialized = Date.now() await Bun.write( - path.join(info.path.data, "state"), + path.join(info.path.data, "state.json"), JSON.stringify({ version, initialized: Date.now(), |
