refactor: remove unused model variable from Footer component

This commit is contained in:
xwj02155382 2026-01-26 10:49:44 +08:00
parent 1a2edc3fa3
commit 8725b91e11

View file

@ -27,13 +27,11 @@ export const Footer: React.FC = () => {
const { vimEnabled, vimMode } = useVimMode();
const {
model,
errorCount,
showErrorDetails,
promptTokenCount,
showAutoAcceptIndicator,
} = {
model: config.getModel(),
errorCount: uiState.errorCount,
showErrorDetails: uiState.showErrorDetails,
promptTokenCount: uiState.sessionStats.lastPromptTokenCount,
@ -61,7 +59,7 @@ export const Footer: React.FC = () => {
// Memoize contextWindowSize to avoid recalculating on every render
const contextWindowSize = useMemo(
() => config.getContentGeneratorConfig()?.contextWindowSize,
[config]
[config],
);
// Left section should show exactly ONE thing at any time, in priority order.