cli: shrink local-agent warning panel to a reminder + docs link

Drops the bullet-list capability dump, the relative-path "or in this
repo" line, and the verbose dismissal block (which leaked the ack file
path into user-visible output). The panel is now ~6 lines: title with
interface(s), one sentence summary, "Learn more" pointing at
docs.planoai.dev, and a one-line `--ack-local-agents` hint. The full
trust-model write-up and the `rm` instruction live in the docs page.

Also tightens the acknowledged-already and ack-success lines (no path
leak) and switches the parenthetical name list to skip autofilled
`<interface>/...` model strings.
This commit is contained in:
Spherrrical 2026-05-07 11:36:37 -07:00
parent fbdb66b77f
commit aaa9546890
2 changed files with 55 additions and 61 deletions

View file

@ -180,9 +180,11 @@ def test_panel_fires_for_unacked_claude_cli(tmp_path):
assert "Local-agent" in output or "local-agent" in output
assert "Learn more" in output
assert "--ack-local-agents" in output
# The dismissal hint must mention the ack file path so the user
# knows where to ``rm`` it.
assert "local_agent_ack.json" in output
# The panel is intentionally compact: it must NOT leak the ack file
# path into the user-visible reminder. The ``rm`` instruction lives
# in the docs page that "Learn more" links to.
assert "local_agent_ack.json" not in output
assert "docs.planoai.dev" in output
def test_panel_suppressed_when_ack_covers_interface(tmp_path):