feat(cli): /session interactive picker to resume a saved session#204
Merged
emal-avala merged 3 commits intomainfrom Apr 23, 2026
Merged
feat(cli): /session interactive picker to resume a saved session#204emal-avala merged 3 commits intomainfrom
emal-avala merged 3 commits intomainfrom
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
de4b81c to
8cf3650
Compare
The existing `/sessions` lists IDs; to resume one, the user has to copy-paste the ID into `/resume <id>`. Painful with long IDs. `/session` (singular) opens an arrow-key picker over the 20 most recent sessions. Enter resumes the selection; Esc/q leaves the current session untouched. Each option shows: id [label] #tags (main line) cwd · turns · msgs · updated_at (description) [live preview: cwd, model, turn count, updated_at] Resume uses the same code path as /resume <id> — no new logic for restoring messages / turn_count / model / cost. Alias /pick-session for discoverability.
8cf3650 to
f07e59f
Compare
The three resolve_editor_* tests mutate the global VISUAL/EDITOR env vars and raced under Windows' parallel test runner. Add a per-module Mutex so they run one at a time regardless of test thread count.
The error path already has the exception text; the id was redundant (the user just saw it in the picker one line above). Dropping it also side-steps a CodeQL false positive on the `rust/cleartext-logging` rule which flags session identifiers as if they were auth secrets.
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.
Summary
The existing
/sessionslists session IDs; to resume one, the user has to copy-paste the full ID into/resume <id>. Painful with long IDs./session(singular) opens an arrow-key picker over the 20 most recent sessions. Enter resumes the selection; Esc/q leaves the current session untouched.Each option shows the ID + label + tags on the main line, cwd/turns/msgs/updated on the description, and cwd/model/turns/updated in the live preview panel below.
Why
Session IDs are long 36-character UUIDs. Typing or pasting them reliably is annoying. A picker turns a 10-second copy-paste into a 2-keystroke operation.
Implementation
ui::selector::select(the same helper that powers the setup wizard)/resumecode path for the actual load — no new logic for restoring messages, turn_count, model, cost/pick-sessionfor discoverabilityTest plan
cargo fmt --all— cleancargo clippy --workspace --all-targets -- -D warnings— cleancargo test -p agent-code --test smoke— 4/4 pass/sessionshows both; ↓↑ navigates; Enter resumes; Esc cancels