Skip to content

fix(sdk): keep all-profiles sidebar scope on cross-profile openSession - #85155

Merged
teknium1 merged 1 commit into
mainfrom
feat/sdk-session-scope-door
Aug 13, 2026
Merged

teknium1 merged 1 commit into
mainfrom
feat/sdk-session-scope-door

Conversation

@teknium1

Copy link
Copy Markdown
Collaborator

What

Follow-up to #85093. host.openSession(id, { profile }) performs the soft profile swap via ensureGatewayProfile, which points the live gateway at the target profile — and as a side effect the Sessions sidebar narrows to that profile's sessions. For a plugin surface that navigates across profiles (e.g. a bot-roster pane opening each agent's chat), the user gets silently locked into the target profile's session list and has to click back to the all-profiles view by hand every time.

A cross-profile open from a plugin is a navigation, not a scope choice.

Fix

host.openSession gains keepAllProfilesScope (default true): after a cross-profile activation it calls setShowAllProfiles(true), so the sidebar stays in the unified all-profiles view while the chat itself opens under the right backend. Passing false restores the previous behavior (scope the sidebar to the target profile). Same-profile opens are untouched — no scope writes at all.

Verification

Renderer compiles; behavior exercised via the hermes-bots roster plugin: clicking bots across profiles now leaves the Sessions sidebar in the unified view, and keepAllProfilesScope: false reproduces the old narrowing.

ensureGatewayProfile narrows the Sessions sidebar to the activated
profile as a side effect, so every cross-profile open from a plugin
surface silently locked the user into that profile's session list. A
plugin-driven open is a navigation, not a scope choice: openSession now
restores the unified all-profiles view after a cross-profile activation
(keepAllProfilesScope, default true; pass false for the old narrowing).
Same-profile opens write no scope at all.
@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on e76a7fb — fix(sdk): keep all-profiles sidebar scope on cross-profile o

⚠️ Warnings

OSV vulnerability scan · View job

3 known vulnerabilities found in pinned dependencies.

How to fix:

Review the findings in the Security tab. Update the affected dependencies if a patched version is available.


debug info

CI timings

CI timings · View report · View job

Wall time 6m51s vs 7m48s (-12.2%). 9 job(s) slower, 4 faster, 3 unchanged.

  • JS & TS checks / ui-tui/packages/hermes-ink / check: +18.0s
  • JS & TS checks / apps/desktop / check:lint: -18.0s
  • JS & TS checks / apps/desktop / check:test:desktop:all: +11.0s
  • JS & TS checks / apps/desktop / check:test:desktop:platforms: +10.0s
  • JS & TS checks / web / check: -8.0s

@teknium1
teknium1 merged commit cfc5e09 into main Aug 13, 2026
36 checks passed
@teknium1
teknium1 deleted the feat/sdk-session-scope-door branch August 13, 2026 08:50
skappafrost pushed a commit to skappafrost/hermes-agent that referenced this pull request Aug 15, 2026
NousResearch#85155)

ensureGatewayProfile narrows the Sessions sidebar to the activated
profile as a side effect, so every cross-profile open from a plugin
surface silently locked the user into that profile's session list. A
plugin-driven open is a navigation, not a scope choice: openSession now
restores the unified all-profiles view after a cross-profile activation
(keepAllProfilesScope, default true; pass false for the old narrowing).
Same-profile opens write no scope at all.
melon-xf added a commit to melon-xf/hermes-agent that referenced this pull request Sep 3, 2026
NousResearch#85155)

ensureGatewayProfile narrows the Sessions sidebar to the activated
profile as a side effect, so every cross-profile open from a plugin
surface silently locked the user into that profile's session list. A
plugin-driven open is a navigation, not a scope choice: openSession now
restores the unified all-profiles view after a cross-profile activation
(keepAllProfilesScope, default true; pass false for the old narrowing).
Same-profile opens write no scope at all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant