Skip to content

Recent sessions at the bottom of the sidebar, items from any repository, notifications, and three fixes - #111

Merged
m4rocks merged 1 commit into
mainfrom
sidebar-recents-and-any-repo-items
Nov 16, 2026
Merged

m4rocks merged 1 commit into
mainfrom
sidebar-recents-and-any-repo-items

Conversation

@m4rocks

@m4rocks m4rocks commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Recent sessions shared one long scrolling list with the running ones, Claude could only attach items of the session's own project, and Claudiu flashed the taskbar instead of sending a notification. Three bugs also lost work or a session: an attached pull request that never loaded, deleted text that came back after the loading screen, and an empty session that closed itself on restart.

What changed

  • Recent list. The running sessions keep the main list. Every other session moves to a RECENT list above the account, newest first. It opens to at most 40% of the window and scrolls. A search opens it, and Claudiu remembers whether it is open. The OLDER group is gone.
  • Items from other repositories. attach_github and detach_github take an optional repo (owner/name), checked against GitHub's naming rules. The row shows owner/name#N. A click opens it in a GitHub pane for that repository, with Ask Claude and Check out locally hidden because the folder isn't a clone. When Claude names the project's own repository, the project's pane opens.
  • Notifications. A session that finishes or asks a question while the window is in the background sends a system notification through notify-rust (new dependency). The taskbar flash and dock bounce are gone, and so is raw-window-handle, which only the flash used.
  • Attached pull request never loading. A pane created by the click didn't know its repository yet and skipped the request. It now loads the open item once the repository is known (load_shown).
  • Deleted text coming back. Backspaces for text Claudiu had already typed into Claude Code went through send(), which drops input while the loading screen is up. They now go straight to the process.
  • Empty session closing on restart. Claudiu resumed every open session with claude --resume, which exits at once when there is no conversation. Such a session now starts over under its own id, as a worktree switch already does.

Proof

cargo test --locked on macOS: 458 passed, 0 failed, 7 ignored. The new tests for the three bugs fail without their fixes:

  • text_deleted_while_handing_the_draft_over_is_erased_in_claude_code_too: the backspaces were missing from what reached the process.
  • an_item_opened_before_the_repository_is_known_still_loads (fake gh): timed out after 30 s, and passes in 0.2 s with the fix.
  • a_new_session_without_a_conversation_comes_back_after_a_restart (fake claude that exits on --resume): failed with "New session ended (exit code 1)".

Other new tests: the_recent_list_stays_short_and_draws_rows_where_scrolling_brings_them (the list's height, its place above the account, scrolling and closing), an_item_of_another_repository_opens_in_its_own_pane, a_notification_says_a_background_session_finished_or_asks, and the repo checks in the MCP and attach tests. Clippy reports nothing new in the changed files.

Risk

  • I didn't look at the running app, so the sidebar layout is checked only through the harness's element positions and sizes. I didn't see a notification on screen either.
  • On Windows, notify-rust sends toasts under PowerShell's AppUserModelID, so they show "Windows PowerShell" as the sender. Using Claudiu's needs the id Velopack registers.
  • Windows and Linux builds are left to CI.

Closes #101
Closes #102
Closes #103
Closes #104
Closes #105
Closes #106

…tems from any repository, and notify when a session finishes

The sidebar keeps the running sessions in its main list and puts the rest in a
RECENT list above the account. The list opens to at most 40% of the window and
scrolls. It replaces the OLDER group.

attach_github and detach_github take an optional repo (owner/name). Claudiu
reads the title and state of such an item from that repository, and a click
opens it in a GitHub pane for that repository. That pane hides Ask Claude and
Check out locally.

A session that finishes or asks a question while the window is in the
background sends a system notification (notify-rust) instead of flashing the
taskbar button or bouncing the dock icon.

Fixes:
- An attached pull request opened in a pane that didn't know its repository
  yet never loaded. The pane now loads it once the repository is known.
- Text deleted on the loading screen came back once Claude Code started: the
  backspaces went through the path that drops input while loading.
- A session with no conversation closed itself when Claudiu restarted, because
  claude --resume found nothing. It now starts over under its own id.
@vercel

vercel Bot commented Nov 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
claudiu Ready Ready Preview Nov 16, 2026 8:51pm UTC

@m4rocks
m4rocks merged commit c7fe20a into main Nov 16, 2026
5 checks passed
@m4rocks
m4rocks deleted the sidebar-recents-and-any-repo-items branch November 24, 2026 22:38

This branch was successfully deployed

1 active deployment
Preview — b6ebef76 Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant