Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): persist late Claude tool results after turn finalize #7192

Closedmaslinedwin(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/7192/headopened View on GitHub

Showing 8 changed files with 191 additions and 2 deletions (loading 6).

x
0 of 8 viewed, 8 left
148 additions and 0 deletionsapps/mobile/src/lib/threadActivity.test.tsModified
View file
@@ -274,6 +274,154 @@
});
​
+ it("merges a late tool result into the completed work-log row", () => {
+ const thread = makeThread({
+ id: ThreadId.make("thread-late-tool"),
+ projectId: ProjectId.make("project-1"),
+ title: "Late tool result",
+ latestTurn: {
+ turnId: TurnId.make("turn-1"),
+ state: "completed",
+ requestedAt: "2026-04-01T00:00:00.000Z",
+ startedAt: "2026-04-01T00:00:01.000Z",
+ completedAt: "2026-04-01T00:00:03.000Z",
+ assistantMessageId: null,
+ },
+ activities: [
+ makeActivity({
+ id: EventId.make("tool-force-complete"),
+ kind: "tool.completed",
+ tone: "tool",
+ summary: "Grep",
+ createdAt: "2026-04-01T00:00:01.000Z",
+ turnId: TurnId.make("turn-1"),
+ payload: {
+ title: "Grep",
+ itemType: "dynamic_tool_call",
+ data: {
+ toolCallId: "tool-late-1",