Skip to content

fix(web): keep Windows sidebar buttons clickable with wallpaper - #1368

Merged
iruriQ merged 2 commits into
BytePioneer-AI:mainfrom
hhucz:fix/windows-wallpaper-sidebar-controls
Nov 29, 2026
Merged

iruriQ merged 2 commits into
BytePioneer-AI:mainfrom
hhucz:fix/windows-wallpaper-sidebar-controls

Conversation

@hhucz

@hhucz hhucz commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Keep the Windows sidebar toggle in the caption row when wallpaper is enabled, including when the sidebar is collapsed. Restore the collapsed New Session button in the same row. Related issue: N/A.

Root cause

The wallpaper backdrop filter on the sidebar column creates a containing block for its fixed-position descendants. The caption buttons inherit the 32 px vertical offset of the column. On collapse, the zero-width column also clips both controls through its existing overflow rule.

Fix

  • Render the wallpaper blur and the 22% light / 26% dark tint on a pointer-transparent pseudo-element behind the sidebar content.
  • Keep the original theme cascade. Reduced transparency, increased contrast, and forced colors disable blur. The light fallback uses 92% tint, while the more specific dark rule retains its existing 26% tint.

Tests

  • Built latest upstream main with this change using npm run build:typescript and npm run build:web:ui. The targeted Prettier check and git diff --check passed.
  • Verified the baseline and patched CodexHost 0.28.2 npm distribution on Windows in Edge using a separate local Web instance, a generated wallpaper, and the desktop shell's title-bar attributes. The expanded toggle moved from (12, 34) to (12, 2). At zero sidebar width, the toggle at (12, 2) and New Session at (48, 2) both passed hit testing. Real mouse clicks collapsed and reopened the sidebar, and New Session opened the composer from the Plugins page.
  • Confirmed visually that the wallpaper remains blurred behind sharp sidebar text in light and dark themes. Checked the no-blur fallback in increased contrast, forced colors, and reduced transparency in the original run. After restoring the dark tint cascade, rechecked increased contrast and reduced transparency in both themes (light 92%, dark 26%) and verified that the collapsed buttons still receive pointer hits.

Risk and compatibility

The CSS applies to the existing non-macOS and Tauri wallpaper selector. It preserves the existing column overflow and button handlers. Browser verification exercised the Windows layout and click targets. Native WebView2 caption drag behavior and other platforms were outside that run.

UI Demo

Sanitized CodexHost 0.28.2 screenshots before and after the Windows sidebar wallpaper fix

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • 样式
    • 调整侧栏背景效果,增加半透明底色与背景模糊。
    • 在减少透明度、增强对比度或强制颜色模式下,侧栏改用更高不透明度的背景并关闭模糊。

壁纸模式下,.sidebarCol 新增隔离堆叠上下文,并由覆盖整列的 ::before 伪元素绘制半透明背景和模糊效果。深色主题及辅助样式规则也改为作用于该伪元素。

Changes: 壁纸模式下的侧栏样式

Layer / File(s) Summary
侧栏背景与模糊样式
apps/web-ui/packages/client/ui-layout/src/client/AppFrame.module.css
.sidebarCol 新增相对定位和隔离堆叠上下文。背景和模糊效果移至覆盖侧栏列的 ::before 伪元素。深色模式下的 26% 填充比例,以及减少透明度、增强对比度或强制颜色模式下的 92% 填充和关闭模糊规则,均改为作用于该伪元素。

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: iruriq, bytepioneer-ai

Merge Risk: Minimal · up to 84383

This is a small styling fix that keeps the sidebar buttons clickable when a wallpaper is enabled. No concrete merge-blocking risk was found. Native WebView2 title-bar drag behavior was not tested.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 标题“fix(web): keep Windows sidebar buttons clickable with wallpaper”与变更内容一致。变更在 AppFrame.module.css 中为非 macOS 或 Tauri 壁纸模式的侧栏列增加隔离层,把模糊与半透明填充移至 ::before 伪元素,使 Windows 侧栏按钮在壁纸模式下(包括侧栏折叠时)仍可点击。标题简洁且具体,说明…
Description check Passed 描述与变更相关。它说明了保留 Windows 侧栏切换按钮与折叠状态下 New Session 按钮的目标,并解释了根本原因(壁纸背景滤镜创建了 fixed 定位后代的包含块,且折叠列的 overflow 规则裁剪了按钮)。描述还给出修复方式(伪元素承载模糊与色调)、测试过程与风险说明,与 CSS 变更直接对应。
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

标题“fix(web): keep Windows sidebar buttons clickable with wallpaper”与变更内容一致。变更在 AppFrame.module.css 中为非 macOS 或 Tauri 壁纸模式的侧栏列增加隔离层,把模糊与半透明填充移至 ::before 伪元素,使 Windows 侧栏按钮在壁纸模式下(包括侧栏折叠时)仍可点击。标题简洁且具体,说明了主要变更。

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 61c6512 and 843836d.

Files selected for processing: 1

  • apps/web-ui/packages/client/ui-layout/src/client/AppFrame.module.css

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

Recent review details

Context from checks skipped due to timeout: 4

  • GitHub Check: CodeRabbit
  • GitHub Check: Static checks
  • GitHub Check: Web Host tests
  • GitHub Check: Vitest
Additional context used

Code guidelines: 3

AGENTS.md — auto-discovered
docs/product/standalone-web.md — auto-discovered
CLAUDE.md — auto-discovered
Path-based instructions: 3

Source excerpt: `codexhost` runs external Agent Harnesses as independent Threads inside Codex Desktop, preserving the official shell and native Codex path.

CodeRabbit inference engine (AGENTS.md)

Files:

  • apps/web-ui/packages/client/ui-layout/src/client/AppFrame.module.css
Applicability reference: AGENTS.md: # Repository Guidelines `npm start` / `npm start web` rebuild and relaunch the user's Desktop / Web and may restart the shared Host; `npm stop` stops all local codexhost services across worktrees.

CodeRabbit inference engine (docs/product/standalone-web.md)

Files:

  • apps/web-ui/packages/client/ui-layout/src/client/AppFrame.module.css
Source excerpt: Do not write browser, e2e, or component tests for Web pages (`apps/web-ui`); the user checks page changes directly.

CodeRabbit inference engine (AGENTS.md)

Files:

  • apps/web-ui/packages/client/ui-layout/src/client/AppFrame.module.css

@hhucz
hhucz marked this pull request as draft November 28, 2026 14:08
@hhucz
hhucz marked this pull request as ready for review November 28, 2026 14:26
@iruriQ
iruriQ merged commit b3eba45 into BytePioneer-AI:main Nov 29, 2026
13 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.

2 participants