The best way to control Claude Code, Codex and more from any computer or phone
feat(web): model options for source control writer and review guide models (#18488)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 11, 2026 at 20:46 UTC
e688034b5f5505f92fcf1d78ba853c9c0107f9f1
1 file changed
+62
apps/web/src/components/settings/SourceControlWritingSettings.tsx
+62
@@ -27,9 +27,11 @@ import {
27
import {
28
getCustomModelOptionsByInstance,
29
resolveAppModelSelectionState,
30
+ selectsPlanAgent,
31
} from "../../modelSelection";
32
import { EMPTY_SERVER_PROVIDERS } from "../../state/server";
33
import { ProviderModelPicker } from "../chat/ProviderModelPicker";
34
+import { TraitsPicker } from "../chat/TraitsPicker";
35
import { Select, SelectItem, SelectPopup, SelectTrigger, SelectValue } from "../ui/select";
36
import { Switch } from "../ui/switch";
37
import { Textarea } from "../ui/textarea";
@@ -149,6 +151,9 @@ export function SourceControlWritingSettingsSection() {
151
activeSelection.model,
152
);
153
const writerModelDisabledReason = useScopedModelDisabledReason(settings, instanceEntries);
154
+ const writerInstanceEntry = instanceEntries.find(
155
+ (entry) => entry.instanceId === activeSelection.instanceId,
156
+ );
157
const usesReviewGuideModel = settings.reviewGuideModelSelection !== null;
158
const reviewGuideSelection = resolveAppModelSelectionState(
159
{
@@ -168,6 +173,9 @@ export function SourceControlWritingSettingsSection() {
173
reviewGuideSelection.instanceId,
174
reviewGuideSelection.model,
175
);
176
+ const reviewGuideInstanceEntry = instanceEntries.find(
177
+ (entry) => entry.instanceId === reviewGuideSelection.instanceId,
178
+ );
179
180
return (
181
<SettingsSection id="source-control-text-generation" title="Text generation">
@@ -381,6 +389,33 @@ export function SourceControlWritingSettingsSection() {
389
}}
390
/>
391
) : null}
392
+ {usesDedicatedModel &&
393
+ canEnableDedicatedModel &&
394
+ !mixedWriterModel &&
395
+ writerInstanceEntry ? (
396
+ <TraitsPicker
397
+ provider={writerInstanceEntry.driverKind}
398
+ models={writerInstanceEntry.models}
399
+ model={activeSelection.model}
400
+ prompt=""
401
+ onPromptChange={() => {}}
402
+ modelOptions={activeSelection.options ?? []}
403
+ allowPromptInjectedEffort={false}
404
+ planModeEnabled={
405
+ settings.planModeEnabled || selectsPlanAgent(activeSelection.options)
406
+ }
407
+ triggerClassName={SETTINGS_PICKER_TRIGGER_CLASSNAME}
408
+ onModelOptionsChange={(options) =>
409
+ updateSettings({
410
+ sourceControlWriterModelSelection: createModelSelection(
411
+ activeSelection.instanceId,
412
+ activeSelection.model,
413
+ options,
414
+ ),
415
+ })
416
+ }
417
+ />
418
+ ) : null}
419
<Switch
420
checked={usesDedicatedModel}
421
disabled={!usesDedicatedModel && !canEnableDedicatedModel}
@@ -461,6 +496,33 @@ export function SourceControlWritingSettingsSection() {
496
}}
497
/>
498
) : null}
499
+ {usesReviewGuideModel &&
500
+ canEnableDedicatedModel &&
501
+ !mixedReviewGuideModel &&
502
+ reviewGuideInstanceEntry ? (
503
+ <TraitsPicker
504
+ provider={reviewGuideInstanceEntry.driverKind}
505
+ models={reviewGuideInstanceEntry.models}
506
+ model={reviewGuideSelection.model}
507
+ prompt=""
508
+ onPromptChange={() => {}}
509
+ modelOptions={reviewGuideSelection.options ?? []}
510
+ allowPromptInjectedEffort={false}
511
+ planModeEnabled={
512
+ settings.planModeEnabled || selectsPlanAgent(reviewGuideSelection.options)
513
+ }
514
+ triggerClassName={SETTINGS_PICKER_TRIGGER_CLASSNAME}
515
+ onModelOptionsChange={(options) =>
516
+ updateSettings({
517
+ reviewGuideModelSelection: createModelSelection(
518
+ reviewGuideSelection.instanceId,
519
+ reviewGuideSelection.model,
520
+ options,
521
+ ),
522
+ })
523
+ }
524
+ />
525
+ ) : null}
526
<Switch
527
mixed={mixedReviewGuideModel}
528
checked={mixedReviewGuideModel ? false : usesReviewGuideModel}