diff --git a/src/openharness/ui/coordinator_drain.py b/src/openharness/ui/coordinator_drain.py index a5b079d..d9231fe 100644 --- a/src/openharness/ui/coordinator_drain.py +++ b/src/openharness/ui/coordinator_drain.py @@ -134,7 +134,7 @@ async def submit_follow_up( latest_user_prompt=prompt_seed, extra_skill_dirs=bundle.extra_skill_dirs, extra_plugin_roots=bundle.extra_plugin_roots, - include_project_memory=bundle.include_project_memory, + include_project_memory=getattr(bundle, "include_project_memory", True), ) bundle.engine.set_system_prompt(system_prompt) try: diff --git a/tests/test_ohmo/test_gateway.py b/tests/test_ohmo/test_gateway.py index 6ceedb0..6a091c0 100644 --- a/tests/test_ohmo/test_gateway.py +++ b/tests/test_ohmo/test_gateway.py @@ -625,6 +625,7 @@ async def test_runtime_pool_prompt_excludes_project_memory(tmp_path, monkeypatch workspace = tmp_path / ".ohmo-home" initialize_workspace(workspace) add_ohmo_memory_entry(workspace, "personal", "ohmo-only personal fact") + monkeypatch.delenv("CLAUDE_CODE_COORDINATOR_MODE", raising=False) monkeypatch.setenv("OPENHARNESS_CONFIG_DIR", str(tmp_path / "config")) monkeypatch.setenv("OPENHARNESS_DATA_DIR", str(tmp_path / "data")) add_project_memory_entry(tmp_path, "project", "project memory should not leak") diff --git a/tests/test_ohmo/test_prompts.py b/tests/test_ohmo/test_prompts.py index 7496eef..bd8b5b1 100644 --- a/tests/test_ohmo/test_prompts.py +++ b/tests/test_ohmo/test_prompts.py @@ -36,6 +36,7 @@ def test_ohmo_prompt_includes_persona_and_memory(tmp_path: Path): def test_ohmo_runtime_prompt_can_exclude_project_memory(tmp_path: Path, monkeypatch): + monkeypatch.delenv("CLAUDE_CODE_COORDINATOR_MODE", raising=False) monkeypatch.setenv("OPENHARNESS_DATA_DIR", str(tmp_path / "data")) workspace = tmp_path / ".ohmo-home" initialize_workspace(workspace)