The best way to control Claude Code, Codex and more from any computer or phone
test(mobile): a completed render splits the work log into lone-call rows (#21295)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 18, 2026 at 14:09 UTC
eb7b35ac32fb184ec6c8e6e9f84c7ecbba968f4a
1 file changed
+15
-3
apps/mobile/src/lib/threadActivity.test.ts
+15
-3
@@ -2820,13 +2820,25 @@ describe("html renders", () => {
2820
expect(expanded.map((entry) => entry.type)).toEqual([
2821
"message",
2822
"run-fold",
2823
- "work-toggle",
2823
+ "activity-group",
2824
"html-render",
2825
- "work-toggle",
2825
+ "activity-group",
2826
"message",
2827
]);
2828
expect(expanded[3]).toMatchObject({ type: "html-render", render: page, runId });
2829
- expect(expanded[2]?.continuesWorkLog).toBeUndefined();
2829
+ // The render splits the work log, so each command is a lone call with its own group.
2830
+ const callIds = [expanded[2], expanded[4]].map((row) =>
2831
+ row?.type === "activity-group"
2832
+ ? row.activities.map((activity) => activity.projectedItem.item.id)
2833
+ : [],
2834
+ );
2835
+ expect(callIds).toEqual([["item-command"], ["item-command-later"]]);
2836
+ const groupIds = [expanded[2], expanded[4]].map((row) =>
2837
+ row?.type === "activity-group" ? row.activities[0]?.groupStandIn?.groupId : undefined,
2838
+ );
2839
+ expect(groupIds[0]).toBeDefined();
2840
+ expect(groupIds[1]).toBeDefined();
2841
+ expect(groupIds[0]).not.toBe(groupIds[1]);
2842
});
2843
2844
it("keeps a render visible and in order when its run folds", () => {