summaryrefslogtreecommitdiffhomepage
path: root/src/chat-view.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/chat-view.ts')
-rw-r--r--src/chat-view.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/chat-view.ts b/src/chat-view.ts
index 3355689..19df645 100644
--- a/src/chat-view.ts
+++ b/src/chat-view.ts
@@ -205,6 +205,12 @@ export class ChatView extends ItemView {
};
const onApprovalRequest = (event: ApprovalRequestEvent): Promise<boolean> => {
+ // Remove the empty streaming bubble since the approval
+ // prompt is now the active UI element
+ if (currentBubble !== null && currentBubble.textContent?.trim() === "") {
+ currentBubble.remove();
+ currentBubble = null;
+ }
return this.showApprovalRequest(event);
};