Skip to content

fix(agent-manager): avoid blocked native autofocus - #11126

Merged
marius-kilocode merged 1 commit into
mainfrom
strong-question
Jun 11, 2026
Merged

fix(agent-manager): avoid blocked native autofocus#11126
marius-kilocode merged 1 commit into
mainfrom
strong-question

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

Opening the Configure Worktree modal caused Chromium to report `Blocked autofocusing on a <textarea> element in a cross-origin subframe.` The prompt textarea declared native `autofocus`, which VS Code webviews cannot honor because they run in a cross-origin iframe.

Remove the native attribute and rely on the dialog's existing imperative focus routine. The prompt still receives focus, including delayed retries and restored-prompt caret placement, without triggering the blocked-autofocus warning.

@kilo-code-bot

kilo-code-bot Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 file)
  • packages/kilo-vscode/webview-ui/agent-manager/NewWorktreeDialog.tsx — removes autofocus native attribute that Chromium blocks in cross-origin iframes (VS Code webviews); imperative focus routine at lines 185–194 already handles focus, caret placement, and delayed retries correctly.

Reviewed by claude-4.6-sonnet-20260217 · 306,466 tokens

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit 286d99c into main Jun 11, 2026
20 checks passed
@marius-kilocode
marius-kilocode deleted the strong-question branch June 11, 2026 14:34
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
fix(agent-manager): avoid blocked native autofocus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants