mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 13:03:42 +00:00
feat(coding-agent): add resume scope toggle
refactor(coding-agent): refine session listing helpers
This commit is contained in:
parent
f1e225d9e7
commit
e8d91f2bd4
6 changed files with 219 additions and 106 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue