feat(tui): pin, quick-switch, and cycle recent sessions#26858
Merged
Conversation
adds pinned and recent sections to the session picker, ctrl+f to pin/unpin, ctrl+h to toggle a session in/out of recent, <leader>1-9 to jump to numbered slots (pins + recent fall-through), and <leader>] / <leader>[ to cycle through visited sessions. state is persisted per-instance and auto-prunes on session delete.
…N_SWITCHING the new pinned/recent picker layout, quick-switch hotkeys, cycle-recent hotkeys, in-picker pin/toggle-recent actions, route MRU tracking, and discoverability tips are all gated on Flag.OPENCODE_EXPERIMENTAL_SESSION_SWITCHING. defaults off; opt in with OPENCODE_EXPERIMENTAL_SESSION_SWITCHING=true or the global OPENCODE_EXPERIMENTAL=true. pinned state is still loaded from session.json so toggling the flag is non-destructive.
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
ctrl+x l), in front of the existing date groups<leader>1..9jump to the first 9 sessions in the picker (pins first, then most-recent fall-through), with slot numbers shown in the picker gutter<leader>]/<leader>[cycle through recently visited sessions (like alt+tab between sessions)~/.local/share/opencode/session.json, per-instance, mirroring the existing model favorites patternsession.deletedtesting
bun typecheckclean<leader>1and confirm navigation; pressctrl+hon a Recent row and watch it drop into the date group; press it again and watch it come back to Recent; switch between 3 sessions and use<leader>]/<leader>[to walk the history