Skip to content

The agent that grows with you

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

686f6c61bdbb41b62e3a
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 b4348e651d9..bf3d251cb47 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')