The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): bot navigation no longer forces the all-profiles sidebar on
marketing2981ed47d41dc95d
diff --git a/apps/desktop/src/plugins/hermes-bots/plugin.js b/apps/desktop/src/plugins/hermes-bots/plugin.jsindex c4601b5fd7c..2f1a4917cf4 100644--- a/apps/desktop/src/plugins/hermes-bots/plugin.js+++ b/apps/desktop/src/plugins/hermes-bots/plugin.js@@ -3190,7 +3190,8 @@ async function openStoredBotChat(name, storedId, summary) {profile: name,intent: 'main',awaitHydration: true,- expectHistory+ expectHistory,+ keepAllProfilesScope: false})return storedId@@ -3230,7 +3231,7 @@ function createCanonicalChat(name) {if (sid && typeof host.openSession === 'function') {try {- await host.openSession(sid, { profile: name, intent: 'main' })+ await host.openSession(sid, { profile: name, intent: 'main', keepAllProfilesScope: false })opened = true} catch {// The stored row may not exist until the kickoff persists it. Retry@@ -3245,7 +3246,7 @@ function createCanonicalChat(name) {await host.request('prompt.submit', { session_id: runtime, text: 'Hey, tell me about yourself!' })if (!opened && sid && typeof host.openSession === 'function') {- await host.openSession(sid, { profile: name, intent: 'main' })+ await host.openSession(sid, { profile: name, intent: 'main', keepAllProfilesScope: false })}} catch {// The chat already exists. Keep the pin so the next click@@ -7686,7 +7687,7 @@ async function openProfileSession(botName, session, gatewayGeneration) {typeof session?.message_count === 'number' && Number.isFinite(session.message_count)const expectHistory = hasAuthoritativeCount ? session.message_count > 0 : Boolean(session?.preview)- await host.openSession(id, { profile, awaitHydration: true, expectHistory })+ await host.openSession(id, { profile, awaitHydration: true, expectHistory, keepAllProfilesScope: false })if (gatewayGeneration !== $sessionsGatewayGeneration.get()) return$botSelectedSessions.set({ ...$botSelectedSessions.get(), [profile]: id })}diff --git a/apps/desktop/src/plugins/hermes-bots/tests/session-workspace.test.mjs b/apps/desktop/src/plugins/hermes-bots/tests/session-workspace.test.mjsindex 8d2d1c03b85..e209eebc159 100644--- a/apps/desktop/src/plugins/hermes-bots/tests/session-workspace.test.mjs+++ b/apps/desktop/src/plugins/hermes-bots/tests/session-workspace.test.mjs@@ -90,7 +90,7 @@ test('sessions workspace: opening a stored row uses profile-aware navigation andconst runtime = load({ profile: 'default' })await runtime.__sessions.openProfileSession('ops', { id: 'stored-123', message_count: 4 }, 0)assert.deepEqual(plain(runtime.calls), [- ['openSession', 'stored-123', { profile: 'ops', awaitHydration: true, expectHistory: true }]+ ['openSession', 'stored-123', { profile: 'ops', awaitHydration: true, expectHistory: true, keepAllProfilesScope: false }]])assert.equal(runtime.__sessions.$botSelectedSessions.get().ops, 'stored-123')})@@ -117,7 +117,7 @@ test('sessions workspace: an empty session with no preview does not demand histoconst runtime = load()await runtime.__sessions.openProfileSession('ops', { id: 'stored-empty', message_count: 0 }, 0)assert.deepEqual(plain(runtime.calls), [- ['openSession', 'stored-empty', { profile: 'ops', awaitHydration: true, expectHistory: false }]+ ['openSession', 'stored-empty', { profile: 'ops', awaitHydration: true, expectHistory: false, keepAllProfilesScope: false }]])})diff --git a/contributors/emails/[email protected] b/contributors/emails/[email protected]new file mode 100644index 00000000000..53eb678ad5e--- /dev/null+++ b/contributors/emails/[email protected]@@ -0,0 +1 @@+marketing2981