#1633·jcode

feat(tui): pin current-folder sessions to the top of /resume

Author: alecuba16Created Oct 1, 2026Updated Oct 1, 2026

The /resume picker lists sessions by saved/server/orphan sections with no relation to the folder the picker was opened from. When you work across several repos, finding the session for the current project means scanning the full list or searching.

Sessions whose working_dir matches the folder the picker was opened from should float to the top of the All view under a "This folder" header, newest-first, pulled out of the saved/server/orphan sections so nothing renders twice. Search should still narrow the pinned group; other filter modes stay flat. The CLI resume picker should pin from the process cwd too.

I have a branch implementing this (feat/session-cwd-grouping, TUI + CLI pickers + tests). Happy to open a PR.