feat: show copyable session ID in session detail header - #28
Conversation
roborev: Combined Review (
|
|
@wesm awesome project, after couple of uses figured that the project can show session id for fast |
|
Note: just noticed #14 has overlap here - it adds a keyboard shortcut ( If #14 covers the use case sufficiently (copying a ready-to-use CLI command), happy to close this in favor of that. Let us know @wesm! |
Extract clipboard write pattern into a reusable async utility that returns true on success and false on failure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Strip agent prefix (codex:, copilot:, etc.) before display/copy so the button shows the UUID, not "codex:ab" - Track copied state by session ID to prevent stale "Copied!" on session switch or rapid clicks - Scope to Claude and Codex for now - Use vi.stubGlobal instead of Object.assign(navigator) in test Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Prevents a stale timer from clearing a newer copy action when sessions are copied in quick succession. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
e49851c to
ce53634
Compare
roborev: Combined Review (
|
|
review not valid. merging |
## Summary - Adds a clickable session ID to the session detail breadcrumb bar - Shows first 8 characters of the session ID in a monospace styled element - Hovering shows the full session ID as a tooltip - Clicking copies the full session ID to clipboard with "Copied!" feedback (1.5s) - Extracted a reusable `copyToClipboard` utility with tests This lets users easily grab session IDs for `claude --resume <id>`. ## Demo https://github.com/user-attachments/assets/b7ef65c8-d80a-40c7-8a90-13d5e049c494 ## Tests Ran - [x] `copyToClipboard` utility tested (success + failure paths) - [x] All 383 frontend tests passing - [x] Go tests passing (no backend changes) - [x] Manual: navigate to session, verify truncated ID visible - [x] Manual: hover shows full ID tooltip - [x] Manual: click copies full ID, shows "Copied!" for 1.5s 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Wes McKinney <wesmckinn+git@gmail.com>
Summary
copyToClipboardutility with testsThis lets users easily grab session IDs for
claude --resume <id>.Demo
Screen.Recording.2026-02-24.at.3.05.41.PM.mov
Tests Ran
copyToClipboardutility tested (success + failure paths)🤖 Generated with Claude Code