feat: add end session button to chat header

This commit is contained in:
Nathan Flurry 2026-01-27 21:03:33 -08:00
parent 53a06becb1
commit 962512a0db
3 changed files with 29 additions and 1 deletions

View file

@ -207,6 +207,10 @@ export class SandboxAgent {
);
}
async terminateSession(sessionId: string): Promise<void> {
await this.requestJson("POST", `${API_PREFIX}/sessions/${encodeURIComponent(sessionId)}/terminate`);
}
async dispose(): Promise<void> {
if (this.spawnHandle) {
await this.spawnHandle.dispose();