Skip to content

fix(visual-skin): allow disabling the active skin - #3946

Merged
kev1n77 merged 1 commit into
openBitFun:mainfrom
kev1n77:codex/fix-disable-visual-skin
Nov 16, 2026
Merged

kev1n77 merged 1 commit into
openBitFun:mainfrom
kev1n77:codex/fix-disable-visual-skin

Conversation

@kev1n77

@kev1n77 kev1n77 commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

After activating a visual skin, users could only switch to another installed package or remove it. Add Disable skin in Appearance settings to restore the existing built-in theme while keeping imported packages available.

Type and Areas

Type: Bug fix.

Areas: Web UI Appearance settings, visual-skin runtime, locale resources, and regression tests.

Motivation / Impact

Deactivation clears the saved selection through the existing IndexedDB transaction, then clears the applied skin and any temporary preview. A failed save preserves the previous selection and visible skin or preview, reports the error, and allows retry. Imported packages remain available for later activation. No persisted schema or remote protocol changes are required.

Verification

All local checks passed:

  • pnpm --dir src/web-ui run test:run src/infrastructure/visual-skin src/infrastructure/config/components/common/ConfigPageLayout.skin.test.tsx src/infrastructure/config/components/VisualSkinConfigSection.test.tsx src/app/scenes/session/ChatPane.composer-layout.test.tsx — 21 files, 169 tests passed.
  • pnpm run check:web — typography, Appearance contracts, theme color/visual governance, and TypeScript checks passed.
  • pnpm run i18n:audit — zero warnings.
  • pnpm --dir src/web-ui exec eslint src/infrastructure/visual-skin/runtime.ts src/infrastructure/visual-skin/index.ts src/infrastructure/config/components/VisualSkinConfigSection.tsx
  • git diff --check upstream/main..HEAD
  • node scripts/check-git-object-sizes.mjs --base upstream/main --head HEAD — all 9 introduced blobs passed.

Regression coverage includes restoring native theme values, retaining packages, staying disabled after runtime restart, deactivating during preview, save-failure preservation/retry, and preventing duplicate actions while saving.

Reviewer Notes

AI-assisted change; testing level: focused automated local coverage. Native WebView screenshots were not captured. Live SSH workspaces, Remote Control, Peer Device Mode, and Detached Dispatch were not exercised; skin selection remains owned by the rendering Web UI host.

Manual acceptance: activate a package, select Disable skin, confirm that the previous built-in appearance returns and the package remains listed, then reload and confirm that it stays disabled. Re-enable it, preview another package, and verify that Disable skin also exits the preview.

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.

@kev1n77
kev1n77 merged commit bb7afd6 into openBitFun:main Nov 16, 2026
9 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