Resume and manage sessions (⌘⇧R)
The “Sessions” overlay lists all Claude Code and Codex sessions on this machine, showing only the current project by default. When you type, it switches to “All projects” and matches titles, first prompts, project names and directories; you can also type the beginning of a session ID.
What a session is called: no longer just its first prompt. Titles that Claude and Codex give sessions themselves take priority (a title you changed in Claude > a title generated by the Agent > the first informative prompt, cleaned up, skipping replies like “continue” or “sounds good”); a name you set in gilvt with ⌘R always wins. Search finds sessions both by title and by your original wording. A new session’s title appears only after the next refresh (press ⌘⇧R again).
| Key | Action |
|---|---|
| ↩ | Resume: in place if the focused pane is an idle shell, otherwise in a new tab; a running session jumps straight to its pane |
| ⌘↩ / ⌘⇧↩ | Resume in a split to the right / below |
| ⌘R | Rename |
| ⌘⇧C | Copy Session ID |
| ⇧+click / ⌘+click | Select a range / select individually |
| ⌘E | Archive / unarchive the selected sessions |
| ⌘⌫ | Move the selected sessions to Trash (confirmation bar first) |
| ⌘⇧K | Open the cleanup wizard |
| Esc | Close the context menu, the confirmation bar, then the overlay, in that order |
Resuming does exactly what you would type by hand: gilvt types cd <original directory> && claude --resume <id> into the pane (for Codex, codex resume <id>). After resuming, the sidebar shows the original session name and the inspector fills in the earlier turns.
Under each name, a small gray line shows the directory the session ran in (~/…/project/subdirectory · branch · N turns); if the directory no longer exists (such as a deleted worktree), it is struck through and marked “Directory missing”, so you can see that before resuming.
Archive: for sessions you are done with but want to keep, select them and press ⌘E (or right-click “Archive”) to put them away: they leave the default list, the To Review queue and the sidebar’s “Ended”, and searches no longer match them by default; the files are untouched. The “Archived” filter lets you view, search, resume or unarchive them. If an archived session later completes a new turn, it is unarchived automatically and goes back to To Review, so nothing slips by; changing only the title does not count. Running sessions cannot be archived.
Cleaning up old sessions: the “Inactive ≥ 7 days” filter shows each session’s size; select several and press ⌘⌫ to move them to the system Trash, from where Finder’s “Put Back” restores them. Running sessions cannot be deleted. Deleting also takes along the companion data named after the session ID (Claude’s file-history/<id>/, tasks/<id>/ and so on, Codex’s shell snapshots), with sizes shown separately in the confirmation bar (“X MB + Y MB companion data”); shared data such as history.jsonl and Codex’s sqlite database is left alone.
Cleanup wizard (⌘⇧K): handles a batch at once. Four presets on the left, a preview of the matching sessions on the right, each row with a checkbox, all checked by default; the bottom shows “Selected N / M · X MB” live.
| Preset | Matches | Default action |
|---|---|---|
| Empty sessions | No meaningful prompt, or only 1 turn with no tool calls | Move to Trash |
| Reviewed and inactive for 30 days | The latest turn has been seen, and no activity for 30 days | Archive |
| Largest 20 | The top 20 by size (including companion data) | Move to Trash |
| Archived and inactive for 90 days | No activity for 90 days after archiving | Move to Trash |
Running sessions never match; pinned sessions are unchecked by default; sessions not yet reviewed appear only under “Empty sessions” and “Largest 20”, marked “Not reviewed”. “Move to Trash” still shows a confirmation bar first, and cancelling moves nothing. The wizard can also be opened from “Clean Up…” in the sessions overlay and from the “Sessions” menu.