Skip to content

fix(ui): restrict inverted user bubble style to graphite theme only#4023

Merged
esengine merged 1 commit into
esengine:main-v2from
CVEngineer66:fix/msg-user-bubble-color-leak
Jun 11, 2026
Merged

fix(ui): restrict inverted user bubble style to graphite theme only#4023
esengine merged 1 commit into
esengine:main-v2from
CVEngineer66:fix/msg-user-bubble-color-leak

Conversation

@CVEngineer66

Copy link
Copy Markdown
Contributor

[data-theme-style] (bare, no value) matched every theme direction — graphite, carbon, aurora, slate — but the rule body uses graphite-specific colors (--fg as background, --bg as text). This turned user chat bubbles inside-out on non-graphite themes:

Theme Before (wrong) After (correct)
carbon light dark bubble, light text #f8f6f2 bg, #1a1714 text
carbon dark light bubble, dark text #1e1c1a bg, #ede9e3 text

Fixed by narrowing both selectors to [data-theme-style="graphite"].

Also fixes the pnpm environment variable in dev: pnpm v11 uses pnmp_confirm_modules_purge, not PNPM_CONFIG_CONFIRM_MODULES_PURGE (which is npm's format), so Wails' headless pnpm install was always blocked by the TTY prompt.

@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 11, 2026

@SivanCola SivanCola 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.

Thanks for the CSS fix here. Narrowing the user-bubble selector to data-theme-style="graphite" looks right to me; the non-graphite themes still have the base/shared .msg--user .msg__body styling as fallback.

The blocker is the dev change. This PR is now dirty against main-v2: #4024 already changed the same pnpm guard block and added desktop/frontend/.npmrc for the Wails headless pnpm case. Please rebase and keep the current base behavior there.

In particular, please do not resolve the conflict by using export pnpm_confirm_modules_purge=false. That env var form is missing the config part and does not match the pnpm config env convention. The current base uses npm_config_confirm_modules_purge=false plus npm_config_minimum_release_age=0, with .npmrc covering confirm-modules-purge=false and verify-deps-before-run=false.

So I think the mergeable shape should be: keep the CSS selector fix, drop/reconcile the dev change with the latest main-v2 pnpm guard.

@CVEngineer66 CVEngineer66 force-pushed the fix/msg-user-bubble-color-leak branch from 5b976d5 to cc7237b Compare June 11, 2026 11:20
The rule :root[data-theme-style] .msg--user .msg__body (with no specific
style value) leaked graphite's inverted-color bubble (--fg as background,
--bg as text) onto all other themes like carbon, aurora, and slate.

Fix: narrow both selectors to [data-theme-style="graphite"].
@CVEngineer66 CVEngineer66 force-pushed the fix/msg-user-bubble-color-leak branch from cc7237b to 5135d7d Compare June 11, 2026 11:23
@esengine esengine merged commit cd4a2bd into esengine:main-v2 Jun 11, 2026
13 checks passed
@esengine

Copy link
Copy Markdown
Owner

Thanks @CVEngineer66 — correct narrowing; the inverted user bubble now only applies under graphite, other theme-styles keep the shared bubble. Merged. (The earlier change-request was a mis-set state; the fix is right.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants