test(ai-vault): clarify OpenCode discovery proof boundaries (#8864)

This commit is contained in:
Rod Boev
2026-07-15 18:51:15 -04:00
parent 77a0e06c9f
commit c007cc1443
2 changed files with 2 additions and 2 deletions
@@ -96,7 +96,7 @@ function applyOpenCodeSchema(db: Database.Database): void {
`)
}
describe('scanAiVaultSessions — OpenCode SQLite + legacy file coexistence', () => {
describe('OpenCode SQLite coexistence and cache identity', () => {
it('discovers SQLite sessions next to a custom OpenCode storage directory', async () => {
const root = await mkdtemp(join(tmpdir(), 'orca-ai-vault-custom-opencode-'))
tempRoots.push(root)
@@ -223,7 +223,7 @@ describe('listOpenCodeSqliteSessions', () => {
expect(candidates[1].file.path).toBe(buildOpenCodeSqliteCandidatePath(path, 'ses_old'))
})
it('discovers sessions when unrelated message, part, and event content is malformed', async () => {
it('discovers sessions when message content is malformed and part/event rows are noisy', async () => {
const { db, path } = createTempDb()
applyOpenCodeSchema(db)
db.exec(`CREATE TABLE event (id TEXT PRIMARY KEY, data TEXT NOT NULL)`)