TUI: show other-directory sessions in /resume picker - #669
Open
nicklisac wants to merge 1 commit into
Open
Conversation
The resume picker only listed sessions from the current working directory, so following up on a session from another project required knowing its id. It now lists current-directory sessions first, then an "Other Directories" section with every other session, each prefixed by its slim working directory. - Compact relative ages (now / 5m ago / 2h ago / yesterday / Jun 19) replace full timestamps; the model name is shown last so it truncates before the title; the picker panel is widened to match. - The "Other Directories" divider is a non-selectable row (a CSS class, not an id): keyboard up/down skip it, and clicking it does nothing. - When resuming a session from a different directory, the confirmation toast notes the new working directory, e.g. "Resumed session: abc (~dir)". - The list rebuilds synchronously on each keystroke (as in the other pickers), keeping the DOM and row map in lockstep so rapid typing can't desync; navigation clamps an out-of-range index defensively. - _short_path renders the home directory as "~" rather than "~/.".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The resume picker previously listed only sessions from the current working directory, so following up on a session from another project required knowing its id. It now lists current-directory sessions first, then an "Other Directories" section with every other session, each prefixed by its slim working directory.
Description
now/5m ago/2h ago/yesterday/3d ago/ elseJun 19). The model name is shown last so it truncates before the title, and the picker panel is widened to fit.Resumed session: abc (~dir).User experience
Resuming a session from another project no longer requires knowing its id or path — one grouped list with compact timestamps and a clearly separated "Other Directories" section.
Manual validation
uv run tauin a directory that has sessions, then open/resume.(~path).Checks
uv run pytestuv run ruff check .uv run ruff format --check .uv run mypyScreenshots
This PR was written by me with the assistance of Qwen 3.8 27B UD-Q8_K_L using Tau.