Dax Raad hace 8 meses
padre
commit
c5eafd5722
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      packages/opencode/src/app/app.ts

+ 2 - 2
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(),