mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-07-14 11:40:44 +00:00
fix: keep WebUI reply guidance language-neutral
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user