diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx index c73a520428..a3ea493cc2 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -1952,8 +1952,8 @@ function ApplyPatch(props: ToolProps) { - - apply_patch + + Patch diff --git a/packages/opencode/test/storage/json-migration.test.ts b/packages/opencode/test/storage/json-migration.test.ts index b9981858ba..70582eed04 100644 --- a/packages/opencode/test/storage/json-migration.test.ts +++ b/packages/opencode/test/storage/json-migration.test.ts @@ -232,31 +232,6 @@ describe("JSON to SQLite migration", () => { expect(stats?.sessions).toBe(0) }) - test("creates sqlite-migrated marker file", async () => { - await migrateFromJson(sqlite, storageDir) - - const marker = path.join(storageDir, "sqlite-migrated") - expect(await Bun.file(marker).exists()).toBe(true) - }) - - test("skips if already migrated", async () => { - await Bun.write(path.join(storageDir, "sqlite-migrated"), Date.now().toString()) - await Bun.write( - path.join(storageDir, "project", "proj_test123abc.json"), - JSON.stringify({ - id: "proj_test123abc", - worktree: "/", - time: { created: Date.now(), updated: Date.now() }, - sandboxes: [], - }), - ) - - const stats = await migrateFromJson(sqlite, storageDir) - - // Should return undefined (skipped) since already migrated - expect(stats).toBeUndefined() - }) - test("is idempotent (running twice doesn't duplicate)", async () => { await Bun.write( path.join(storageDir, "project", "proj_test123abc.json"), @@ -269,10 +244,6 @@ describe("JSON to SQLite migration", () => { ) await migrateFromJson(sqlite, storageDir) - - // Remove marker to run again - await fs.rm(path.join(storageDir, "sqlite-migrated")) - await migrateFromJson(sqlite, storageDir) const db = drizzle({ client: sqlite })