mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-11 14:58:39 +03:00
fix(webui): complete temporary chat mode
This commit is contained in:
@@ -346,18 +346,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user