The open source coding agent.
TypeScript
sync
Dax Raadc5eafd572212
diff --git a/packages/opencode/src/app/app.ts b/packages/opencode/src/app/app.tsindex ed4408da053..652dc0339f6 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: numberversion: 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(),