Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web,mobile): existing Plan threads keep their mode controls with Plan mode off #29275

Closedshivamhwp(GitHub profile, opens in a new tab)wants to merge 11 commits intomain fromrefs/pull/29275/headopened View on GitHub

Showing 12 changed files with 41 additions and 5 deletions (loading 9).

x
0 of 12 viewed, 12 left
38 additions and 5 deletionsapps/mobile/src/features/threads/ThreadComposer.tsxModified
View file
@@ -81,7 +81,11 @@
import { GlassSurface } from "../../components/ui/GlassSurface";
import { ComposerEditor, type ComposerEditorHandle } from "../../components/ComposerEditor";
import { fileRoutePathSegments } from "../files/filePath";
-import { ComposerActionButton, ComposerToolbarRow } from "../../components/ComposerToolbar";
+import {
+ ComposerActionButton,
+ ComposerInlineControl,
+ ComposerToolbarRow,
+} from "../../components/ComposerToolbar";
import { ComposerModelControl } from "../../components/ComposerModelControl";
import {
composerStripAttachments,
@@ -254,6 +258,7 @@
readonly onShowUsageLimits: (report: UsageLimitsReport | null) => void;
readonly canSwitchProvider: boolean;
readonly onUpdateInteractionMode?: (interactionMode: ProviderInteractionMode) => void;
+ readonly persistedInteractionMode?: ProviderInteractionMode;
readonly onHeightChange?: (height: number) => void;
readonly onEditorFocusChange?: (focused: boolean) => void;
@@ -539,6 +544,11 @@
return report !== null;
​
+ const onUpdateInteractionMode =
+ selectedProviderStatus?.showInteractionModeToggle === false
+ ? undefined