@@ -22,8 +22,6 @@ import { serverEnvironment } from "../../state/server";
2222import { useAtomCommand } from "../../state/use-atom-command" ;
2323import { SettingsSection } from "./components/SettingsSection" ;
2424import { SettingsSwitchRow } from "./components/SettingsSwitchRow" ;
25- import { ListChoiceRow } from "../../components/ui/ListChoiceRow" ;
26- import type { ToolCallVisibility } from "@t3tools/contracts/settings" ;
2725import { SettingsScreen } from "./components/SettingsScreen" ;
2826import { planAutoSettleSettingsSync , type AutoSettleSettings } from "./autoSettleSettingsSync" ;
2927import { useSettingsEnvironmentFilter } from "./settings-environment-filter" ;
@@ -45,7 +43,6 @@ export function SettingsLabsRouteScreen() {
4543 contentContainerClassName = "gap-6 px-5 pt-4"
4644 contentContainerStyle = { { paddingBottom : Math . max ( insets . bottom , 18 ) + 18 } }
4745 >
48- < ToolCallVisibilitySection />
4946 < MachineBetaSection
5047 title = "Linked environments"
5148 icon = "link"
@@ -60,7 +57,6 @@ export function SettingsLabsRouteScreen() {
6057 setting = "fastWorktreeCheckout"
6158 description = "On a Mac, clone new worktrees from a checkout cached in the T3 home folder instead of writing every file. Uses Git’s normal checkout when it can’t. Turning it off deletes the cache."
6259 />
63- < LegacySettingsSection />
6460 </ ScrollView >
6561 </ SettingsScreen >
6662 ) ;
@@ -303,66 +299,3 @@ function MachineBetaSection({
303299 </ View >
304300 ) ;
305301}
306-
307- const TOOL_CALL_VISIBILITY_OPTIONS : ReadonlyArray < {
308- readonly value : ToolCallVisibility ;
309- readonly label : string ;
310- } > = [
311- { value : "showAll" , label : "Show all" } ,
312- { value : "hideSuccessful" , label : "Hide successful" } ,
313- { value : "hideAll" , label : "Hide all" } ,
314- { value : "zen" , label : "Zen" } ,
315- ] ;
316-
317- function ToolCallVisibilitySection ( ) {
318- const savePreferences = useAtomSet ( updateMobilePreferencesAtom ) ;
319- const preferences = useAtomValue ( mobilePreferencesAtom ) ;
320- const selected = AsyncResult . isSuccess ( preferences )
321- ? ( preferences . value . toolCallVisibility ?? "showAll" )
322- : null ;
323-
324- return (
325- < View className = "gap-3" >
326- < SettingsSection title = "Beta: Tool calls in chat" >
327- { TOOL_CALL_VISIBILITY_OPTIONS . map ( ( option , index ) => (
328- < ListChoiceRow
329- key = { option . value }
330- label = { option . label }
331- selected = { selected === option . value }
332- separated = { index > 0 }
333- disabled = { selected === null }
334- onPress = { ( ) => savePreferences ( { toolCallVisibility : option . value } ) }
335- />
336- ) ) }
337- </ SettingsSection >
338- < Text className = "px-2 text-sm text-foreground-muted" >
339- Hide the commands, edits, and searches agents run. Hide successful keeps failures. Zen shows
340- only final answers. Approvals, questions, and errors always show.
341- </ Text >
342- </ View >
343- ) ;
344- }
345-
346- function LegacySettingsSection ( ) {
347- const savePreferences = useAtomSet ( updateMobilePreferencesAtom ) ;
348- const preferences = useAtomValue ( mobilePreferencesAtom ) ;
349- const planModeEnabled =
350- AsyncResult . isSuccess ( preferences ) && preferences . value . planModeEnabled === true ;
351-
352- return (
353- < View className = "gap-3" >
354- < SettingsSection title = "Legacy" >
355- < SettingsSwitchRow
356- icon = "hammer"
357- label = "Plan Mode"
358- value = { planModeEnabled }
359- onValueChange = { ( value ) => savePreferences ( { planModeEnabled : value } ) }
360- />
361- </ SettingsSection >
362- < Text className = "px-2 text-sm text-foreground-muted" >
363- Opt into retired interfaces kept for compatibility. Plan Mode restores the Build/Plan
364- control; otherwise every task runs in Build mode.
365- </ Text >
366- </ View >
367- ) ;
368- }
0 commit comments