Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
test(my): handle escaped Windows paths in inspection output
Xubin Rend7d4b97df36f
diff --git a/tests/agent/tools/test_runtime_control.py b/tests/agent/tools/test_runtime_control.pyindex 307cf4615..fefe9afd9 100644--- a/tests/agent/tools/test_runtime_control.py+++ b/tests/agent/tools/test_runtime_control.py@@ -285,8 +285,8 @@ async def test_workspace_inspection_matches_registered_file_tool(assert status["restrict_to_workspace"] is restrictedassert status["level"] == ("application" if restricted else "off")assert status["enforced"] is False- assert str(project.resolve()) in await tool.execute(action="check", key="workspace_sandbox")- assert str(project.resolve()) in await tool.execute(action="check")+ assert repr(str(project.resolve())) in await tool.execute(action="check", key="workspace_sandbox")+ assert repr(str(project.resolve())) in await tool.execute(action="check")assert await tool.execute(action="check", key="workspace_sandbox.restrict_to_workspace") == (f"workspace_sandbox.restrict_to_workspace: {restricted!r}")@@ -328,7 +328,7 @@ async def test_workspace_inspection_is_isolated_between_concurrent_turns(tmp_patawait ready.wait()await asyncio.sleep(0)result = await tool.execute(action="check", key="workspace_sandbox.workspace_root")- assert str(project.resolve()) in result+ assert repr(str(project.resolve())) in resultreturn tool._runtime_control.snapshot().workspace_sandboxfinally:reset_workspace_scope(token)@@ -377,7 +377,7 @@ async def test_workspace_inspection_reaches_model_from_selected_chat(tmp_path: Pmsg["tool_call_id"]: msg["content"] for msg in calls[1].kwargs["messages"]if msg["role"] == "tool"}- assert str(project.resolve()) in results["inspect"]+ assert repr(str(project.resolve())) in results["inspect"]assert "'restrict_to_workspace': True" in results["inspect"]assert "selected project" in results["read"]assert calls[0].kwargs["tools"] == calls[1].kwargs["tools"]