feat: add guided exploration and share user-started MCP backend
This commit is contained in:
1 parent
f86db1ced6
commit
ee256ad7ce
144 files changed
+8625
-2075
No files matched your search
@@ -730,6 +730,27 @@ async def test_final_review_reports_no_guidance_explicitly():
|
||||
assert "# User guidance received during the run\n(none)\n" in text
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_exploration_review_sees_conversation_and_can_read_earlier_messages():
|
||||
ctx = _mock_ctx()
|
||||
ctx.exploration_id = "exploration"
|
||||
conversation = HumanMessage(content="用户已确认系统设置;示范不代表独立复跑")
|
||||
history = _text_tool("read_exploration_messages", "历史回复")
|
||||
review = AsyncMock(return_value=CheckReport())
|
||||
with (
|
||||
patch("artemis.agents.checker.checker._run_check_loop", review),
|
||||
patch(
|
||||
"artemis.agents.checker.checker._capture_final_screen",
|
||||
AsyncMock(return_value=(None, "elements")),
|
||||
),
|
||||
patch("artemis.exploration.runtime.conversation_message", return_value=conversation),
|
||||
patch("artemis.exploration.runtime.history_tool", return_value=history),
|
||||
):
|
||||
await run_final_check(ctx, goal="探索设置", plan_text="", ledger=[], check_items=[])
|
||||
assert conversation in review.call_args.args[1]
|
||||
assert history in review.call_args.args[2]
|
||||
|
||||
|
||||
# --- tool results: status is structural, never sniffed from the words -----------------
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user