Skip to content

Commit 5676fcf

Browse files
committed
fix(web-ui): Resolve BTW hook lint errors
Use explicit assignment when invalidating pending BTW model loads in effect cleanup, and remove the obsolete shared-default callback dependency. Validation: lint:web passed with 0 errors and one existing WidgetView warning; check:web and 142 focused settings/model-selector tests passed.
1 parent 0b5929f commit 5676fcf

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/web-ui/src/app/scenes/settings/pages/ai/BtwModelSettingsRow.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function BtwModelSettings() {
4747
const unwatch = configManager.watch('ai.btw', () => void load());
4848
const unwatchPools = configManager.watch('ai.model_pools', () => void load());
4949
const unwatchModels = configManager.watch('ai.models', () => void load());
50-
return () => { revision.current++; unwatch(); unwatchPools(); unwatchModels(); };
50+
return () => { revision.current += 1; unwatch(); unwatchPools(); unwatchModels(); };
5151
}, [load, supported]);
5252

5353
const selection = ready ? btwModelSelection(value) : undefined;

‎src/web-ui/src/flow_chat/components/ModelSelector.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,6 @@ export const ModelSelector: React.FC<ModelSelectorProps> = ({
16331633
isAcpSession,
16341634
loading,
16351635
modelSelectionScopeKey,
1636-
persistSharedModeDefault,
16371636
persistModeDefault,
16381637
routing.pending,
16391638
reasoningLoading,

0 commit comments

Comments
 (0)