adp-openclaw 0.0.63 → 0.0.64
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 +1 -1
- package/src/session-history.ts +6 -1
package/package.json
CHANGED
package/src/session-history.ts
CHANGED
|
@@ -243,8 +243,13 @@ function readSessionTranscript(
|
|
|
243
243
|
if (parsed.type === "session") {
|
|
244
244
|
continue;
|
|
245
245
|
}
|
|
246
|
-
// Extract message if present
|
|
246
|
+
// Extract message if present, skip tool-related roles (toolResult, tool)
|
|
247
247
|
if (parsed.message && parsed.message.role && parsed.message.content) {
|
|
248
|
+
// Filter out tool-related messages for cleaner display
|
|
249
|
+
const role = parsed.message.role;
|
|
250
|
+
if (role === "toolResult" || role === "tool") {
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
248
253
|
const msg: OpenClawMessage = {
|
|
249
254
|
role: parsed.message.role,
|
|
250
255
|
content: extractMessageContent(parsed.message.content),
|