Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): keep the active-run header with the prompt that started it on steer #11828

Mergedjuliusmarmingemerged 2 commits intot3code/codex-turn-mapping fromrefs/pull/11828/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 53 additions and 5 deletions.

x
0 of 2 viewed, 2 left
42 additions and 0 deletionsapps/web/src/components/chat/MessagesTimeline.logic.test.tsModified
View file
@@ -1347,6 +1347,48 @@
+ it("keeps the working header below the initiating prompt across repeated steers", () => {
+ const runId = RunId.make("steered-run");
+ const startedAt = "2026-01-01T00:00:00Z";
+ const prompt = (id: string, inputIntent: "steer" | "send") => ({
+ id,
+ kind: "message" as const,
+ createdAt: startedAt,
+ message: {
+ id: MessageId.make(id),
+ role: "user" as const,
+ text: id,
+ runId,
+ ...(inputIntent === "steer" ? { inputIntent } : {}),
+ createdAt: startedAt,
+ updatedAt: startedAt,
+ streaming: false,
+ },
+ });
+ const timelineEntries = [prompt("initial-prompt", "send")];
+ for (let index = 0; index < 3; index += 1) {
+ const rows = deriveMessagesTimelineRows({
+ timelineEntries,
+ latestRun: { runId, status: "running", startedAt, completedAt: null },
+ isWorking: true,
+ activeTurnStartedAt: startedAt,
+ turnDiffSummaries: [],