feat(webui): add temporary chat mode

This commit is contained in:
Xubin Ren
2026-08-08 23:20:59 +08:00
parent 113e8d67ad
commit c9a6145878
41 changed files with 1500 additions and 119 deletions
+12
View File
@@ -346,6 +346,18 @@ class TestBuildSystemPrompt:
assert "## AGENTS.md" not in result
assert "[Archived Context Summary]" not in result
def test_can_exclude_long_term_memory_without_changing_agent_identity(self, tmp_path):
builder = _builder(tmp_path)
builder.memory.write_memory("# Memory\n- private detail")
result = builder.build_system_prompt(
include_long_term_memory=False,
include_memory_recent_history=False,
)
assert "private detail" not in result
assert "workspace" in result.lower()
# ---------------------------------------------------------------------------
# build_messages