mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 11:15:00 +00:00
TUI/Gateway: emit internal hooks for /new and /reset
This commit is contained in:
@@ -436,7 +436,7 @@ export function createCommandHandlers(context: CommandHandlerContext) {
|
||||
state.sessionInfo.totalTokens = null;
|
||||
tui.requestRender();
|
||||
|
||||
await client.resetSession(state.currentSessionKey);
|
||||
await client.resetSession(state.currentSessionKey, name);
|
||||
chatLog.addSystem(`session ${state.currentSessionKey} reset`);
|
||||
await loadHistory();
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user