Skip to content

fix: defer VS Code auto theme to platform#841

Open
vamshikrishnaramasamy wants to merge 1 commit into
CodebuffAI:mainfrom
vamshikrishnaramasamy:fix/vscode-auto-theme-platform
Open

fix: defer VS Code auto theme to platform#841
vamshikrishnaramasamy wants to merge 1 commit into
CodebuffAI:mainfrom
vamshikrishnaramasamy:fix/vscode-auto-theme-platform

Conversation

@vamshikrishnaramasamy

@vamshikrishnaramasamy vamshikrishnaramasamy commented Jul 3, 2026

Copy link
Copy Markdown

Fixes #834.

When VS Code has window.autoDetectColorScheme enabled, the CLI should defer to the platform theme detector instead of inferring the theme from workbench.preferredDarkColorTheme first. Otherwise auto-detect can stick to the preferred dark theme even when macOS is in light mode.

This keeps explicit workbench.colorTheme handling unchanged and adds focused coverage for the VS Code settings parser.

Tests:

  • bun test src/__tests__/utils/theme-system.test.ts

Note: bun run typecheck currently fails on unrelated existing react-dom/server declaration errors in CLI component tests.

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.

MacOS CLI light theme and dark theme auto detect does not work

1 participant