Skip to content

feat(recent): 🕘 Recent menu + Ctrl+Shift+E to jump to recently used sessions - #192

Merged
mortenaslo merged 2 commits into
mainfrom
feat/recent-sessions-menu
Nov 6, 2026
Merged

mortenaslo merged 2 commits into
mainfrom
feat/recent-sessions-menu

Conversation

@mortenaslo

Copy link
Copy Markdown
Contributor

What

🕘 Recent ▾ next to "+ New Session", and Ctrl+Shift+E (not Ctrl+E — that's end-of-line in bash), open a menu of the 10 most recently used sessions, live and sleeping, newest first.

  • The active session is left out, so the first item is the previous one: Ctrl+Shift+E, Enter flips between two sessions. 1–9 / 0 pick directly.
  • Each row: accent, name, folder, status (⟳ working, ● waiting, ! attention, 💤 asleep), and 5m / 3h / 2d.
  • A live pick is focused — in filter-strip mode the group tab switches to the session's group if the current tab hides it; a sleeping one is woken.

Fix included: LastActivityAt was stamped for every session during the restore loop (each restored session becomes active in turn), overwriting the saved order with sidebar order on every start. It is no longer stamped while restoring — also fixes the "last active" sidebar sort.

Tests

  • RecentSessionsTests (unit, 13): order, active excluded, sleeping included, cap, ties, wording
  • UI RecentSessionsTests: A then B → menu shows A first (B absent); jump to A → menu shows B first
  • Full suites green (merged with the close-warning branch too): 1183 unit, 12 UI

Not yet checked by hand

Ctrl+Shift+E while a terminal has focus; the order after a restart.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NsYm9iLc2aRnRDfV2uZRQX

mortenaslo and others added 2 commits November 6, 2026 20:09
…ently used sessions

Lists the 10 most recently used sessions (live and sleeping), newest first,
without the active one — so Ctrl+Shift+E, Enter flips back to the previous
session; 1–9/0 pick directly. Rows show accent, name, folder, status and
"5m / 3h / 2d". A live pick is focused (switching the group tab in
filter-strip mode when it's hidden); a sleeping one is woken.

LastActivityAt is no longer stamped during the restore loop, which used to
overwrite the saved order with sidebar order on every start.

Ordering/wording in WPF-free Services/RecentSessions (unit-tested); UI test
RecentSessionsTests checks the order and the jump.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NsYm9iLc2aRnRDfV2uZRQX
@mortenaslo
mortenaslo merged commit 11cda93 into main Nov 6, 2026
1 check passed
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