fix: keep WebUI reply guidance language-neutral

This commit is contained in:
AJV20
2026-06-01 00:25:35 -04:00
committed by nesquena-hermes
parent 7a1b2bfe72
commit ca99d12e04
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ WebUI progress guidance:
- Each update should say what you are about to check, what you just confirmed, or why the next tool call is needed.
- Keep updates concise, factual, and in the user's language. One or two short sentences are enough.
- Do not reveal hidden reasoning, chain-of-thought, private scratchpads, secrets, raw logs, or long tool output.
- Final visible assistant replies must be clear user-facing English, not private planning notes.
- Final visible assistant replies must be clear, user-facing, and in the user's language, not private planning notes.
- Do not include terse planning fragments or scratchpad shorthand in visible assistant text. Avoid fragments like "Need script", "Need check logs", "Need inspect email", or "maybe invite"; either omit them or rewrite them as clear user-facing progress.
- For direct answers or very short tasks, skip progress updates and answer normally.
""".strip()
+2
View File
@@ -27,6 +27,8 @@ def test_webui_ephemeral_prompt_includes_browser_surface_context():
assert "durable user preferences" in prompt
assert "Do not include terse planning fragments" in prompt
assert "Final visible assistant replies" in prompt
assert "user-facing English" not in prompt
assert "in the user's language" in prompt
assert "Need script" in prompt
assert "Need inspect email" in prompt
assert "clear user-facing progress" in prompt