@@ -59,6 +59,7 @@ import {
5959 type ScheduledTaskId ,
6060 type ScopedThreadRef ,
6161} from "@t3tools/contracts" ;
62+ import type { ToolCallVisibility } from "@t3tools/contracts/settings" ;
6263import { renderAssistantCitationsAsText } from "@t3tools/shared/assistantCitations" ;
6364import { encodeComposerContextFragment } from "@t3tools/shared/composerContextClipboard" ;
6465import { hostedThreadLink , parseThreadLinkHref } from "@t3tools/shared/threadLinks" ;
@@ -268,9 +269,6 @@ import { appAtomRegistry } from "../../state/atom-registry";
268269import { environmentThreadShells , threadEnvironment } from "../../state/threads" ;
269270import { ThreadWorkflowOpening , useWorkflowOpening } from "./thread-workflow-opening" ;
270271import { useAtomCommand } from "../../state/use-atom-command" ;
271- import { mobilePreferencesAtom } from "../../state/preferences" ;
272- import { useAtomValue } from "@effect/atom-react" ;
273- import { AsyncResult } from "effect/reactivity" ;
274272import { useV2ItemSupport } from "../../state/v2-item-support" ;
275273import {
276274 fileRoutePathSegments ,
@@ -344,6 +342,7 @@ export interface ThreadFeedHandle {
344342}
345343
346344export interface ThreadFeedProps {
345+ readonly toolCallVisibility ?: ToolCallVisibility ;
347346 readonly worktreeSetup ?: WorktreeSetupCardProps | null ;
348347 readonly setupWorkingStartedAt ?: string | null ;
349348 readonly queuedMessages : ReadonlyArray < QueuedThreadMessage > ;
@@ -2587,10 +2586,6 @@ function useThreadFeedPresentation(
25872586 revealedMessageId : MessageId | null ,
25882587) {
25892588 const [ feedCache ] = useState ( createThreadFeedCache ) ;
2590- const preferences = useAtomValue ( mobilePreferencesAtom ) ;
2591- const toolCallVisibility = AsyncResult . isSuccess ( preferences )
2592- ? ( preferences . value . toolCallVisibility ?? "showAll" )
2593- : "showAll" ;
25942589 return appendPendingThreadMessages (
25952590 deriveThreadFeedPresentation (
25962591 props . feed ,
@@ -2604,7 +2599,7 @@ function useThreadFeedPresentation(
26042599 props . activeWorkStartedAt ,
26052600 props . runlessWorkActive ?? false ,
26062601 feedCache ,
2607- { toolCallVisibility, revealedMessageId } ,
2602+ { toolCallVisibility : props . toolCallVisibility ?? "showAll" , revealedMessageId } ,
26082603 ) ,
26092604 props . feed ,
26102605 props . queuedMessages ,
0 commit comments