Commit 400f26e
committed
Fix approval flow for queued messages in Task.ts
When messages are queued while a tool is waiting for approval, they now properly handle the approval before sending. This prevents tools from being rejected when processing queued messages.
- Modified Task.ts to check if the ask type requires approval (tool, command, browser_action_launch, use_mcp_server)
- For approval-required asks, use handleWebviewAskResponse('yesButtonClicked') instead of setMessageResponse()
- For other ask types like followup, continue using setMessageResponse() as before
This ensures the correct order: approve tools first, then send messages.1 parent 652b77e commit 400f26e
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
849 | | - | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
850 | 861 | | |
851 | 862 | | |
852 | 863 | | |
| |||
0 commit comments