mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-22 03:51:18 +00:00
fix(tui): drop unnecessary comments from watchdog dismiss helpers
This commit is contained in:
parent
97e4e18cb9
commit
18fa9d1955
2 changed files with 0 additions and 6 deletions
|
|
@ -109,9 +109,6 @@ export class ChatLog extends Container {
|
|||
this.append(this.createSystemMessage(text));
|
||||
}
|
||||
|
||||
// Tag a system notice with a runId so a later chat event for the same run
|
||||
// can dismiss it. Used by the streaming watchdog so the "taking longer than
|
||||
// expected" notice goes away if the response actually arrives afterwards.
|
||||
addPendingSystem(runId: string, text: string) {
|
||||
const existing = this.pendingSystemNotices.get(runId);
|
||||
if (existing) {
|
||||
|
|
|
|||
|
|
@ -393,9 +393,6 @@ export function createEventHandlers(context: EventHandlerContext) {
|
|||
if (reconnectPendingRunId === evt.runId) {
|
||||
reconnectPendingRunId = null;
|
||||
}
|
||||
// Any chat event for a run that previously tripped the streaming watchdog
|
||||
// is proof the response is no longer stuck — drop the stale notice so it
|
||||
// doesn't sit alongside the recovered content.
|
||||
chatLog.dismissPendingSystem(evt.runId);
|
||||
noteSessionRun(evt.runId);
|
||||
if (!state.activeChatRunId && !isLocalBtwRunId?.(evt.runId)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue