mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 19:05:18 +00:00
feat: add end session button to chat header
This commit is contained in:
parent
53a06becb1
commit
962512a0db
3 changed files with 29 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue