File tree Expand file tree Collapse file tree 2 files changed +1
-34
lines changed
Expand file tree Collapse file tree 2 files changed +1
-34
lines changed Original file line number Diff line number Diff line change @@ -147,25 +147,11 @@ export const MessagesTimeline = memo(function MessagesTimeline({
147147 }
148148
149149 if ( timelineEntry . kind === "work" ) {
150- if ( timelineEntry . entry . display === "timeline-marker" ) {
151- nextRows . push ( {
152- kind : "work" ,
153- id : timelineEntry . id ,
154- createdAt : timelineEntry . createdAt ,
155- groupedEntries : [ timelineEntry . entry ] ,
156- } ) ;
157- continue ;
158- }
159150 const groupedEntries = [ timelineEntry . entry ] ;
160151 let cursor = index + 1 ;
161152 while ( cursor < timelineEntries . length ) {
162153 const nextEntry = timelineEntries [ cursor ] ;
163- if (
164- ! nextEntry ||
165- nextEntry . kind !== "work" ||
166- nextEntry . entry . display === "timeline-marker"
167- )
168- break ;
154+ if ( ! nextEntry || nextEntry . kind !== "work" ) break ;
169155 groupedEntries . push ( nextEntry . entry ) ;
170156 cursor += 1 ;
171157 }
@@ -328,21 +314,6 @@ export const MessagesTimeline = memo(function MessagesTimeline({
328314 ( ( ) => {
329315 const groupId = row . id ;
330316 const groupedEntries = row . groupedEntries ;
331- const markerEntry =
332- groupedEntries . length === 1 && groupedEntries [ 0 ] ?. display === "timeline-marker"
333- ? groupedEntries [ 0 ]
334- : null ;
335- if ( markerEntry ) {
336- return (
337- < div className = "my-3 flex items-center gap-3" >
338- < span className = "h-px flex-1 bg-border" />
339- < span className = "rounded-full border border-border bg-background px-2.5 py-1 text-[10px] uppercase tracking-[0.14em] text-muted-foreground/80" >
340- { markerEntry . label }
341- </ span >
342- < span className = "h-px flex-1 bg-border" />
343- </ div >
344- ) ;
345- }
346317 const isExpanded = expandedWorkGroups [ groupId ] ?? false ;
347318 const hasOverflow = groupedEntries . length > MAX_VISIBLE_WORK_LOG_ENTRIES ;
348319 const visibleEntries =
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ export interface WorkLogEntry {
4040 command ?: string ;
4141 changedFiles ?: ReadonlyArray < string > ;
4242 tone : "thinking" | "tool" | "info" | "error" ;
43- display ?: "timeline-marker" ;
4443 toolTitle ?: string ;
4544 itemType ?: ToolLifecycleItemType ;
4645 requestKind ?: PendingApproval [ "requestKind" ] ;
@@ -523,9 +522,6 @@ function toDerivedWorkLogEntry(activity: OrchestrationThreadActivity): DerivedWo
523522 if ( requestKind ) {
524523 entry . requestKind = requestKind ;
525524 }
526- if ( activity . kind === "context-compaction" ) {
527- entry . display = "timeline-marker" ;
528- }
529525 const collapseKey = deriveToolLifecycleCollapseKey ( entry ) ;
530526 if ( collapseKey ) {
531527 entry . collapseKey = collapseKey ;
You can’t perform that action at this time.
0 commit comments