Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(orchestrator): Surface Grok reasoning effort options #5160

Closedmwolson(GitHub profile, opens in a new tab)wants to merge 7 commits intot3code/codex-turn-mapping fromrefs/pull/5160/headopened View on GitHub

Showing 40 changed files with 24 additions and 2 deletions (loading 37).

x
0 of 40 viewed, 40 left
18 additions and 2 deletionsapps/mobile/src/features/threads/ThreadComposer.tsxModified
View file
@@ -19,6 +19,7 @@
import { memo, useCallback, useEffect, useMemo, useRef, useState, type RefObject } from "react";
import {
ActivityIndicator,
+ Alert,
Image,
Platform,
Pressable,
@@ -111,6 +112,8 @@
readonly canStopThread: boolean;
readonly environmentId: EnvironmentId;
readonly projectCwd: string | null;
+ readonly optionChangeBlocked?: boolean;
+ readonly optionChangeBlockedInstanceId?: string | null;
readonly editorRef?: RefObject<ComposerEditorHandle | null>;
readonly onChangeDraftMessage: (value: string) => void;
readonly onPickDraftImages: () => Promise<void>;
@@ -639,8 +642,19 @@
selectedModel: currentModelSelection,
onSelectModel: (option) => props.onUpdateModelSelection(option.selection),
optionDescriptors: providerOptionDescriptors,
- onUpdateOptionSelections: (options) =>
- props.onUpdateModelSelection({ ...currentModelSelection, options }),
+ onUpdateOptionSelections: (options) => {
+ const optionsLocked =
+ props.optionChangeBlocked === true &&
+ props.optionChangeBlockedInstanceId === currentModelSelection.instanceId;
+ if (optionsLocked) {