Merge branch 'tmp-2025-01-11' - resume scope toggle with async loading (#620)

This commit is contained in:
Mario Zechner 2026-01-12 00:00:28 +01:00
commit 9d49b4d4ed
9 changed files with 382 additions and 125 deletions

View file

@ -2876,9 +2876,10 @@ export class InteractiveMode {
private showSessionSelector(): void {
this.showSelector((done) => {
const sessions = SessionManager.list(this.sessionManager.getCwd(), this.sessionManager.getSessionDir());
const selector = new SessionSelectorComponent(
sessions,
(onProgress) =>
SessionManager.list(this.sessionManager.getCwd(), this.sessionManager.getSessionDir(), onProgress),
SessionManager.listAll,
async (sessionPath) => {
done();
await this.handleResumeSession(sessionPath);
@ -2890,6 +2891,7 @@ export class InteractiveMode {
() => {
void this.shutdown();
},
() => this.ui.requestRender(),
);
return { component: selector, focus: selector.getSessionList() };
});