@@ -36,11 +36,8 @@ import {
3636} from "@t3tools/client-runtime/user-message" ;
3737import { canForkProjectedAssistantItem } from "@t3tools/client-runtime/state/thread-workflows" ;
3838import {
39- coordinationItemHeader ,
40- coordinationItemPreview ,
4139 FINISHED_WITHOUT_USER_UPDATE_NOTICE ,
4240 pendingDeliveryLabel ,
43- coordinationItemText ,
4441} from "@t3tools/client-runtime/state/thread-communication" ;
4542import type { ThreadCheckpointSummary } from "@t3tools/client-runtime/state/thread-checkpoints" ;
4643import { formatDiffCount } from "@t3tools/client-runtime/diff-count" ;
@@ -124,7 +121,6 @@ import {
124121 type NativeScrollEvent ,
125122 type NativeSyntheticEvent ,
126123 Pressable ,
127- ScrollView ,
128124 StyleSheet ,
129125 type ColorValue ,
130126 useWindowDimensions ,
@@ -250,7 +246,6 @@ import {
250246} from "../../state/entities" ;
251247import { useThreadSelection } from "../../state/use-thread-selection" ;
252248import { useEnvironmentQuery } from "../../state/query" ;
253- import { useTurnItemDetail } from "../../state/queries" ;
254249import { serverEnvironment } from "../../state/server" ;
255250import { composerDocumentAttachmentRecord } from "../../lib/composerContext" ;
256251import * as Option from "effect/Option" ;
@@ -344,8 +339,6 @@ export interface ThreadFeedProps {
344339 readonly threadTitle : string ;
345340 readonly workspaceRoot ?: string | null ;
346341 readonly feed : ReadonlyArray < ThreadFeedEntry > ;
347- readonly coordinationItems ?: ReadonlyArray < OrchestrationV2ProjectedTurnItem > ;
348- readonly communicationLanesEnabled ?: boolean ;
349342 readonly finishedWithoutUserUpdate ?: boolean ;
350343 readonly pendingHandoff ?: HandoffEndpoints | null ;
351344 readonly contentPresentation : ThreadContentPresentation ;
@@ -2115,17 +2108,6 @@ export const ThreadFeed = memo(function ThreadFeed({
21152108 ...props
21162109} : ThreadFeedProps & { readonly ref ?: Ref < ThreadFeedHandle > } ) {
21172110 const { listRef, onEndFollowEnabledChange, onHeaderMaterialVisibilityChange } = props ;
2118- const [ coordinationOpen , setCoordinationOpen ] = useState ( false ) ;
2119- const [ coordinationVisibleCount , setCoordinationVisibleCount ] = useState ( 100 ) ;
2120- const [ selectedCoordinationId , setSelectedCoordinationId ] = useState < string | null > ( null ) ;
2121- const selectedCoordinationItem = coordinationOpen
2122- ? props . coordinationItems ?. find ( ( { item } ) => item . id === selectedCoordinationId )
2123- : undefined ;
2124- const coordinationDetail = useTurnItemDetail (
2125- selectedCoordinationItem
2126- ? { environmentId : props . environmentId , row : selectedCoordinationItem }
2127- : null ,
2128- ) ;
21292111 const workflowOpening = useWorkflowOpening ( props . environmentId , props . threadId ) ;
21302112 const guestThreadRef = useMemo (
21312113 ( ) => scopeThreadRef ( props . environmentId , props . threadId ) ,
@@ -3168,83 +3150,6 @@ export const ThreadFeed = memo(function ThreadFeed({
31683150 return (
31693151 < PresentationSource identifier = { fileShareSourceIdentifier } style = { { flex : 1 } } >
31703152 < View className = "flex-1" onLayout = { handleViewportLayout } >
3171- { props . communicationLanesEnabled ? (
3172- < View className = "border-b border-border bg-background" >
3173- { props . finishedWithoutUserUpdate ? (
3174- < Text className = "px-5 pt-2 text-xs text-foreground-muted" >
3175- { FINISHED_WITHOUT_USER_UPDATE_NOTICE }
3176- </ Text >
3177- ) : null }
3178- < Pressable
3179- accessibilityRole = "button"
3180- accessibilityLabel = { `Coordination activity, ${ props . coordinationItems ?. length ?? 0 } items` }
3181- onPress = { ( ) => setCoordinationOpen ( ( open ) => ! open ) }
3182- className = "px-5 py-3"
3183- >
3184- < Text className = "text-xs font-t3-medium text-foreground-muted" >
3185- Coordination ({ props . coordinationItems ?. length ?? 0 } ) · Compatibility mode{ " " }
3186- { coordinationOpen ? "▴" : "▾" }
3187- </ Text >
3188- </ Pressable >
3189- { coordinationOpen ? (
3190- < ScrollView
3191- nestedScrollEnabled
3192- style = { { maxHeight : 280 } }
3193- className = "border-t border-border px-5 py-2"
3194- >
3195- { ( props . coordinationItems ?. length ?? 0 ) === 0 ? (
3196- < Text className = "text-xs text-foreground-muted" >
3197- No coordination activity yet.
3198- </ Text >
3199- ) : (
3200- < >
3201- { ( props . coordinationItems ?. length ?? 0 ) > coordinationVisibleCount ? (
3202- < Pressable
3203- accessibilityRole = "button"
3204- onPress = { ( ) => setCoordinationVisibleCount ( ( count ) => count + 100 ) }
3205- className = "pb-3"
3206- >
3207- < Text className = "text-xs text-foreground-muted" >
3208- Show earlier coordination activity
3209- </ Text >
3210- </ Pressable >
3211- ) : null }
3212- { props . coordinationItems ?. slice ( - coordinationVisibleCount ) . map ( ( { item } ) => (
3213- < View key = { item . id } className = "mb-3" >
3214- < Pressable
3215- accessibilityRole = "button"
3216- accessibilityState = { { expanded : selectedCoordinationId === item . id } }
3217- onPress = { ( ) =>
3218- setSelectedCoordinationId ( ( id ) => ( id === item . id ? null : item . id ) )
3219- }
3220- >
3221- < Text className = "text-xs font-t3-medium text-foreground-muted" >
3222- { coordinationItemHeader ( item ) }
3223- </ Text >
3224- < Text className = "text-xs text-foreground" >
3225- { coordinationItemPreview ( item ) }
3226- </ Text >
3227- </ Pressable >
3228- { selectedCoordinationId === item . id ? (
3229- < View className = "mt-2 rounded border border-border p-2" >
3230- < Text className = "text-xs text-foreground" selectable >
3231- { coordinationDetail . isPending
3232- ? "Loading full activity…"
3233- : ( coordinationDetail . error ??
3234- ( coordinationDetail . data ?. item
3235- ? coordinationItemText ( coordinationDetail . data . item )
3236- : "Full activity unavailable." ) ) }
3237- </ Text >
3238- </ View >
3239- ) : null }
3240- </ View >
3241- ) ) }
3242- </ >
3243- ) }
3244- </ ScrollView >
3245- ) : null }
3246- </ View >
3247- ) : null }
32483153 < View className = "flex-1" >
32493154 { /* oxlint-disable-next-line t3code/require-registered-list-scroll -- ThreadFeedScrollView is passed through the iOS-only spread below; the prop rejects undefined. */ }
32503155 < KeyboardAwareLegendList
@@ -3357,15 +3262,22 @@ export const ThreadFeed = memo(function ThreadFeed({
33573262 </ >
33583263 }
33593264 ListFooterComponent = {
3360- props . pendingHandoff ? (
3361- < ThreadHandoffDivider
3362- environmentId = { props . environmentId }
3363- endpoints = { props . pendingHandoff }
3364- iconColor = { iconSubtleColor }
3365- surfaceColor = { screenColor }
3366- label = "Context handoff pending"
3367- />
3368- ) : null
3265+ < >
3266+ { props . pendingHandoff ? (
3267+ < ThreadHandoffDivider
3268+ environmentId = { props . environmentId }
3269+ endpoints = { props . pendingHandoff }
3270+ iconColor = { iconSubtleColor }
3271+ surfaceColor = { screenColor }
3272+ label = "Context handoff pending"
3273+ />
3274+ ) : null }
3275+ { props . finishedWithoutUserUpdate ? (
3276+ < Text className = "py-2 text-xs text-foreground-muted" >
3277+ { FINISHED_WITHOUT_USER_UPDATE_NOTICE }
3278+ </ Text >
3279+ ) : null }
3280+ </ >
33693281 }
33703282 contentContainerStyle = { {
33713283 paddingTop : FEED_PADDING_TOP ,
0 commit comments