summaryrefslogtreecommitdiffhomepage
path: root/src/chat-view.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-03-24 16:02:13 +0900
committerAdam Malczewski <[email protected]>2026-03-24 16:02:13 +0900
commitd36edfb6b34c05903281ece6d47fc7a1de2bd4f2 (patch)
tree1e2c1764ca86cae2a5eae7efcc31bb96550da051 /src/chat-view.ts
parentcab2ab3f848874bcceb9cadd6257056ba50cf8bb (diff)
downloadai-pulse-obsidian-plugin-d36edfb6b34c05903281ece6d47fc7a1de2bd4f2.tar.gz
ai-pulse-obsidian-plugin-d36edfb6b34c05903281ece6d47fc7a1de2bd4f2.zip
refactor
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);
};