Repository navigation
Studio: wallpaper composer fade, steady model picker height, effect render fixes, settings tidy - #18576
Conversation
…mposer at 45 by default
…ery large monitors
…n or a worker that fails to start
…under the composer's top
…omization section in Chat settings [skip ci]
…omposer [skip ci]
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…ntrols now live in (#18618) ## Summary The settings-tabs browser smoke (`tests/studio/playwright_settings_tabs.py`, run by Studio Frontend CI) fails on current `main`. It shows up on staging runs of unrelated PRs, e.g. #18473: ``` [settings-tabs] FAIL composer search: 'Chat width' reached {'tab': 'chat', 'label': 'Chat width', 'section': 'Customization'} [settings-tabs] FAIL composer search: 'Composer position' reached {'tab': 'chat', 'label': 'Composer position', 'section': 'Customization'} [settings-tabs] FAIL composer search: 'Composer outline' reached {'tab': 'chat', 'label': 'Composer outline', 'section': 'Customization'} [settings-tabs] FAIL composer search: 'Attachments in sent messages' reached {'tab': 'chat', 'label': 'Attachments in sent messages', 'section': 'Chat defaults'} [settings-tabs] 4 FAILURES ``` ## Cause #18576 ("settings tidy") moved the four controls into new sections of Settings > Chat: - chat width, composer position and composer outline into a new Customization section; - sent-message attachments into Chat defaults. That PR updated the unit test (`chat-settings-sections.test.ts`) but not this browser smoke, which still expects all four under the Composer section. Search itself works: each control is found and opens in the Chat tab. Only the expected section name is stale. So the product change is right and the test is out of date. ## Change - `playwright_settings_tabs.py`: the expected (label, section) pairs are now a module constant, `COMPOSER_SEARCH_SECTIONS`, naming the section each control actually lives in. The check is otherwise unchanged: still searched from Appearance, still asserted to land in the Chat tab under that exact section. - New `tests/studio/test_settings_tabs_composer_search_sections.py` reads that constant (via `ast`, without importing Playwright) and checks each pair against `chat-tab.tsx`, so a later regrouping of the Chat tab fails in the unit tests instead of only in the browser run. ## Testing - The new expectations match exactly what the failing run observed for all four controls ('Customization' x3, 'Chat defaults'). `en_string` resolves both section keys to those titles. - `test_settings_tabs_composer_search_sections.py` passes. Pointing one pair back at `composerSettings.title` fails it with `chatBackground.outline sits under ['settings.chat.groups.customization.title'] in chat-tab.tsx, but playwright_settings_tabs.py expects composerSettings.title`. - `tests/studio/test_playwright_suites_run_in_ci.py` and `tests/test_source_read_encoding.py` still pass.
Resolve the index.css conflict with the wallpaper composer fade (unslothai#18576): keep main's viewport mask and root wash, keep the welcome-view rules, and fade the new model picker card (unslothai#18427) with the composer surface.
Summary
A set of chat polish fixes: wallpaper conversations no longer show text through or under the composer, the model picker keeps one height across tabs again, wallpaper effects stop failing on transient errors, the header matches the wallpaper shade without glass, and a few settings and composer sizes are tidied.
Wallpaper: thread fades out behind the composer
With a chat wallpaper, the conversation scrolled behind the composer and kept showing through it and in the gap below it, because the wallpaper hides the solid bottom fade that normally covers that area. The thread now runs to the composer's top edge and fades out within the 10px beneath it (scaled with interface scale), so no text shows through the composer body or below it.
ThreadComposerDockmeasures the composer surface against the bottom of the thread viewport and publishes--thread-composer-clipand--thread-composer-fadeon the thread root (cleared when the thread is empty or the dock unmounts)..aui-thread-viewportgains a steep fade starting at that height.Without a wallpaper nothing changes: only the wallpaper rules read these variables.
Wallpaper: header shade without glass
The wallpaper wash now sits on the thread root for every material (it already did for Glass), so the header strip has the same shade as the conversation instead of the brighter raw wallpaper. The extra header darkening (
.chat-wallpaper::after) is dropped for conversations without glass. Glass, the new chat view and page routes keep their current look.Wallpaper: "Could not render the effect"
The message, with blank previews, came from steps that fail for reasons unrelated to the image:
HTMLImageElement.decode()may reject while the image still loads (the HTML spec allows it), and every wallpaper load awaited it directly. Images now load throughloadImage, which only fails when the image itself fails to load.Both failure modes were reproduced by fault injection (a 404 for the worker asset, and
decode()rejecting every other call): before, the error showed for Dither, Halftone and ASCII; after, no error and the effect paints. Without injection I could not reproduce the error in Chromium or WebKit.Model picker height
Since #18074 the open picker grew from 420px up to 540px with the number of rows in the current tab, so it changed size when switching tabs. Its height now comes from the window only, so every tab has the same height: 400px on short landscape windows, 420px up to a 1080px-tall window, rising to 540px at 1380px and taller. It is measured in on-screen pixels, so zoom does not change it, and it is still capped to the window. The growth into the room under Select model (
--composer-picker-max-h,--picker-room) is removed; Run settings keeps its own height.Measured on every tab: 1440x900 = 400, 1920x1080 = 420, 2560x1230 = 480, 2560x1440 = 540.
Settings and composer sizes
role="combobox", which the global pointer-cursor rule turned into a hand. Text fields with that role now keep the text cursor; button comboboxes keep the pointer.Compare
/api/inference/load, including a connected model (external::<connection>::<model>). The backend read that id as a Hugging Face repo and started the Unsloth / transformers loader, which fails with "torch not found" on a PyTorch-free install. Compare now selects a connected model the way Chat does and never loads it; local models load as before. Checked against a mock OpenAI-compatible connection: two connected panes made no load request and both replied, and a connected pane plus a local GGUF pane loaded only the GGUF.Smaller fixes
Verification
npm run typecheck,npm run build,npm test(16830 pass).Not checked here: Glass materials and the Desktop shell on macOS / Windows / Linux, and GPU-only flows.