Skip to content

fix: Prevent permission request from stealing focus across cells#1545

Open
charlesvien wants to merge 3 commits into04-07-add_double-click_to_rename_task_title_in_session_headerfrom
04-07-prevent_permission_request_from_stealing_focus_across_cells
Open

fix: Prevent permission request from stealing focus across cells#1545
charlesvien wants to merge 3 commits into04-07-add_double-click_to_rename_task_title_in_session_headerfrom
04-07-prevent_permission_request_from_stealing_focus_across_cells

Conversation

@charlesvien
Copy link
Copy Markdown
Member

@charlesvien charlesvien commented Apr 8, 2026

Problem

ActionSelector unconditionally auto-focuses on mount, stealing focus from the active cell's editor when a permission request arrives in another command center cell.

Closes #1503

Changes

  1. Add isUserInInteractiveElement() guard to skip auto-focus when user is in an input/editor
  2. Add autoFocus option to restoreStepAnswer to conditionally skip its focus call on mount
  3. Guard both mount-time focus paths so only idle panels auto-focus

How did you test this?

Manually

@charlesvien charlesvien changed the title Prevent permission request from stealing focus across cells fix: Prevent permission request from stealing focus across cells Apr 8, 2026
@charlesvien charlesvien force-pushed the 04-07-add_double-click_to_rename_task_title_in_session_header branch from cfc4e06 to b0e356c Compare April 8, 2026 04:17
@charlesvien charlesvien force-pushed the 04-07-prevent_permission_request_from_stealing_focus_across_cells branch from 4cb808f to 1c97223 Compare April 8, 2026 04:17
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