fix: prevent ghost border for AskUserDialog (#17788)

This commit is contained in:
Jack Wotherspoon
2026-01-29 09:00:46 -05:00
committed by GitHub
parent 7f066fd3a7
commit 9f1623688d
4 changed files with 41 additions and 7 deletions
@@ -25,6 +25,7 @@ import {
debugLogger,
runInDevTraceSpan,
EDIT_TOOL_NAMES,
ASK_USER_TOOL_NAME,
processRestorableToolCalls,
recordToolCallInteractions,
ToolErrorType,
@@ -367,6 +368,14 @@ export const useGeminiStream = (
const isEventDriven = config.isEventDrivenSchedulerEnabled();
const anyVisibleInHistory = pushedToolCallIds.size > 0;
const anyVisibleInPending = remainingTools.some((tc) => {
// AskUser tools are rendered by AskUserDialog, not ToolGroupMessage
const isInProgress =
tc.status !== 'success' &&
tc.status !== 'error' &&
tc.status !== 'cancelled';
if (tc.request.name === ASK_USER_TOOL_NAME && isInProgress) {
return false;
}
if (!isEventDriven) return true;
return (
tc.status !== 'scheduled' &&