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

fix(memory-import): resolve Win32 cwd to Claude Code's slug (#1939) (#1962)

rUv4e6822fa8dcd
diff --git a/v3/@claude-flow/cli/src/mcp-tools/memory-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/memory-tools.ts
index 7cdd42fa2d..f7fd3f6d55 100644
--- a/v3/@claude-flow/cli/src/mcp-tools/memory-tools.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/memory-tools.ts
@@ -135,6 +135,16 @@ function resolveProjectMemoryDir(claudeProjectsDir: string, projectPathOverride?
// Candidate 4: spaces replaced with dashes (Claude Code's space rule)
candidates.add(source.replace(/\//g, '-').replace(/ /g, '-'));
+
+ // Candidate 5 (#1939): native Win32 path on a Win32 Claude Code install.
+ // `C:\Users\tobia\OneDrive\Desktop\Claude Stuff` →
+ // `C--Users-tobia-OneDrive-Desktop-Claude-Stuff`. Claude Code's on-disk
+ // slug replaces drive-colon AND backslashes AND whitespace with `-`.
+ // The earlier candidates only handled forward slashes, so a Win32+Win32
+ // setup never matched.
+ if (/^[A-Za-z]:[\\/]/.test(source)) {
+ candidates.add(source.replace(/[:\\/]/g, '-').replace(/\s+/g, '-'));
+ }
}
for (const projectHash of candidates) {