mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
dc292883b7
Co-authored-by: Douwe Osinga <douwe@squareup.com>
17 lines
449 B
TypeScript
17 lines
449 B
TypeScript
import { Session } from './api';
|
|
|
|
export function resumeSession(session: Session) {
|
|
console.log('Launching session in new window:', session.description || session.id);
|
|
const workingDir = session.working_dir;
|
|
if (!workingDir) {
|
|
throw new Error('Cannot resume session: working directory is missing in session');
|
|
}
|
|
|
|
window.electron.createChatWindow(
|
|
undefined, // query
|
|
workingDir,
|
|
undefined, // version
|
|
session.id
|
|
);
|
|
}
|