mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 07:02:44 +00:00
TUI/Gateway: emit internal hooks for /new and /reset
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user