Make Agentic UI available behind a beta feature flag - #4163
Conversation
📊 Performance Test ResultsComparing 7e69db5 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
bcotrim
left a comment
There was a problem hiding this comment.
The UI looks great 👍
We didn't add a similar toggle in the Agentic UI preferences, but I think it's ok to discuss/address it when we redo the Agentic UI preferences.
Something I suggest changing:
- The beta flag should be the only source of truth for displaying the Agentic UI, replacing the existing feature flag behavior
- The feature flag controls the visibility of the beta opt-in (the banner and the Beta Features menu entry)
This allows us to keep working on the Agentic UI without exposing it to all users yet. When we're ready to make it available, we just remove the feature flag and the beta flag becomes visible and available for everyone.
What do you think?
… is now more like a card, and sits on the bottom-right of the window. I also added an entrance and exit transition. I also updated the settings banner's copy and background.
|
Pushed a bunch of design updates to bring in the pixel-w, progressive blur, and dotgrid elements to both banners. I updated the design for the main banner to use a card-like design, with a single primary action; dismiss becomes an X icon at the top-right. I also added enter/exit animations for the card banner. |
Yeah that makes sense, I will adjust the PR 👍 I have not really worked on that bit yet as I was mostly looking to find agreement on the design, placement and approach. It seems that it is done now, so I will proceed with adding these changes. |
This looks good to me 👍 Thanks @shaunandrews - I will clean up the rest of the code. |
…e-agentic-ui-available-behind-feature-flag
|
@bcotrim I made some adjustments and now we have got: Feature flag (ENABLE_AGENTIC_UI) — now controls visibility only:
Beta feature (betaFeatures.enableAgenticUi) — now the sole source of truth for which UI loads:
Banner/Preferences callout — show when:
I see that @shaunandrews also moved the banner into the preferences tab:
I don't know if it is visible enough in there or if we should move it to a place where it was before e.g. in the header so I will let you make a call there. One thing to note is that to go back to the old UI, the users would need to use the Beta features menu. I don't know if that's a concern, but leaving it here in case we want to improve the visibility of the switch back. |
bcotrim
left a comment
There was a problem hiding this comment.
The rework looks great 👍
One suggestion: getPreferredStudioUiMode() still reads the feature flag (with the beta value copied into it at boot/toggle). I'd make the beta flag the only thing deciding which UI loads, and keep the feature flag controlling just the UI elements (menu entry + banners).
That way releasing is trivial — remove the feature flag and the opt-in is visible to everyone. A user who enabled the beta would keep the Agentic UI even with the flag off, but I think that's fine: the flag's job is just to hide the opt-in until we're ready.
What do you think?
I think it's a valid concern, we could have a similar option in the user preferences to revert back. If it's an easy addition let's do it, otherwise we can address it in a follow-up PR when we work on Agentic UI preferences. |
…e-agentic-ui-available-behind-feature-flag
Sounds good to me, I made the related changes 👍 So now, if you enable agentic UI feature flag, the UI won't automatically switch to the legacy UI but instead, the banner will appear in Settings as well as the option for the beta features will start listing the new Studio experience. |
bcotrim
left a comment
There was a problem hiding this comment.
LGTM 👍
Thanks for making the adjustments
…-ui-available-behind-feature-flag # Conflicts: # apps/studio/src/menu.ts
|
Resolved the trunk conflicts and pushed two commits: Merge — kept this branch's version of the dev flags menu; the #4200 fix there was obsolete since the feature flag no longer reloads the renderer. |
|
Thanks for merging @bcotrim 🙇 |





Related issues
Fixes STU-2006
How AI was used in this PR
It was used to brainstorm ideas and then implement the feature once I decided on what makes most sense.
Proposed Changes
Testing Instructions
npm startTry itbutton and that it switches the UI to the agentic UIPre-merge Checklist