TUI/Gateway: emit internal hooks for /new and /reset

This commit is contained in:
Vignesh Natarajan
2026-02-14 16:33:19 -08:00
parent 301b3ff912
commit b08146fad6
7 changed files with 115 additions and 4 deletions

View File

@@ -204,8 +204,11 @@ export class GatewayChatClient {
return await this.client.request<SessionsPatchResult>("sessions.patch", opts);
}
async resetSession(key: string) {
return await this.client.request("sessions.reset", { key });
async resetSession(key: string, reason?: "new" | "reset") {
return await this.client.request("sessions.reset", {
key,
...(reason ? { reason } : {}),
});
}
async getStatus() {