From d4db5266245fa7c2eed7fb4d609059beae74b86b Mon Sep 17 00:00:00 2001 From: NeilJo-GY <43027886+NeilJo-GY@users.noreply.github.com> Date: Wed, 30 Sep 2026 18:59:29 +0800 Subject: [PATCH] fix(chat): improve History plan rows and align reply poll with Comiclaw timeout Plan rows get panel background and stronger title/summary contrast; show sibling chat label when the plan is from another thread. Extend agent-reply polling to ~112s to match COMICLAW_CHAT_COMPLETE_TIMEOUT (110s). Co-authored-by: Cursor --- .../src/ranch-shell/RanchChatShell.tsx | 105 ++++++++++++------ 1 file changed, 68 insertions(+), 37 deletions(-) diff --git a/packages/agent-chat/src/ranch-shell/RanchChatShell.tsx b/packages/agent-chat/src/ranch-shell/RanchChatShell.tsx index 72572d0..4dec60a 100644 --- a/packages/agent-chat/src/ranch-shell/RanchChatShell.tsx +++ b/packages/agent-chat/src/ranch-shell/RanchChatShell.tsx @@ -1378,9 +1378,9 @@ function AgentReplyPendingBubble({ t }: { t: RanchMessages }) { ); } -/** 40s window. Official CLI complete defaults to 28s so the error bubble lands first. */ +/** ~112s window — matches Comiclaw COMICLAW_CHAT_COMPLETE_TIMEOUT default (110s). */ const REPLY_POLL_MS = 2000; -const REPLY_POLL_ATTEMPTS = 20; +const REPLY_POLL_ATTEMPTS = 56; type ReplyTimeoutReason = "offline" | "undeliverable" | "timeout" | "no_reply"; @@ -7296,49 +7296,80 @@ export function RanchChatShell(props: RanchChatShellProps) { ) : (
- {historyPlans.map((row) => ( - - ))} + {row.summary ? ( +
+ {row.summary} +
+ ) : null} + {planChat ? ( +
+ {conversationLabel(planChat, t)} +
+ ) : null} +
+ + ); + })} ) ) : historyKind === "tasks" ? (