The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): multi-file patches show every changed file (#29878)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Alex Southwell committed
Nov 3, 2026 at 17:21 UTC
bec3f2d4dd52b01dabb3991e22d5f75fec3d2bc0
2 files changed
+20
-1
apps/mobile/src/lib/threadActivity.test.ts
+19
@@ -18,6 +18,7 @@ import {
18
type OrchestrationV2TurnItem,
19
} from "@t3tools/contracts";
20
import { deriveThreadCheckpointSummaries } from "@t3tools/client-runtime/state/thread-checkpoints";
21
+import { summarizeToolGroup } from "@t3tools/client-runtime/work-log/presentation";
22
import { getReviewSectionIdForCheckpoint } from "../features/review/reviewModel";
23
import * as DateTime from "effect/DateTime";
24
import { describe, expect, it } from "vite-plus/test";
@@ -596,6 +597,24 @@ describe("buildThreadFeed", () => {
597
expect(items[0]).toMatchObject({ output: rawOutput });
598
});
599
600
+ it("counts every file of a multi-file patch", () => {
601
+ const item: OrchestrationV2TurnItem = {
602
+ ...base("multi-file-change", "2026-06-20T00:00:04.000Z", 3),
603
+ type: "file_change",
604
+ fileName: "src/a.ts",
605
+ changes: [
606
+ { operation: "update", path: "src/a.ts" },
607
+ { operation: "add", path: "src/b.ts" },
608
+ { operation: "update", path: "src/renamed.ts", oldPath: "src/original.ts" },
609
+ ],
610
+ };
611
+ const activity = buildThreadFeed([projected(item, 0)]).flatMap((entry) =>
612
+ entry.type === "activity-group" ? entry.activities : [],
613
+ )[0]!;
614
+ expect(workEntryRowLabel(activity.workEntry)).toBe("src/a.ts +2 more");
615
+ expect(summarizeToolGroup([activity.workEntry]).summary).toBe("Changed 3 files");
616
+ });
617
+
618
it("anchors feedback before later committed turns", () => {
619
const laterUser = {
620
...userMessage("2026-08-29T00:00:05.000Z"),
apps/mobile/src/lib/threadActivity.ts
+1
-1
@@ -733,7 +733,7 @@ function toWorkLogEntry(
733
case "file_change":
734
return {
735
...common,
736
- changedFiles: [item.fileName],
736
+ changedFiles: item.changes?.map((change) => change.path) ?? [item.fileName],
737
toolTitle: title ?? "File change",
738
toolData: item,
739
};