Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): classify ACP Task tool calls as collab agent tool calls #8443

ClosedNoahLinckeScout(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/8443/headopened View on GitHub

Showing 4 changed files with 228 additions and 4 deletions (loading 1).

x
0 of 4 viewed, 4 left
133 additions and 0 deletionsapps/mobile/src/lib/threadActivity.test.tsModified
View file
@@ -3289,6 +3289,139 @@
+ it("renders a collab agent tool call as agent work, not generic tool noise", () => {
+ // The server's ACP Task-tool reclassification means Cursor/Grok subagent
+ // launches arrive with this itemType. Grouping them with
+ // `dynamic_tool_call`'s hammer is how invisible delegated work stays
+ // invisible on mobile: every other surface reads this type as an agent.
+ const turnId = TurnId.make("turn-collab-agent");
+ const thread = makeThread({
+ id: ThreadId.make("thread-collab-agent"),
+ projectId: ProjectId.make("project-1"),
+ title: "Collab agent work",
+ latestTurn: {
+ turnId,
+ 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("collab-agent-completed"),
+ kind: "tool.completed",
+ tone: "tool",
+ summary: "Task: Subagent task",
+ createdAt: "2026-04-01T00:00:02.000Z",
+ turnId,