feat: Display pending and confirming tool calls (#22106)

Co-authored-by: Spencer <spencertang@google.com>
This commit is contained in:
Sri Pasumarthi
2026-03-11 22:57:37 -07:00
committed by GitHub
parent 10ab958378
commit 41d4f59f5e
8 changed files with 96 additions and 21 deletions
@@ -110,10 +110,11 @@ export const ToolGroupMessage: React.FC<ToolGroupMessageProps> = ({
() =>
toolCalls.filter((t) => {
const displayStatus = mapCoreStatusToDisplayStatus(t.status);
return (
displayStatus !== ToolCallStatus.Pending &&
displayStatus !== ToolCallStatus.Confirming
);
// We used to filter out Pending and Confirming statuses here to avoid
// duplication with the Global Queue, but this causes tools to appear to
// "vanish" from the context after approval.
// We now allow them to be visible here as well.
return displayStatus !== ToolCallStatus.Canceled;
}),
[toolCalls],