mirror of
https://github.com/stablyai/orca.git
synced 2026-10-18 08:03:22 +00:00
test(ai-vault): clarify OpenCode discovery proof boundaries (#8864)
This commit is contained in:
@@ -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)`)
|
||||
|
||||
Reference in New Issue
Block a user