diff options
| author | Adam Malczewski <[email protected]> | 2026-03-24 16:02:13 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-03-24 16:02:13 +0900 |
| commit | d36edfb6b34c05903281ece6d47fc7a1de2bd4f2 (patch) | |
| tree | 1e2c1764ca86cae2a5eae7efcc31bb96550da051 /src/chat-view.ts | |
| parent | cab2ab3f848874bcceb9cadd6257056ba50cf8bb (diff) | |
| download | ai-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.ts | 6 |
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); }; |
