fix: start panel chats in ask permission whatever mode was saved elsewhere

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
hugocasa
2026-10-08 19:03:25 +02:00
co-authored by Claude Opus 5.5
parent cd40c36c2b
commit c5d3cffc40
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ icon to open the panel.
- Reading and screenshots run without asking. Each click, type and navigation waits for the
chat's own approval card, which lives in Windmill's frame where the page cannot reach it.
The chat's Yolo mode skips the card, and its warning says pages can try to steer it.
- Approval runs in two steps. When the card opens, the extension pins the target (tab,
- Approval runs in two steps. Before the card opens, the extension pins the target (tab,
document and element, the element held in the extension's isolated world) and describes
it for the card. After approval it acts only on that target, and refuses if the tab is no
longer active, the page navigated or reloaded, or the element changed.
@@ -2706,6 +2706,9 @@ export class AIChatManager implements ChatViewHost {
enableBrowserTools = () => {
this.browserTools = true
// Yolo here also clicks and types on the user's page, so it is chosen in the panel, never
// inherited from the setting saved by a chat elsewhere. Not persisted, so that setting stays.
if (this.autonomyMode === AIAutonomyMode.YOLO) this.autonomyMode = AIAutonomyMode.DEFAULT
// The side panel renders no preview pane: forms stay inline and runs open in a new
// tab, as in the docked chat.
this.openRunInPreview = undefined