From bdbb41b62e3af104549bf9a321fd1bd27f8e56af Mon Sep 17 00:00:00 2001 From: 686f6c61 Date: Tue, 25 Aug 2026 10:10:01 +0200 Subject: [PATCH] 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. --- .../hermes-bots/tests/canonical-chat-creation.test.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/plugins/hermes-bots/tests/canonical-chat-creation.test.mjs b/apps/desktop/src/plugins/hermes-bots/tests/canonical-chat-creation.test.mjs index b4348e651d..bf3d251cb4 100644 --- a/apps/desktop/src/plugins/hermes-bots/tests/canonical-chat-creation.test.mjs +++ b/apps/desktop/src/plugins/hermes-bots/tests/canonical-chat-creation.test.mjs @@ -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')