Skip to content

Studio: wallpaper composer fade, steady model picker height, effect render fixes, settings tidy - #18576

Merged
shimmyshimmer merged 17 commits into
mainfrom
studio-chat-bg-composer-clip
Nov 20, 2026
Merged

shimmyshimmer merged 17 commits into
mainfrom
studio-chat-bg-composer-clip

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

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.

  • ThreadComposerDock measures the composer surface against the bottom of the thread viewport and publishes --thread-composer-clip and --thread-composer-fade on the thread root (cleared when the thread is empty or the dock unmounts).
  • The wallpaper mask on .aui-thread-viewport gains 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 through loadImage, which only fails when the image itself fails to load.
  • A tab still running the previous build asks for an effect worker file the new build no longer has (404), so every effect failed until reload. A worker that cannot start now falls back to the same transform on the main thread.
  • A later successful render clears a stale effect error instead of leaving it up until the next setting change.

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

  • Customization section: Settings > Chat gets a Customization section under Composer, holding Chat width, Composer position, Composer outline and Monochrome model icons (moved from Model selection). Composer keeps Send shortcut, Follow-up behavior, Share drafts and Plain text composer, and gains Scroll while generating and Speed and context stats from Chat defaults. The title is added to every locale.
  • Chat defaults: Condense long pastes, Context window usage, Sent attachments and Rich text paste (last) move there from Composer.
  • Composer position: the new chat default is 45 (was 40). Saved preferences keep their value.
  • New chat composer: 8px shorter on the new chat page only (118px at 100% scale), all from the gap between the text and the bottom row. An empty saved chat or the floating chat keeps 126px.
  • Compare composer: reserves one row, like a conversation's composer, instead of two (102px at 100% scale).
  • Compare cursor: the Compare textarea carries 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

  • Connected models: Compare sent each pane's model to /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.
  • Wallpaper: each pane's model bar takes the thread's wash instead of a solid page-colour strip, and the pane's top fade is hidden.

Smaller fixes

  • Skipped update notice: the "Skipped llama.cpp ... for now" pill gets a close X on its top corner, which dismisses it right away. Not seen on screen here (it needs a real update offer); a source test covers it.
  • Translate: the language list is 28rem tall (was 24rem) and uses the shared scroll fade, so its bottom fades while more languages are below.

Verification

  • npm run typecheck, npm run build, npm test (16830 pass).
  • Isolated Studio on CPU driven with Playwright: wallpaper conversation screenshots (text fades just under the composer edge, none inside it, no wash seam), header strip before/after with glass off, picker height on every tab at four window sizes, settings sections, new chat and Compare composer heights, and the effect error under fault injection.

Not checked here: Glass materials and the Desktop shell on macOS / Windows / Linux, and GPU-only flows.

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Nov 20, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T07:12:30.881660Z 0faf4b3 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 3d7fd9118f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 0faf4b373c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

danielhanchen added a commit that referenced this pull request Nov 20, 2026
…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.
LeoBorcherding added a commit to LeoBorcherding/unsloth that referenced this pull request Nov 21, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant