Commit 81900d59 by sunqi02 Committed by 胡悦

fix: update prompt tests from REVIEW_GUIDE to DISPATCH_GUIDE

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent c2e10984
...@@ -813,18 +813,18 @@ def test_main_prompt_includes_thinking_guide(): ...@@ -813,18 +813,18 @@ def test_main_prompt_includes_thinking_guide():
prompt = hub._build_main_prompt() prompt = hub._build_main_prompt()
assert "思考" in prompt assert "思考" in prompt
assert "20" in prompt assert "20" in prompt
# main 独有:REVIEW_GUIDE 应在 # main 独有:DISPATCH_GUIDE 应在
assert "收到子Agent返回后" in prompt assert "调度规则" in prompt
def test_sub_agent_prompt_includes_thinking_guide_only(): def test_sub_agent_prompt_includes_thinking_guide_only():
"""_build_sub_agent_prompt 应只拼 THINKING_GUIDE,不含 REVIEW_GUIDE。""" """_build_sub_agent_prompt 应只拼 THINKING_GUIDE,不含 DISPATCH_GUIDE。"""
hub = _make_test_hub() hub = _make_test_hub()
prompt = hub._build_sub_agent_prompt(MEETING_KEY) prompt = hub._build_sub_agent_prompt(MEETING_KEY)
assert "思考" in prompt assert "思考" in prompt
assert "20" in prompt assert "20" in prompt
# sub 不应有 REVIEW_GUIDE # sub 不应有 DISPATCH_GUIDE
assert "收到子Agent返回后" not in prompt assert "调度规则" not in prompt
# ── Tests for soul_guide injection ── # ── Tests for soul_guide injection ──
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!