Skip to content

fix(web-ui): stabilize FlowChat backdrop compositing and avoid visual-skin DOM rescans - #3976

Merged
bobleer merged 3 commits into
openBitFun:mainfrom
bobleer:bob/fix-flowchat-skin-compositing-and-perf
Nov 17, 2026
Merged

bobleer merged 3 commits into
openBitFun:mainfrom
bobleer:bob/fix-flowchat-skin-compositing-and-perf

Conversation

@bobleer

@bobleer bobleer commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Center session status indicators and trailing action controls on the block axis across sidebar session and assistant history rows.
  • Stabilize WebKit compositing across visual-skin / appearance MP4 backdrops and the masked FlowChat transcript scroller:
    • Keep visual-skin ([data-openbitfun-skin-paint]) and appearance (.openbitfun-appearance-background-media) backdrop planes on dedicated composited layers (transform: translateZ(0)).
    • Keep .virtual-message-list__scroller's edge-fade mask on a persistent compositing path via will-change: opacity (instead of transform, avoiding trapping inline position: fixed views such as expanded GenUI maps).
    • Remove the rectangular backdrop-filter blur patch from ChatComposer[data-has-context="true"] (and sync the generated miniapp shell/theme outputs and ChatComposer metadata).
    • Replace main-thread box-shadow keyframe animation on .flowchat-header__session-overview-status-dot with a compositor-only ::after scale/opacity halo.
  • Eliminate redundant full-document DOM scans, <style> recompilations, capture-phase interaction listeners, and projection diagnostics reports in VisualSkinRuntime during virtualized chat scrolling, streaming, and ordinary pointer/focus interactions when no diagnostics watcher is visible.

Type and Areas

Type: Bug fix / Performance / UI polish

Areas: Web UI (src/web-ui), Design System (design-system/packages/ui), MiniApp shell generated styles (src/apps/miniapp-shell, src/shared/miniapp-chrome)

Motivation / Impact

Hovering user message actions or scrolling through virtualized FlowChat rows over translucent surfaces / MP4 backdrops could cause WebKit (WKWebView) to dynamically split and tear down masked/isolated compositing layers (briefly double-compositing the translucent chat surface fill), while VisualSkinRuntime's MutationObserver simultaneously rescanned the full document, rewrote <style>, and recomputed projection diagnostics on every virtualized row mount/unmount. This PR eliminates both the compositing flash and the main-thread DOM/style thrashing without altering visual design or trapping fixed overlays.

Remote scenarios: Shared Web UI CSS/runtime behavior applies uniformly across local desktop, remote SSH/Docker workspaces, and Peer Device Mode controller views; exercised via local automated frontend and contract suites.

AI-assisted: Yes (fully tested with unit, regression, layout, and appearance/theme contract gates).

Verification

  • pnpm --dir src/web-ui run test:run src/infrastructure/visual-skin/ src/infrastructure/appearance/runtime/AppearanceBackgroundMedia.test.tsx src/infrastructure/config/components/VisualSkinConfigSection.test.tsx src/infrastructure/config/components/common/ConfigPageLayout.skin.test.tsx src/flow_chat/components/modern/VirtualMessageList.edgeFade.test.ts src/flow_chat/components/modern/FlowChatHeader.test.tsx src/app/components/NavPanel/sections/sessions/SessionsSectionLayout.test.ts src/app/components/NavPanel/sections/workspaces/WorkspaceListSectionLayout.test.ts (all passed)
  • pnpm --dir design-system --filter @openbitfun/ui run test (355 passed)
  • pnpm --dir design-system --filter @openbitfun/design-lab run type-check (passed)
  • pnpm run check:web (typography, appearance DOM contract, frontend/CLI/MiniApp color audits, visual contract, and tsc --noEmit all passed)
  • pnpm run miniapp:appearance:check && pnpm run data-tools:theme:check && pnpm run mobile:ui:check && pnpm run check:repo-hygiene (all passed)
  • node scripts/check-git-object-sizes.mjs --base upstream/main --head HEAD (passed)

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

@bobleer
bobleer merged commit de12543 into openBitFun:main Nov 17, 2026
11 of 12 checks passed
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