You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AI Admin Pages Exhibit Visible Flicker During Initial Render #741
AI-related admin screens exhibit a noticeable visual flicker during page navigation and initial render. When navigating to the AI or Connectors pages, the existing admin UI is briefly replaced by a black/blank screen before the page content is rendered.
In contrast, standard WordPress admin pages transition smoothly without any visible intermediate state. This creates an inconsistent user experience and gives the impression that AI pages are slower or undergoing a full-page reload.
Environment
WordPress AI Plugin: Version 1.0.2
Environment: WordPress Playground
Browser: Chrome V 149.0.7827.115
Notes
Reproduced consistently on a fresh WordPress Playground instance.
The issue appears to be specific to AI-related pages and not the general WordPress admin experience.
This may indicate a loading-state, rendering, or hydration issue during page initialisation.
No functional issues were observed; this is primarily a UX/performance concern.
Step-by-step reproduction instructions
Steps to Reproduce
Launch a fresh WordPress Playground instance.
Install and activate the latest version of the AI plugin.
Navigate between standard WordPress admin pages (Dashboard, Posts, Pages, Plugins, etc.).
Observe that pages load normally without any visual flash.
Navigate to:
AI
Connectors
Observe the page loading behavior.
Screenshots, screen recording, code snippet
Recording.1864.mp4
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
Reacted by Prasad Karmalkar, Trushiv Bhayani and Rohit Mathur
I looked into this locally. The flicker appears to come from the inline critical styles in the generated AI admin page, where #wpwrap is given a dark background:
On initial load, before the boot module mounts the app into .boot-layout-container, the CSS variable isn't available yet, so the #1e1e1e fallback paints the entire wrap dark for a moment producing the black flash before content renders.
Since this lives in an auto generated page file (driven by the boot/routes build), it likely needs to be addressed at the source rather than the generated output. Sharing in case it helps narrow down the fix.
Yeah, I believe there's a related issue in the Gutenberg repo that looked at fixing this on the Connectors screen, perhaps isn't released yet but finding that and mimicking on the AI settings page is probably best.
WordPress/gutenberg#74572 is all I found in searching quickly, but that's not the one I had remembered so some more searching is worthwhile before trying to change anything within the AI plugin.
I think WordPress/gutenberg#78493 is the PR about black flash in wp-build. Also, the package is "@wordpress/build": "^0.16.0" here in package.json and latest version is 0.16.1.
For me, the following steps worked locally:
Update the package npm update @wordpress/build
Rebuild the routes npm run build:routes
Open build/pages/ai/page-wp-admin.php and confirm the #wpwrap block no longer has background css.
We may need to update the package.json and package-lock.json
I haven't had time to pull and test locally, but from the screencast it looks like the flicker is still there, it just no longer has the black overlay.
Yes, in Gutenberg, only the black flash has been fixed by updating the wordpress/build. So for now, I've updated it, but I think we need to investigate the flicker further. The same flicker is present in Gutenberg as well.
I looked into this further. Updating @wordpress/build to the latest version (0.26.0) does not fix the flicker. The cause isn't in this plugin's build output; it comes from @wordpress/boot, which both Settings › AI and Settings › Connectors are built on (loaded from core).
Also when I deactivated the AI plugin still the issue is there for the Connectors page.
Screencast
Screen.Recording.2026-10-29.at.12.09.17.PM.mov
Why it flickers
Since 7.0, wp-admin fades between pages on every navigation (@view-transition { navigation: auto } in wp-admin/css/view-transitions.css).
Boot gives its main content panel a transition name: .boot-layout__stage { view-transition-name: boot--stage }. This is meant for animating between screens inside a boot app.
When navigating from one boot screen to another with a normal page load, the browser captures the old panel as a separate layer and looks for a panel with the same name on the new page. The new page hasn't mounted its JS yet, so there is none.
The old panel then animates on its own on top of the page fade: it dims, pops back, then fades out. That's the flicker.
Classic screens (General, Writing, etc.) don't have that named panel, which is why switching to or from them looks fine. It only happens between two boot screens.
How I confirmed it
I recorded the transitions frame by frame (attached). As a test, I cleared those transition names in a pageswap handler, which runs right before the browser captures the old page:
Activity
Trushiv04 commentedon Jun 18, 2026
I looked into this locally. The flicker appears to come from the inline critical styles in the generated AI admin page, where
#wpwrapis given a dark background:#wpwrap { background: var(--wpds-color-fg-content-neutral, #1e1e1e); }On initial load, before the boot module mounts the app into
.boot-layout-container, the CSS variable isn't available yet, so the#1e1e1efallback paints the entire wrap dark for a moment producing the black flash before content renders.Since this lives in an auto generated page file (driven by the boot/routes build), it likely needs to be addressed at the source rather than the generated output. Sharing in case it helps narrow down the fix.
jeffpaul commentedon Jun 18, 2026
Yeah, I believe there's a related issue in the Gutenberg repo that looked at fixing this on the Connectors screen, perhaps isn't released yet but finding that and mimicking on the AI settings page is probably best.
jeffpaul commentedon Jun 18, 2026
WordPress/gutenberg#74572 is all I found in searching quickly, but that's not the one I had remembered so some more searching is worthwhile before trying to change anything within the AI plugin.
prasadkarmalkar commentedon Jun 21, 2026
I think WordPress/gutenberg#78493 is the PR about black flash in wp-build. Also, the package is
"@wordpress/build": "^0.16.0"here in package.json and latest version is0.16.1.For me, the following steps worked locally:
npm update @wordpress/buildnpm run build:routesWe may need to update the package.json and package-lock.json
Screencast
Screen.Recording.2026-06-21.at.6.10.48.PM.mov
justlevine commentedon Jun 22, 2026
I haven't had time to pull and test locally, but from the screencast it looks like the flicker is still there, it just no longer has the black overlay.
prasadkarmalkar commentedon Jun 23, 2026
Yes, in Gutenberg, only the black flash has been fixed by updating the wordpress/build. So for now, I've updated it, but I think we need to investigate the flicker further. The same flicker is present in Gutenberg as well.
7 remaining items
jeffpaul commentedon Aug 10, 2026
@prasadkarmalkar have things improved in Gutenberg such that a package update will resolve things here?
jeffpaul commentedon Oct 28, 2026
Punting to 1.6.0 while @prasadkarmalkar continues research into resolution options here
prasadkarmalkar commentedon Oct 29, 2026
I looked into this further. Updating
@wordpress/buildto the latest version (0.26.0) does not fix the flicker. The cause isn't in this plugin's build output; it comes from@wordpress/boot, which both Settings › AI and Settings › Connectors are built on (loaded from core).Also when I deactivated the AI plugin still the issue is there for the Connectors page.
Screencast
Screen.Recording.2026-10-29.at.12.09.17.PM.mov
Why it flickers
@view-transition { navigation: auto }inwp-admin/css/view-transitions.css)..boot-layout__stage { view-transition-name: boot--stage }. This is meant for animating between screens inside a boot app.How I confirmed it
I recorded the transitions frame by frame (attached). As a test, I cleared those transition names in a
pageswaphandler, which runs right before the browser captures the old page:Screencast after updating above property
Screen.Recording.2026-10-29.at.12.16.40.PM.mov
Debug with help of AI
Tool: Claude Code
Model: Opus 5.5
All things tested and verified manually
jeffpaul commentedon Nov 18, 2026
@prasadkarmalkar so is there a fix upstream needed in a WP/Gutenberg package to help resolve this?