mirror of
https://github.com/katanemo/plano.git
synced 2026-06-14 15:15:15 +02:00
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:
parent
fbdb66b77f
commit
aaa9546890
2 changed files with 55 additions and 61 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue