fix(web): keep the active-run header with the prompt that started it on steer #11828
Mergedjuliusmarmingemerged 2 commits into
t3code/codex-turn-mapping fromrefs/pull/11828/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
- apps/web/src/components/chat/MessagesTimeline.logic.ts line 1012OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -1000,10 +1000,13 @@10001000 entry.toolLifecycleStatus === "inProgress" &&10011001 entry.runId === unsettledRunId;100210021003- // The active run's header row ("Working for ...") anchors right after the1004- // latest user message or notification, or at the run's first owned work entry when one1005- // already rendered above it.1003+ // A steer continues the current turn. Keep its elapsed-time header below1004+ // the initiating prompt (or automatic wake), rather than moving it down.10061005 let activeTurnHeaderIndex = input.timelineEntries.length;10071006 if (input.isWorking) {1008- const latestResponseBoundaryIndex = lastResponseBoundaryIndex(input.timelineEntries);1009- activeTurnHeaderIndex = latestResponseBoundaryIndex + 1;1007+ activeTurnHeaderIndex =1008+ input.timelineEntries.findLastIndex(1009+ (entry) =>1010+ (entry.kind === "message" &&1011+ entry.message.role === "user" &&1012+ entry.message.inputIntent !== "steer") ||
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge merged this
juliusmarminge closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed