fix(cli): resolve post-rebase build errors in theme dialog and tests

This commit is contained in:
Dan Zaharia
2026-03-06 12:17:06 -05:00
parent 4bb9b31dbf
commit ad21b147b3
2 changed files with 5 additions and 7 deletions

View File

@@ -281,10 +281,6 @@ export function ThemeDialog({
const codeBlockHeight = Math.ceil(availableHeightForPanes * 0.6);
const diffHeight = Math.floor(availableHeightForPanes * 0.4);
const previewTheme =
themeManager.getTheme(highlightedThemeName || DEFAULT_THEME.name) ||
DEFAULT_THEME;
return (
<Box
borderStyle="round"
@@ -425,7 +421,9 @@ def fibonacci(n):
return a`,
language: 'python',
availableHeight:
isAlternateBuffer === false ? codeBlockHeight : undefined,
isAlternateBuffer === false
? codeBlockHeight
: undefined,
maxWidth: colorizeCodeWidth,
settings,
theme: previewTheme,

View File

@@ -199,7 +199,7 @@ describe('useTerminalTheme', () => {
config.setTerminalBackground('#000000');
vi.mocked(config.setTerminalBackground).mockClear();
// But theme is light
mockSettings.merged.ui.theme = 'default-light';
mockSettings.merged.ui.themeLight = 'default-light';
const refreshStatic = vi.fn();
const { unmount } = renderHook(() =>
@@ -220,7 +220,7 @@ describe('useTerminalTheme', () => {
expect.anything(),
);
mockSettings.merged.ui.theme = 'default';
mockSettings.merged.ui.themeDark = 'default';
unmount();
});