Skip to content

feat: add session history browser to desktop sidebar#25451

Closed
JohnFox191 wants to merge 1 commit intoanomalyco:devfrom
JohnFox191:feat/session-browser-squash
Closed

feat: add session history browser to desktop sidebar#25451
JohnFox191 wants to merge 1 commit intoanomalyco:devfrom
JohnFox191:feat/session-browser-squash

Conversation

@JohnFox191
Copy link
Copy Markdown

Summary

  • Adds a session history browser to the desktop app sidebar, allowing users to browse and switch between past sessions organized by directory or project
  • Includes directory tree and project tree views with session count badges, pagination, and session switching
  • Fixes a count mismatch where the Show sessions (N) badge in directory view returned fewer sessions than actually existed (project-based fetch was used when directory matched a worktree)

Changes

  • New session-browser component (panel, directory-node, session-node)
  • New API endpoints for listing directories and sessions by project/directory
  • fetchSessions now takes an optional byProject parameter to decouple fetch strategy from worktree detection
  • SDK types and generated bindings for new endpoints

Test plan

  • Open desktop app with multiple sessions across different directories
  • Verify directory tree shows correct session counts per directory
  • Verify Show sessions (N) matches actual sessions returned when expanded
  • Switch between directories and projects view modes
  • Verify pagination works for directories with many sessions

Adds a session history browser to the desktop app sidebar, allowing users to browse and switch between past sessions organized by directory or project.
@JohnFox191 JohnFox191 requested a review from adamdotdevin as a code owner May 2, 2026 18:16
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label May 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@JohnFox191 JohnFox191 closed this May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:compliance This means the issue will auto-close after 2 hours.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant