Skip to content

fix(desktop): clicking the active session from a full page returns to the chat - #71901

Merged
OutThisLife merged 1 commit into
mainfrom
bb/session-click-active
Jul 26, 2026
Merged

fix(desktop): clicking the active session from a full page returns to the chat#71901
OutThisLife merged 1 commit into
mainfrom
bb/session-click-active

Conversation

@OutThisLife

Copy link
Copy Markdown
Collaborator

While the workspace pane is showing a full page — Artifacts, Skills, Messaging, or a plugin route — clicking the active session in the sidebar did nothing. You had to click some other session first and then the active one to get back to the chat.

onResumeSession treated focusOpenSession's boolean as "already on screen" and skipped the navigate. That's right for a session tile (its pane renders the chat on any route) but wrong for the main session: fronting the workspace tab doesn't unroute the page, so the click was a no-op.

focusOpenSession now reports which surface it fronted ('main' | 'tile' | null) and focusedSessionNeedsRoute makes the call — a main hit still routes back while a page covers the workspace.

… the chat

While the workspace pane shows a full page (Artifacts, Skills, Messaging, a
plugin route), a sidebar click on the ACTIVE session did nothing: onResumeSession
took focusOpenSession's `true` for the main-session branch as "already on
screen" and skipped the navigate, but fronting the workspace tab doesn't put the
chat back — the page is still routed. The user had to click some other session
and then the active one to get back.

focusOpenSession now reports WHICH surface it fronted ('main' | 'tile' | null),
and focusedSessionNeedsRoute decides: a tile never needs a route (its pane
renders the chat regardless), a main hit does while a page covers the workspace.
@OutThisLife
OutThisLife enabled auto-merge July 26, 2026 10:27
@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/sessions Session lifecycle, resume, persistence, history sweeper:risk-session-state Sweeper risk: may lose/corrupt/mis-associate session or context state needs-decision Awaiting maintainer decision before any implementation labels Jul 26, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Related: #66880 addresses the same full-page session-resume defect, but the patches differ for an already-open tile. This PR keeps that tile visible; #66880 routes back to the main chat. Please choose the intended tile/navigation policy.

@OutThisLife
OutThisLife merged commit eb52760 into main Jul 26, 2026
34 checks passed
@OutThisLife
OutThisLife deleted the bb/session-click-active branch July 26, 2026 10:32
@github-actions

github-actions Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on ecf8ef9

ℹ️ Info

Desktop E2E visual evidence · View test artifacts · View job

1 visual diff.

inline evidence is publishing...

randlee pushed a commit to randlee/hermes-agent that referenced this pull request Aug 11, 2026
…ick-active

fix(desktop): clicking the active session from a full page returns to the chat
33hodl pushed a commit to 33hodl/hermes-agent that referenced this pull request Aug 12, 2026
…ick-active

fix(desktop): clicking the active session from a full page returns to the chat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/sessions Session lifecycle, resume, persistence, history comp/desktop Electron desktop app (apps/desktop/*) needs-decision Awaiting maintainer decision before any implementation 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.

2 participants