Agentic UI: Let the app window shrink to 420px - #4444
Conversation
…t renderer Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
katinthehatsite
left a comment
There was a problem hiding this comment.
I had two main concerns:
- when I resize to the smallest possible window with agentic UI, the toolbar looks all messed up if I close the sidebar and remain within the smallest size (see for example, the buttons to open the browser etc.)
I think that it could be one of those:
-
The preview should auto-close below some width threshold
-
Or the minimum width should account for the preview being open
-
I am also finding the that the sidebar in the min-width is not really informative - for example, two similarly named sites get hard to distinguish e.g. My Swift Site and My WordPress site. In that case, it just shows the first two letters:
But I am also generally wondering how useful this small sized window would be for our customers? What do you think?
|
As a sidenote, it seems that the PR testing instructions are not related to the code changes? 😅 |
|
How embarrassing; sorry about the slop. I must have copy/pasted the description for the wrong issue! I'll update and fix. -- Solid feedback. I'll tweak some more, probably hiding panels automatically at the smaller sizes.
The use-case is shrinking Studio down to just it's chat; perhaps alongside the users normal browser. |
|
Ok, I've worked up some changes (both in the code, and the description here) and now the app manages the window panels at small sizes. If you shrink down it closes the preview and sidebar at logical sizes, and if you try to open a panel at a small size, the app will resize the window to make room for the new panel. |
📊 Performance Test ResultsComparing 9d12225 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) |
Thanks for making the changes, looking now 👀 No worries about the description, happen from time to time to anyone 🙈 |
katinthehatsite
left a comment
There was a problem hiding this comment.
I think we are getting there :)
I am still seeing some UI that does not look great when you open/close/resize some panels with the smallest viewpoint. I tried to highlight a couple of the issue in the screencast below:
The Agentic UI can work as a compact, chat-focused companion alongside a browser or editor, but Studio previously enforced the Classic UI’s 712px minimum window width in both modes.
This PR gives each UI mode its own minimum width:
At narrow widths, Studio now manages the surrounding panels instead of squeezing them into unusable layouts:
The 420px minimum is therefore a chat-first layout, while opening the sidebar or preview automatically restores enough window space for those panels to remain useful. Browser-hosted versions keep their existing behavior because native window resizing only applies to the Electron app.
Testing Instructions
Compact chat
Reopening panels
Resizing with panels open
UI mode and persistence