Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(chat): prevent duplicate statuses and timeline ID collisions #10602

Closeddominic-r(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/10602/headopened View on GitHub

Showing 7 changed files with 98 additions and 17 deletions (loading 5).

x
0 of 7 viewed, 7 left
85 additions and 12 deletionsapps/mobile/src/lib/threadActivity.test.tsModified
View file
@@ -291,6 +291,75 @@
​
describe("buildThreadFeed", () => {
+ it.each([false, true])("preserves an async answer with its turn expanded=%s", (expanded) => {
+ const createdAt = "2026-09-07T12:00:00.000Z";
+ const turnId = TurnId.make("answer-turn");
+ const message = {
+ id: MessageId.make("async-answer:question"),
+ role: "user" as const,
+ text: "Which option?\nAlpha",
+ turnId: null,
+ createdAt,
+ updatedAt: createdAt,
+ streaming: false,
+ };
+ const thread = makeThread({
+ id: ThreadId.make("async-answer"),
+ projectId: ProjectId.make("project-1"),
+ title: "Answered question",
+ messages: [message],
+ activities: [
+ makeActivity({
+ id: EventId.make(message.id),
+ kind: "user-input.resolved",
+ summary: "User input submitted",
+ createdAt,
+ turnId,
+ }),
+ ],