feat: improve Windows compatibility and add switchable home styles - #308
Open
1622352030 wants to merge 11 commits into
Open
feat: improve Windows compatibility and add switchable home styles#3081622352030 wants to merge 11 commits into
1622352030 wants to merge 11 commits into
Conversation
1622352030
force-pushed
the
fix/windows-tray-menu-readability
branch
from
July 29, 2026 07:20
ea96d8a to
32d0cf0
Compare
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 / 摘要
This PR carries the Windows compatibility work from the fork forward from upstream v1.5.6 and prepares the synchronized client sources as v1.6.0. It is broader than a visual-only change: it fixes Codex 26.721 renderer compatibility, Windows login startup, community theme entry/import compatibility, and adds two persistent live view switches.
User-visible fixes / 用户可见修复
Codex 26.721+ layout and renderer compatibility
.home-banners, rather than its descendant.[data-home-ambient-suggestions]and the portal-rendered.group/home-suggestionslayer.home.Integration follow-up for the fork's background composition
These items are not upstream defects. Upstream's continuous dark left-block design is retained as-is. The regressions appeared only after this branch merged that design with the fork's existing route-dependent home/conversation overlays and native-menu styling.
ResizeObserver, including fractional widths and sidebar resize/collapse/rebuild changes, so the fork's additional menu treatment follows the upstream left block precisely.Theme ZIP import and one-click apply compatibility
dreamskin://apply/?version=ver_...in addition to the canonicaldreamskin://apply?version=ver_...form.backdrop-filter: blur(var(--ds-theme-surface-blur)).colorscontract and omit the legacy optionalpalettefield.apply-community-theme.ps1runs under PowerShell strict mode; direct reads of missing optionalid,appearance,art, orpaletteproperties previously raisedPropertyNotFoundStrictafter the ZIP had passed validation, so the transaction cleaned the download and never committed an active theme.Another one-click theme apply is already runningafter the first theme had already applied successfully.Start-Process -Waitfollows the whole Windows descendant process tree, including the intentionally persistent Node injector watcher, so the protocol process never reached lock cleanup. The handler now performs a bounded wait on only the direct start/verify child and exits as soon as visible verification succeeds.This does not weaken the theme ZIP contract. Imported ZIPs still require the normal non-empty
theme.json, non-emptytheme.css, referenced background image, manifest/hash checks where applicable, image bounds, archive safety checks, and Safe CSS validation. Local test packages and generated background assets are not included in this PR.Windows automation and tray switches / Windows 自动化与托盘切换
Menu background
The tray now exposes 菜单背景:
左侧连续背景(default): only the sidebar and matching left menu segment use the continuous background block.整条菜单栏背景: the full application menu receives the menu background.The selection is stored as the bounded local
chrome-modepreference. It is included in the payload identity, source stamp, strong watcher comparison, and renderer root attributes, so a running background watcher reinjects the style immediately without restarting Codex or rerunning the full skin startup flow.Home style
The tray now exposes 首页样式:
简洁首页: hides the native headline and both suggestion-card layers while preserving the real composer and controls.标题与建议卡(upgrade default): restores the generated theme title/subtitle and the two-layer glass suggestion-card presentation.The selection is stored independently as
home-mode; it does not modify the active theme ZIP, saved themes, or last-known-good state. Likechrome-mode, it participates in watcher change detection and payload identity, allowing a hot switch in the existing verified renderer session.Windows startup repair / Windows 启动修复
Sysnativelaunch targets with the realSystem32PowerShell path;Sysnativeis a process-only alias and is unavailable to 64-bit Explorer/startup shortcuts.login-dream-skin.ps1as the explicit login orchestrator: start the tray if needed, honor persistent pause state, then start and verify a real skin-enabled Codex session.登录时启动皮肤和 Codexso the behavior is explicit.Repository hygiene / 仓库脱敏
tools/check-secrets.mjsto CI to scan tracked and otherwise committable text files for common credentials, private keys, provider tokens, and webhook forms without printing secret values..gitignorefor real.envfiles, signing material, credential JSON, local Codex data, release tool caches, smoke fixtures, generated images, and installer artifacts while allowing explicit.env.exampletemplates.Type / 类型
Platform / 平台
The canonical renderer, selectors and Safe CSS validator are synchronized to both platforms. The new native tray/startup controls are Windows-only; macOS retains the v1.5.9/classic home presentation by default and does not gain a new menu item in this PR.
Self-check / 自测
Shared/runtime
git diff --checkand relevant Node/PowerShell syntax checks passed.Windows
colors-only package and for a minimal theme missing all four optional compatibility fields; import, active-theme roundtrip, and runtime fingerprint generation pass.Start-Process -Waitor a success acknowledgement dialog.26.721.4979smoke tests passed for both home modes, both menu-background modes, watcher hot reload, home and conversation routes, composer visibility, and no horizontal overflow.CodexDreamSkin-Setup-v1.6.0.exewas rebuilt after the one-click repair and passed static/version/payload checks. The installer is a local validation artifact and is not committed to this PR.macOS
User-facing and security
1.6.0.app.asar, WindowsApps ACLs, or signatures.Release note / 发布说明
This PR prepares the source/version state for v1.6.0, but the locally built Setup is not a GitHub Release asset. Merge, tag creation, CI completion, and publication remain separate upstream release facts; this PR should not be described as released until the upstream Release workflow publishes verified assets from the merged commit.