Skip to content

fix(chat): preserve category collapse from Recent - #2742

Merged
wtj-0527 merged 1 commit into
mainfrom
fix/2741-recent-category-collapse
Aug 26, 2026
Merged

fix(chat): preserve category collapse from Recent#2742
wtj-0527 merged 1 commit into
mainfrom
fix/2741-recent-category-collapse

Conversation

@wtj-0527

Copy link
Copy Markdown
Collaborator

Summary

  • treat Recent as a shortcut when selecting a session
  • preserve the saved collapsed state of the session's real category
  • keep existing category auto-reveal behavior for direct URLs, refreshes, and ordinary navigation
  • keep modified-click/new-window routing unchanged

Root cause

The active-session watcher auto-expanded the active session's real category without knowing whether the selection originated from the Recent shortcut. As a result, selecting a Recent item overwrote the user's collapsed category state and rendered the same active session in both places.

Tests

  • Added a regression E2E that failed before the fix because Project Alpha appeared twice after selection (expected 1, received 2).
  • NODE_ENV=test npx playwright test tests/e2e/session-categories.spec.ts — 9 passed
  • NODE_ENV=test npx vitest run tests/client/session-category-groups.test.ts — 5 passed
  • NODE_ENV=development npm run harness:check — passed
  • NODE_ENV=development npm run build — passed

Closes #2741

This PR is intentionally left unmerged pending LPK installation acceptance.

@wtj-0527

Copy link
Copy Markdown
Collaborator Author

Installation-acceptance candidate is ready.

No PR was merged and no package was installed or deployed.

@wtj-0527
wtj-0527 merged commit bcfaacb into main Aug 26, 2026
2 checks passed
peng418 added a commit to peng418/hermes-studio that referenced this pull request Aug 26, 2026
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.

fix(chat): preserve collapsed category when selecting from Recent

1 participant