@@ -236,6 +236,9 @@ function deriveTurnFolds(input: {
236236
237237 const foldsByAnchorEntryId = new Map < string , TurnFold > ( ) ;
238238 for ( const [ turnId , group ] of groupsByTurnId ) {
239+ if ( turnId === input . unsettledTurnId ) {
240+ continue ;
241+ }
239242 if ( group . hasStreamingMessage ) {
240243 continue ;
241244 }
@@ -257,8 +260,6 @@ function deriveTurnFolds(input: {
257260
258261 const isLatestInterruptedTurn =
259262 input . latestTurn ?. turnId === turnId && input . latestTurn . state === "interrupted" ;
260- const isLatestRunningTurn =
261- input . latestTurn ?. turnId === turnId && input . latestTurn . state === "running" ;
262263 // A turn cut short by a steer leaves trailing work entries behind its
263264 // terminal message — take whichever ended last.
264265 const lastEntryEnd =
@@ -276,15 +277,13 @@ function deriveTurnFolds(input: {
276277 lastEntryEnd ,
277278 ) ;
278279 const duration = elapsedMs !== null ? formatDuration ( elapsedMs ) : null ;
279- const label = isLatestRunningTurn
280- ? "Working"
281- : isLatestInterruptedTurn
282- ? duration
283- ? `You stopped after ${ duration } `
284- : "You stopped this response"
285- : duration
286- ? `Worked for ${ duration } `
287- : "Worked" ;
280+ const label = isLatestInterruptedTurn
281+ ? duration
282+ ? `You stopped after ${ duration } `
283+ : "You stopped this response"
284+ : duration
285+ ? `Worked for ${ duration } `
286+ : "Worked" ;
288287
289288 foldsByAnchorEntryId . set ( firstEntry . id , {
290289 turnId,
0 commit comments