Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): discard abandoned Codex replies after reconnecting #46778

Mergedwangfeng87(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/46778/headmerged by juliusmarminge View on GitHub

Showing 8 changed files with 113 additions and 2 deletions (loading 5).

x
0 of 8 viewed, 8 left
13 additions and 0 deletionsapps/mobile/src/lib/threadActivity.test.tsModified
View file
@@ -504,6 +504,19 @@
​
describe("buildThreadFeed", () => {
+ it("hides a withdrawn reply after its replacement completes", () => {
+ const reply = assistantMessage();
+ const withdrawn: OrchestrationV2TurnItem = {
+ ...reply,
+ ...base("item-draft", "2026-06-20T00:00:02.000Z", 1),
+ messageId: MessageId.make("message-draft"),
+ status: "cancelled",
+ text: "",
+ };
+ const feed = buildThreadFeed([projected(withdrawn, 0), projected(reply, 1)]);
+ expect(feed).toMatchObject([{ type: "message", message: { text: "Done" } }]);
+ });
+​
it("times a run from its own rows when the prompt above it is another run's", () => {
// After a jump leaves a gap, the rows below it can start mid-run, under an older prompt.
const later = RunId.make("run-2");
5 additions and 1 deletionapps/mobile/src/lib/threadActivity.tsModified
View file
@@ -3,7 +3,10 @@
ThreadPendingUserInput,
} from "@t3tools/client-runtime/state/thread-requests";
import { linkRequestTargetName } from "@t3tools/client-runtime/link-request";
-import { turnItemIsWorkspacePreparation } from "@t3tools/client-runtime/state/turn-item-presentation";
+import {