Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): a Labs setting hides tool calls so threads read like a chat #30000

Mergedflamboh(GitHub profile, opens in a new tab)merged 17 commits intomain fromrefs/pull/30000/headmerged by maria-rcks View on GitHub

Showing 19 changed files with 62 additions and 1 deletion (loading 16).

x
0 of 19 viewed, 19 left
43 additions and 0 deletionsapps/mobile/src/features/settings/ThreadSettingsSections.tsxModified
View file
@@ -21,6 +21,8 @@
import { useAtomCommand } from "../../state/use-atom-command";
import { SettingsSection } from "./components/SettingsSection";
import { SettingsSwitchRow } from "./components/SettingsSwitchRow";
+import { ListChoiceRow } from "../../components/ui/ListChoiceRow";
+import type { ToolCallVisibility } from "@t3tools/contracts/settings";
import { SettingsScreen } from "./components/SettingsScreen";
import { planAutoSettleSettingsSync, type AutoSettleSettings } from "./autoSettleSettingsSync";
import { useSettingsEnvironmentFilter } from "./settings-environment-filter";
@@ -42,6 +44,7 @@
contentContainerClassName="gap-6 px-5 pt-4"
contentContainerStyle={{ paddingBottom: Math.max(insets.bottom, 18) + 18 }}
+ <ToolCallVisibilitySection />
<BetaSettingsSection />
<LegacySettingsSection />
</ScrollView>
@@ -271,6 +274,46 @@
​
+const TOOL_CALL_VISIBILITY_OPTIONS: ReadonlyArray<{
+ readonly value: ToolCallVisibility;
+ readonly label: string;
+}> = [
+ { value: "showAll", label: "Show all" },
+ { value: "hideSuccessful", label: "Hide successful" },
+ { value: "hideAll", label: "Hide all" },