mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 19:05:11 +00:00
Merge branch 'tmp-2025-01-11' - resume scope toggle with async loading (#620)
This commit is contained in:
commit
9d49b4d4ed
9 changed files with 382 additions and 125 deletions
|
|
@ -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() };
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue