Skip to content

fix(desktop): dial pooled profile backends on tab switch - #86130

Closed
infinitycrew39 wants to merge 2 commits into
NousResearch:mainfrom
infinitycrew39:fix/desktop-profile-pool-shared-primary-route
Closed

fix(desktop): dial pooled profile backends on tab switch#86130
infinitycrew39 wants to merge 2 commits into
NousResearch:mainfrom
infinitycrew39:fix/desktop-profile-pool-shared-primary-route

Conversation

@infinitycrew39

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • npx vitest run src/store/gateway-shared-remote.test.ts (apps/desktop)
  • Switch from default → named profile in Desktop: sidebar shows that profile's sessions and chat connects to its backend
  • Global-remote setup still reuses the primary socket for non-primary profiles

Fixes #85745

Made with Cursor

NousResearch#85665 tagged shared-primary routes with `.profile`, but local pooled
backends and per-profile remote overrides use the same field for REST
routing. sharedPrimaryRoute therefore reused the primary socket and
profile tab switches stayed on the default workspace (NousResearch#85745).

Tag only the true shared-primary descriptor with sharedPrimary and
refresh the sidebar session list when the active gateway profile changes.
Cover local pool descriptors that carry profile without sharedPrimary,
so profile tab switches keep dialing the profile backend.
@infinitycrew39

Copy link
Copy Markdown
Contributor Author

Closing as duplicate of #85750 — same sharedPrimary routing fix. Will track #85750 for merge.

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/desktop Electron desktop app (apps/desktop/*) area/profiles Multi-profile isolation, HERMES_HOME scoping sweeper:risk-session-state Sweeper risk: may lose/corrupt/mis-associate session or context state duplicate This issue or pull request already exists labels Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/profiles Multi-profile isolation, HERMES_HOME scoping comp/desktop Electron desktop app (apps/desktop/*) duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists sweeper:risk-session-state Sweeper risk: may lose/corrupt/mis-associate session or context state type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Desktop: profile tab switch shows wrong session list (default instead of bubu)

2 participants