Files
Kilo-Org_kilocode/packages/opencode/test/storage/db.test.ts
T
Mark IJbema 9f8079058a fix(cli): always use kilo.db regardless of channel
The upstream merge in PR #7240 introduced channel-based database path
separation, causing non-latest/beta channels (including local dev) to
open a different DB file (e.g. kilo-local.db) instead of kilo.db. This
made all existing sessions invisible.

Remove the channel-based path logic and always use kilo.db. Also remove
the now-unused KILO_DISABLE_CHANNEL_DB flag.

Closes #7472
2026-03-23 18:33:21 +01:00

12 lines
346 B
TypeScript

import { describe, expect, test } from "bun:test"
import path from "path"
import { Database } from "../../src/storage/db"
describe("Database.Path", () => {
// kilocode_change - always use kilo.db regardless of channel
test("always uses kilo.db", () => {
const file = path.basename(Database.Path)
expect(file).toBe("kilo.db")
})
})