Files
hermes-agent/tests/hermes_cli/test_shared_owner_message.py
teknium1 23036e20a6 fix(ux): plain-language, actionable user-facing messages (core)
Squashed integration of the user-facing message audit for this surface set.
Full per-finding receipts: /tmp/ux-audit/lanes/*-receipt.md (campaign artifacts).
2026-09-15 04:12:13 -07:00

16 lines
701 B
Python

"""The owner refusal never claims a turn is running, and leads with plain words."""
from hermes_cli.active_sessions import session_already_owned_message
def test_owner_refusal_is_plain_and_never_claims_a_running_turn():
message = session_already_owned_message("session", {
"surface": "desktop", "pid": 123, "started_at": 1,
})
first, details = message.splitlines()
assert first.startswith("This chat is open in another Hermes window/terminal.")
assert "start a new chat here" in first
assert details.startswith("Details: ") and "desktop" in details and "ago" in details
assert "running " not in message
assert "lease" not in message and "pid" not in message