mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 03:50:35 +00:00
fix: refresh TUI session info after runs
This commit is contained in:
@@ -72,11 +72,13 @@ export function createEventHandlers(context: EventHandlerContext) {
|
||||
chatLog.addSystem("run aborted");
|
||||
state.activeChatRunId = null;
|
||||
setActivityStatus("aborted");
|
||||
void refreshSessionInfo?.();
|
||||
}
|
||||
if (evt.state === "error") {
|
||||
chatLog.addSystem(`run error: ${evt.errorMessage ?? "unknown"}`);
|
||||
state.activeChatRunId = null;
|
||||
setActivityStatus("error");
|
||||
void refreshSessionInfo?.();
|
||||
}
|
||||
tui.requestRender();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user