Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUva0af9afd362c
diff --git a/.claude/helpers/context-persistence-hook.mjs b/.claude/helpers/context-persistence-hook.mjs
index 5f6e54d254..29631954c4 100644
--- a/.claude/helpers/context-persistence-hook.mjs
+++ b/.claude/helpers/context-persistence-hook.mjs
@@ -734,7 +734,16 @@ function parseTranscript(transcriptPath) {
const messages = [];
for (const line of lines) {
try {
- messages.push(JSON.parse(line));
+ const parsed = JSON.parse(line);
+ // SDK transcript wraps messages: { type: "user"|"A", message: { role, content } }
+ // Unwrap to get the inner API message with role/content
+ if (parsed.message && parsed.message.role) {
+ messages.push(parsed.message);
+ } else if (parsed.role) {
+ // Already in API message format (e.g. from tests)
+ messages.push(parsed);
+ }
+ // Skip non-message entries (progress, file-history-snapshot, queue-operation)
} catch { /* skip malformed lines */ }
}
return messages;