Repository navigation
fix(web-ui): stabilize FlowChat backdrop compositing and avoid visual-skin DOM rescans - #3976
Merged
bobleer merged 3 commits intoNov 17, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
[data-openbitfun-skin-paint]) and appearance (.openbitfun-appearance-background-media) backdrop planes on dedicated composited layers (transform: translateZ(0))..virtual-message-list__scroller's edge-fade mask on a persistent compositing path viawill-change: opacity(instead oftransform, avoiding trapping inlineposition: fixedviews such as expanded GenUI maps).backdrop-filterblur patch fromChatComposer[data-has-context="true"](and sync the generated miniapp shell/theme outputs andChatComposermetadata).box-shadowkeyframe animation on.flowchat-header__session-overview-status-dotwith a compositor-only::afterscale/opacity halo.<style>recompilations, capture-phase interaction listeners, and projection diagnostics reports inVisualSkinRuntimeduring 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), whileVisualSkinRuntime'sMutationObserversimultaneously 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, andtsc --noEmitall 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