@hienlh/ppm 0.9.16 → 0.9.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1383,10 +1383,10 @@ function parseSessionMessage(msg: { uuid: string; type: string; message: unknown
|
|
|
1383
1383
|
textContent = extractText(message);
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
|
-
// SDK-generated user messages
|
|
1387
|
-
//
|
|
1388
|
-
//
|
|
1389
|
-
if (role === "user" && events.some((e) => e.type === "tool_result")) {
|
|
1386
|
+
// SDK-generated user messages carry system text (tool_result blocks,
|
|
1387
|
+
// <teammate-message> XML, <task-notification> XML) — not actual user input.
|
|
1388
|
+
// Clear so they don't render as user bubbles.
|
|
1389
|
+
if (role === "user" && (events.some((e) => e.type === "tool_result") || textContent.includes("<teammate-message"))) {
|
|
1390
1390
|
textContent = "";
|
|
1391
1391
|
}
|
|
1392
1392
|
|