@@ -18,9 +18,11 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
1818import { AndroidSheetHeader } from "../../components/AndroidScreenHeader" ;
1919import { AppText as Text } from "../../components/AppText" ;
2020import { SymbolView } from "../../components/AppSymbol" ;
21+ import { MaterialScreenContent } from "../../components/MaterialScreenContent" ;
2122import { useUniwindTheme } from "../../lib/useUniwindTheme" ;
2223import { environmentThreadDetails } from "../../state/threads" ;
2324import { nativeHeaderScrollEdgeEffects } from "../../native/StackHeader" ;
25+ import { useAdaptiveWorkspaceLayout } from "../layout/AdaptiveWorkspaceLayout" ;
2426import { resolveSubagentRowPresentation } from "./threadAgentsPresentation" ;
2527
2628import { SubagentStatusDot } from "./SubagentStatusDot" ;
@@ -34,6 +36,7 @@ export function useThreadTurnSubagents(target: AgentsTarget): ThreadTurnSubagent
3436}
3537
3638export function ThreadAgentsSheet ( { route } : StaticScreenProps < AgentsTarget > ) {
39+ const { layout } = useAdaptiveWorkspaceLayout ( ) ;
3740 const target = route . params ;
3841 const navigation = useNavigation ( ) ;
3942 const insets = useSafeAreaInsets ( ) ;
@@ -115,7 +118,9 @@ export function ThreadAgentsSheet({ route }: StaticScreenProps<AgentsTarget>) {
115118 return (
116119 < View collapsable = { false } className = "flex-1 bg-sheet" >
117120 < AndroidSheetHeader title = "Agents" onBack = { ( ) => navigation . goBack ( ) } />
118- { content }
121+ < MaterialScreenContent insetHorizontal = { layout . usesSplitView } >
122+ { content }
123+ </ MaterialScreenContent >
119124 </ View >
120125 ) ;
121126}
0 commit comments