Skip to content

Commit 47ee03c

Browse files
秦奇claude
andcommitted
fix: prevent subagent confirmation from being hidden in compact mode
hasConfirmingTool only checks ToolCallStatus.Confirming, but subagent approvals arrive via resultDisplay.pendingConfirmation while the tool status remains Executing. Add hasSubagentPendingConfirmation to the showCompact guard so tool groups with pending subagent confirmations are always force-expanded. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e45c997 commit 47ee03c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/cli/src/ui/components/messages/ToolGroupMessage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,13 @@ export const ToolGroupMessage: React.FC<ToolGroupMessageProps> = ({
100100
const focusedSubagentCallId = focusedSubagentRef.current;
101101

102102
// Compact mode: entire group → single line summary
103-
// Force-expand when: user must interact (Confirming), tool errored,
104-
// shell is focused, or user-initiated
103+
// Force-expand when: user must interact (Confirming or subagent pending
104+
// confirmation), tool errored, shell is focused, or user-initiated
105+
const hasSubagentPendingConfirmation = subagentsAwaitingApproval.length > 0;
105106
const showCompact =
106107
compactMode &&
107108
!hasConfirmingTool &&
109+
!hasSubagentPendingConfirmation &&
108110
!hasErrorTool &&
109111
!isEmbeddedShellFocused &&
110112
!isUserInitiated;

0 commit comments

Comments
 (0)