Skip to content

Title Generation: toolbar button disappears after toggling "Show template" off (normal editing mode), until reload #693

Description

@hbhalodia

Description

In a regular post (not template/site editor), the Title Generation experiment injects a "Generate / Regenerate" toolbar above the post title input. After switching the editor to Show template and then switching back (unchecking Show template), the title generation button no longer appears above the title. Reloading the editor brings it back.

Step-by-step reproduction instructions

  1. Enable the Title Generation experiment (and a connector).
  2. Open an existing post in the post editor (normal editing mode, not the site/template editor).
  3. Click into the post title — confirm the "Generate"/"Regenerate" button appears above the title.
  4. Open the editor "view" menu (the display options dropdown) and choose Show template.
  5. Open the same menu again and toggle Show template back off (return to normal editing mode).
  6. Click into the post title again and look for the title generation button.

Expected behavior

The Title Generation button reappears above the post title in normal editing mode after returning from "Show template", without requiring a page reload.

Actual behavior

The button is missing. It only comes back after a full editor reload/refresh.

Screenshots, screen recording, code snippet

Screen.Recording.2026-06-10.at.12.52.17.PM.mov

Environment info

  • WP 7.0
  • AI Plugin develop branch.
  • No 3rd party theme plugin activated.

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

Labels

[Type] BugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions