The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 00:30 UTC
fix(server): Pi extension notifications render as notices, not tool calls (#15368)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
blue-az committed
Oct 19, 2026 at 18:57 UTC
29badb43acc8fd468672bf11cd029cb7aa084429
3 files changed
+17
-13
apps/mobile/src/features/threads/thread-work-log.tsx
+1
-1
@@ -1098,7 +1098,7 @@ const ThreadWorkLogRow = function ThreadWorkLogRow(
1098
<WorkLogLabel
1099
tone={isUsageLimit ? "warning" : iconIsDestructive ? "danger" : "default"}
1100
>
1101
- {isSystemNotice ? row.summary : displayText}
1101
+ {displayText}
1102
{answerPreview ? (
1103
<Text
1104
className={
packages/provider-pi/src/server/adapter.test.ts
+13
-5
@@ -1116,10 +1116,7 @@ describe("PiAdapterV2", () => {
1116
message: "Ordering barrier",
1117
});
1118
yield* takeEvent(
1119
- (event) =>
1120
- event.type === "turn_item.updated" &&
1121
- event.turnItem.type === "dynamic_tool" &&
1122
- event.turnItem.toolName === "notify",
1119
+ (event) => event.type === "turn_item.updated" && event.turnItem.type === "system_notice",
1120
);
1121
assert.equal(runtime.providerSession.status, "running");
1122
fake.queueState({ isStreaming: true });
@@ -2673,10 +2670,21 @@ describe("PiAdapterV2", () => {
2670
type: "extension_ui_request",
2671
id: "ui-cmd",
2672
method: "notify",
2676
- message: "done",
2673
+ message: "Command finished\nwith details",
2674
notifyType: "info",
2675
});
2676
yield* fake.emit({ type: "response", command: "prompt", success: true });
2677
+ const notice = yield* takeEvent(
2678
+ (event) =>
2679
+ (event.type === "turn_item.updated" && event.turnItem.type === "system_notice") ||
2680
+ event.type === "turn.terminal",
2681
+ );
2682
+ assert.isTrue(
2683
+ notice.type === "turn_item.updated" &&
2684
+ notice.turnItem.type === "system_notice" &&
2685
+ notice.turnItem.status === "completed" &&
2686
+ notice.turnItem.message === "Command finished\nwith details",
2687
+ );
2688
const terminal = yield* takeEvent((event) => event.type === "turn.terminal");
2689
assert.isTrue(terminal.type === "turn.terminal" && terminal.status === "completed");
2690
}).pipe(Effect.scoped, Effect.provide(layerTest)),
packages/provider-pi/src/server/adapter.ts
+3
-7
@@ -1237,13 +1237,9 @@ export const makePiAdapterV2 = Effect.fn("makePiAdapterV2")(function* (
1237
...baseItemFields(turn, nativeItemId, emittedAt, emittedAt),
1238
status: "completed",
1239
completedAt: emittedAt,
1240
- title: "notify",
1241
- type: "dynamic_tool",
1242
- toolName: "notify",
1243
- input: {
1244
- message,
1245
- notifyType: recordString(event, "notifyType") ?? "info",
1246
- },
1240
+ title: message,
1241
+ type: "system_notice",
1242
+ message,
1243
},
1244
});
1245
return;