Skip to content

Commit 9ffa0e6

Browse files
fix(gateway): log error when chat persistence fails during abort
1 parent d17b970 commit 9ffa0e6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/gateway/chat-abort.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { isAbortRequestText } from "../auto-reply/reply/abort-primitives.js";
1111
import type { OpenClawConfig } from "../config/types.openclaw.js";
1212
import { emitAgentEvent, getAgentEventLifecycleGeneration } from "../infra/agent-events.js";
1313
import { jsonUtf8Bytes } from "../infra/json-utf8-bytes.js";
14+
import { logError } from "../logger.js";
1415
import { projectLiveAssistantBufferedText } from "./live-chat-projector.js";
1516
import { createChatAbortMarker, type ChatAbortMarker } from "./server-chat-state.js";
1617

@@ -173,7 +174,8 @@ export function registerChatAbortController(params: {
173174
params.chatAbortControllers.delete(params.runId);
174175
}
175176
})
176-
.catch(() => {
177+
.catch((error) => {
178+
logError("Project session terminal persistence failed during abort", error);
177179
if (params.chatAbortControllers.get(params.runId)?.controller === controller) {
178180
params.chatAbortControllers.delete(params.runId);
179181
}

0 commit comments

Comments
 (0)