Skip to content

Studio: show the chat background in conversations on Windows at 100% scaling - #16702

Merged
Lyxot merged 2 commits into
unslothai:mainfrom
LeoBorcherding:fix-chat-background-win
Nov 5, 2026
Merged

Lyxot merged 2 commits into
unslothai:mainfrom
LeoBorcherding:fix-chat-background-win

Conversation

@LeoBorcherding

@LeoBorcherding LeoBorcherding commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

At Windows display scaling below 150%, the chat background shows on the new-chat screen and in the Settings previews but not in an open conversation. The low-device-scale scrolling rule from #13255 paints .aui-thread-viewport solid so Chromium will scroll it on the compositor, and that rule beats the background's translucent thread fill. The glass backdrop with no image is affected the same way.

The solid fill now applies only when no chat background or glass backdrop is shown (html:not([data-chat-wallpaper-ready])). With a background on, the thread gives up compositor scrolling at that scale, because a see-through scroller can't have it. The gutter and overflow settings from #13255 are unchanged. Linux, macOS and Windows at 150% or higher never match this rule, which is why they were already fine.

Tested in Unsloth Desktop 0.1.915-beta on Windows 11 at 100% scaling with Liquid Glass 3D. Before the fix the thread computes to rgb(24,24,24). After it, the thread computes to the expected translucent mix and the image shows at the configured "Visibility in conversations". With the background removed, the thread is solid again. tests/desktop-webkit-paths.test.ts asserts the new split.

Before / after (Unsloth Desktop 0.1.915-beta, Windows 11, Liquid Glass 3D, the same conversation and background in all four, real Windows display scaling at 100% and 175%). "After" is the installed build with this PR's CSS change applied in the running page. At 100% the thread computes to rgb(24,24,24) before and to the translucent wallpaper fill after. At 175% data-low-device-scale is off, so the rule never applied and nothing changes.

before and after at 100% and 175% scaling

@Lyxot

Lyxot commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Pushed 7fcc7c7 (test wording only, no CSS change): the desktop-webkit-paths test title no longer says the low-scale Windows thread always keeps LCD text and scrolls on the compositor, since with a chat background it now does neither, and the added assertion message is shorter.

Checked in Chromium at --force-device-scale-factor=1 --enable-lcd-text against the built CSS: with no background the thread is still solid and composited; with a wallpaper or glass backdrop it is now translucent (the image shows) and scrolls on the main thread, which is the trade-off the description states.

@Lyxot

Lyxot commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T08:31:32.616908Z 7fcc7c7 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. More of your lovely PRs please.

Reviewed commit: 7fcc7c7f0f

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

@Lyxot

Lyxot commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Review loop done on 7fcc7c7.

@Lyxot Lyxot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Fixes the hidden chat background at Windows <150% scaling; the no-background case is unchanged. Codex clean, staging CI green.

@Lyxot
Lyxot merged commit 157305f into unslothai:main Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants