test(ohmo): harden memory prompt isolation coverage
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user