Skip to content

Focus is lost after generating or regenerating an excerpt #697

@Infinite-Null

Description

@Infinite-Null

Description

When generating or regenerating an excerpt using the AI excerpt feature, focus is lost after the action completes. The expected behaviour is for focus to remain on the button that initiated the action.

Step-by-step reproduction instructions

  1. Create or open a post.
  2. Open the Post sidebar.
  3. Navigate to the excerpt section.
  4. Use the keyboard to activate the "Generate excerpt" button.
  5. Wait for the generation process to complete.
  6. Observe that focus is lost.
  7. Activate the "Regenerate excerpt" button.
  8. Wait for the regeneration process to complete.
  9. Observe that focus is lost again.

Screenshots, screen recording, code snippet

Screen.Recording.2026-06-11.at.1.44.28.PM.mov

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except the AI plugin.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions