feat(coding-agent): add resume scope toggle

refactor(coding-agent): refine session listing helpers
This commit is contained in:
Thomas Mustier 2026-01-10 20:33:05 +00:00
parent f1e225d9e7
commit e8d91f2bd4
6 changed files with 219 additions and 106 deletions

View file

@ -317,13 +317,14 @@ export async function main(args: string[]) {
// Initialize keybindings so session picker respects user config
KeybindingsManager.create();
const sessions = SessionManager.list(cwd, parsed.sessionDir);
const currentSessions = SessionManager.list(cwd, parsed.sessionDir);
const allSessions = SessionManager.listAll();
time("SessionManager.list");
if (sessions.length === 0) {
if (currentSessions.length === 0 && allSessions.length === 0) {
console.log(chalk.dim("No sessions found"));
return;
}
const selectedPath = await selectSession(sessions);
const selectedPath = await selectSession(currentSessions, allSessions);
time("selectSession");
if (!selectedPath) {
console.log(chalk.dim("No session selected"));