Fix draft mode chip for non-thinking models

Keep the desktop controls row alive when desktop extras exist, so draft mode chips still render even when a model has no thinking options.\n\nRestore the replacement draft e2e assertion for the mode chip now that it renders again.
This commit is contained in:
Mohamed Boudra
2026-05-26 20:15:11 +07:00
parent f79101a1f0
commit 88914ccba6
2 changed files with 6 additions and 5 deletions
@@ -195,17 +195,20 @@ function resolveHasAnyControl({
canSelectModel,
thinkingOptions,
features,
hasDesktopExtras,
}: {
providerOptions: AgentControlOption[] | undefined;
canSelectModel: boolean;
thinkingOptions: AgentControlOption[] | undefined;
features: AgentFeature[] | undefined;
hasDesktopExtras: boolean;
}) {
return (
Boolean(providerOptions?.length) ||
canSelectModel ||
Boolean(thinkingOptions?.length) ||
Boolean(features?.length)
Boolean(features?.length) ||
hasDesktopExtras
);
}
@@ -440,6 +443,7 @@ function ControlledAgentControls({
canSelectModel,
thinkingOptions,
features,
hasDesktopExtras: desktopExtras !== null && desktopExtras !== undefined,
});
const modelDisabled = disabled;