Fix session/tool-question UX regressions and stabilize streaming activity rendering (#451)
* fix: stale model variants in chat controls in draft session * fix: attention indicator for project tabs * fix: use part index and type for consistent IDs * fix question card navigation for unanswered questions
This commit is contained in:
committed by
GitHub
parent
50a66bb6f1
commit
22255cf2c0
@@ -541,11 +541,9 @@ export const ModelControls: React.FC<ModelControlsProps> = ({
|
||||
const inputModalityIcons = getModalityIcons(currentMetadata, 'input');
|
||||
const outputModalityIcons = getModalityIcons(currentMetadata, 'output');
|
||||
|
||||
// Providers/models can reload (directory switch/config sync) without changing
|
||||
// currentProviderId/currentModelId; include providers to avoid stale variants.
|
||||
const availableVariants = React.useMemo(() => {
|
||||
return getCurrentModelVariants();
|
||||
}, [getCurrentModelVariants]);
|
||||
// Compute from current model each render to avoid stale variants
|
||||
// in draft/session transitions.
|
||||
const availableVariants = getCurrentModelVariants();
|
||||
const hasVariants = availableVariants.length > 0;
|
||||
|
||||
const costRows = [
|
||||
|
||||
Reference in New Issue
Block a user