Skip to content

Commit 30296dc

Browse files
Mezzleclaude
andcommitted
fix(web): scheduled task picker footer and plan agent compile again
The footer passed a provider to the two-argument splitSpeed, and the editor read a planModeEnabled setting that does not exist. The editor now shows the plan agent when the saved selection uses it, as the other settings pickers do. Co-Authored-By: Claude <[email protected]>
1 parent 87ed8c6 commit 30296dc

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎apps/web/src/components/chat/ComposerModelEffort.tsx‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -671,11 +671,7 @@ export function ComposerPickerFooter(props: {
671671
const visibility = props.traits ? getTraitsSectionVisibility(props.traits) : null;
672672
const speed =
673673
props.traits && visibility && !visibility.modelIsUnavailable
674-
? splitSpeed(
675-
props.traits.provider,
676-
visibility.selectDescriptors,
677-
visibility.booleanDescriptors,
678-
)
674+
? splitSpeed(visibility.selectDescriptors, visibility.booleanDescriptors)
679675
: null;
680676
if (!speed?.speedSelect && !speed?.fastToggle && !speed?.ultracodeToggle && !props.permissions)
681677
return null;

‎apps/web/src/components/settings/ScheduledTasksSettings.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import {
5050

5151
import { formatRelativeTime } from "../../timestampFormat";
5252
import { useEnvironmentSettings } from "../../hooks/useSettings";
53-
import { getCustomModelOptionsByInstance } from "../../modelSelection";
53+
import { getCustomModelOptionsByInstance, selectsPlanAgent } from "../../modelSelection";
5454
import { getProviderModelCapabilities } from "../../providerModels";
5555
import { providerInstanceEntriesFor } from "../../providerInstances";
5656
import { usePrimaryCloudLinkState } from "../../cloud/cloudLinkState";
@@ -1458,12 +1458,12 @@ function ScheduledTaskEditorForm({
14581458
activeEntry.models,
14591459
activeSelection.model,
14601460
activeEntry.driverKind,
1461-
settings.planModeEnabled,
1461+
selectsPlanAgent(activeSelection.options),
14621462
),
14631463
activeSelection.options,
14641464
),
14651465
allowPromptInjectedEffort: false,
1466-
planModeEnabled: settings.planModeEnabled,
1466+
includePlanAgent: selectsPlanAgent(activeSelection.options),
14671467
// Writes the whole selection, so a change made on the default model pins that model too.
14681468
onModelOptionsChange: (options) =>
14691469
setDraft((current) => ({

0 commit comments

Comments
 (0)