Skip to content

fix(cli): repair dangerous command approval UI#1337

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-2f2b4807
Mar 14, 2026
Merged

fix(cli): repair dangerous command approval UI#1337
teknium1 merged 1 commit into
mainfrom
hermes/hermes-2f2b4807

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

  • move the dangerous-command header onto its own line inside the approval panel so the border no longer visually cuts through it
  • restore the merged long-command "Show full command" path in the active prompt_toolkit CLI approval callback
  • add regression coverage for long-command view choices, in-place expansion, and approval panel rendering

Root cause

The full-command expansion feature was already merged in commit 2a62514d, but the live CLI TUI was still using an older _approval_callback path in cli.py that never appended the view choice. The fallback prompt and gateway path had the feature; the active prompt_toolkit path did not.

The header layout issue came from rendering ⚠️ Dangerous Command directly inside the top border line. In the screenshot that causes the border/title to overlap visually. Rendering the header as the first content line inside the box fixes that.

Testing

  • source /home/teknium/.hermes/hermes-agent/.venv/bin/activate && python -m pytest tests/test_cli_approval_ui.py tests/tools/test_approval.py tests/test_cli_skin_integration.py -n0 -q
  • source /home/teknium/.hermes/hermes-agent/.venv/bin/activate && python -m pytest tests/ -n0 -q

Move the dangerous-command header onto its own line inside the approval box
so the panel border no longer cuts through it, and restore the long-command
expand path in the active prompt_toolkit approval callback. The CLI already
had a merged 'view full command' feature in fallback/gateway paths, but the
live TUI callback was still using an older choice set and never exposed it.
Add regression tests for long-command view state, in-place expansion, and
panel rendering.
@teknium1 teknium1 merged commit 2d18b07 into main Mar 14, 2026
1 check passed
@teknium1 teknium1 deleted the hermes/hermes-2f2b4807 branch March 14, 2026 19:01
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…2f2b4807

fix(cli): repair dangerous command approval UI
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…2f2b4807

fix(cli): repair dangerous command approval UI
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
…2f2b4807

fix(cli): repair dangerous command approval UI
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…2f2b4807

fix(cli): repair dangerous command approval UI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant