fix: adapt salvaged staleness-probe tests to the kickoff option-object signature

createCanonicalChat gained { kickoff } on main (#95326) after #91227 was
filed with a bare positional openingStillCurrent; the salvage merges both
into one options object.
This commit is contained in:
686f6c61
2026-08-25 10:10:01 +02:00
committed by Teknium
parent 0ecbf1ce91
commit bdbb41b62e
@@ -131,7 +131,7 @@ test('a superseded roster open may create the canonical row but never navigate i
}
})
assert.equal(await runtime.createCanonicalChat('ops', () => current), 'new-stored')
assert.equal(await runtime.createCanonicalChat('ops', { openingStillCurrent: () => current }), 'new-stored')
assert.deepEqual(opens, [])
})
@@ -156,10 +156,10 @@ test('a newer same-bot open replaces the in-flight creation navigation guard', a
}
})
const first = runtime.createCanonicalChat('ops', () => firstCurrent)
const first = runtime.createCanonicalChat('ops', { openingStillCurrent: () => firstCurrent })
await createStarted
firstCurrent = false
const second = runtime.createCanonicalChat('ops', () => true)
const second = runtime.createCanonicalChat('ops', { openingStillCurrent: () => true })
releaseCreate()
assert.equal(await first, 'shared-stored')