The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: assert composer-paste guard on result.message/warnings, not the expanded flag
teknium18ba5fe9c165f
diff --git a/tests/agent/test_context_references.py b/tests/agent/test_context_references.pyindex b7f42f4f785..7347f07fdfc 100644--- a/tests/agent/test_context_references.py+++ b/tests/agent/test_context_references.py@@ -643,6 +643,7 @@ async def test_composer_paste_outside_workspace_is_attached_but_sibling_dir_is_ncontext_length=100_000,)- assert "PASTED-BODY-MARKER" in result.expanded- assert "LOOKALIKE-SECRET" not in result.expanded- assert "outside the allowed workspace" in result.expanded+ assert result.expanded+ assert "PASTED-BODY-MARKER" in result.message+ assert "LOOKALIKE-SECRET" not in result.message+ assert "outside the allowed workspace" in "\n".join(result.warnings)