The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): lock the Stop button to room.running and the stop primitive
Tekniumb00e71dc931f
diff --git a/apps/desktop/src/plugins/hermes-bots/tests/group-stop-thread.test.mjs b/apps/desktop/src/plugins/hermes-bots/tests/group-stop-thread.test.mjsindex a8b4630fa12..37bf1365f66 100644--- a/apps/desktop/src/plugins/hermes-bots/tests/group-stop-thread.test.mjs+++ b/apps/desktop/src/plugins/hermes-bots/tests/group-stop-thread.test.mjs@@ -292,3 +292,17 @@ test('an ordinary newer-send epoch bump WITHOUT a hold does not abandon the pollassert.equal(reply, 'finished anyway', 'epoch churn alone never abandons a live turn')})+test('Stop button: workspace renders it while the room is running and wires it to stopGroupThread', () => {+ const workspace = pluginSource.slice(pluginSource.indexOf('function GroupChatWorkspace'))+ // Visible while a round is running…+ assert.match(workspace, /room\.running\s*\?\s*jsx\('button'/, 'Stop button is gated on room.running')+ // …and wired to the real primitive, not a per-member interrupt spray.+ assert.match(workspace, /stopGroupThread\(/, 'button calls the stopGroupThread primitive')+ assert.doesNotMatch(workspace, /stopAllBots/, 'the #94570 interrupt-only shell was rewired, not kept')+})++test('no hardcoded CJK label in the room workspace (the #94570 shell shipped a localized 停止)', () => {+ const workspace = pluginSource.slice(pluginSource.indexOf('function GroupChatWorkspace'))+ assert.doesNotMatch(workspace, /停止/, 'the #94570 hardcoded label must not survive the salvage')+ assert.doesNotMatch(workspace, /[\u4e00-\u9fff]/, 'labels stay in the plugin label pattern — plain English strings')+})