From 7297b0a8e38290aafb9af84144fb0bedbfd5f6d5 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Sun, 9 Aug 2026 19:53:14 -0700 Subject: [PATCH] [eric] agents: the CLI's own auto-memory is disabled on every spawn, so memories stop landing in per-chat buckets and MemoryRead/MemoryWrite on the shared store is the one memory surface --- backend/apps/agents/manager/run/RunOptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/apps/agents/manager/run/RunOptions.py b/backend/apps/agents/manager/run/RunOptions.py index 4f32d68a..f2ce7e05 100644 --- a/backend/apps/agents/manager/run/RunOptions.py +++ b/backend/apps/agents/manager/run/RunOptions.py @@ -205,6 +205,8 @@ class RunOptions(AgentManagerProtocol): await configure_provider_env( options_kwargs, session, resolved_model, api_type, global_settings ) + # The CLI's own auto-memory keys its directory on cwd, and every chat has its own workspace cwd, so it silently files memories into per-chat buckets no other chat reads; MemoryRead/MemoryWrite on the shared store is the one memory surface (ENG-222). + options_kwargs.setdefault("env", {})["CLAUDE_CODE_DISABLE_AUTO_MEMORY"] = "1" logger.info(f"[SPAWN-PHASE] provider-env done session={session_id[:8]} t={time.monotonic():.3f}") if mcp_servers: options_kwargs["mcp_servers"] = mcp_servers