Skip to content

Commit 11ec52e

Browse files
committed
Render subagent output inline and fix duplicate notification forwarding
1 parent 5be640e commit 11ec52e

File tree

9 files changed

+1907
-450
lines changed

9 files changed

+1907
-450
lines changed

apps/twig/src/main/services/agent/service.ts

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,30 +1190,8 @@ For git operations while detached:
11901190
}
11911191
}
11921192

1193-
// Forward extension notifications to the renderer as ACP messages
1194-
// The extNotification callback doesn't write to the stream, so we need
1195-
// to manually emit these to the renderer
1196-
if (
1197-
method === "_posthog/sdk_session" ||
1198-
method === "_posthog/status" ||
1199-
method === "_posthog/task_notification" ||
1200-
method === "_posthog/compact_boundary"
1201-
) {
1202-
log.info("Forwarding extension notification to renderer", {
1203-
method,
1204-
taskRunId,
1205-
});
1206-
const acpMessage: AcpMessage = {
1207-
type: "acp_message",
1208-
ts: Date.now(),
1209-
message: {
1210-
jsonrpc: "2.0",
1211-
method,
1212-
params,
1213-
} as AcpMessage["message"],
1214-
};
1215-
emitToRenderer(acpMessage);
1216-
}
1193+
// Extension notifications already flow through the tapped stream
1194+
// (same pattern as sessionUpdate). No need to re-emit here.
12171195
},
12181196
};
12191197

0 commit comments

Comments
 (0)