Skip to content

feat(cli): add permissions mode label to banner and status bar#2665

Closed
Mibayy wants to merge 1 commit into
NousResearch:mainfrom
Mibayy:feat/cli-permissions-label
Closed

feat(cli): add permissions mode label to banner and status bar#2665
Mibayy wants to merge 1 commit into
NousResearch:mainfrom
Mibayy:feat/cli-permissions-label

Conversation

@Mibayy

@Mibayy Mibayy commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Problem

When running with --yolo, there is no visible indication that all approval prompts are bypassed. Users may forget they launched in FULL ACCESS mode.

Solution

Show a permanent permissions label in two places:

Welcome banner (below the model name):

  • ⚠ FULL ACCESS in red when --yolo is active
  • ✓ RESTRICTED ACCESS in green otherwise (positive confirmation)

Status bar (bottom of the terminal, appended after duration):

  • ⚠ FULL ACCESS in red (#FF4444 bold) only when --yolo is active — no noise in the default case

Files changed

  • hermes_cli/banner.py — permissions line in the welcome banner
  • cli.py⚠ FULL ACCESS fragment in _get_status_bar_fragments() and _build_status_bar_text() fallback; new status-bar-yolo style

Notes

  • No behavior change — purely informational display
  • RESTRICTED ACCESS label shown by default gives users positive confirmation they are protected
  • Label is visible from first launch and persists in the status bar throughout the session

Closes #2663

Display a permissions label so users always know whether the agent is
running in FULL ACCESS (--yolo) or RESTRICTED ACCESS mode.

Changes:
- hermes_cli/banner.py: show 'FULL ACCESS' (red) or 'RESTRICTED ACCESS'
  (green) line in the welcome banner below the model name
- cli.py: append '⚠ FULL ACCESS' fragment to the bottom status bar when
  HERMES_YOLO_MODE is set (both the fragment renderer and the plain-text
  fallback)
- cli.py: add 'status-bar-yolo' style (#FF4444 bold) for the status bar
  fragment

Default behavior (no --yolo) is unchanged — RESTRICTED ACCESS is shown
in green as a positive confirmation. The label is visible on first
launch and persists in the status bar throughout the session.

Closes NousResearch#2663
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard labels May 3, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Competing PR: #2721 implements the same feature (permission mode label in banner) for #2663.

@alt-glitch

Copy link
Copy Markdown
Collaborator

Competing PR #2721

@Mibayy

Mibayy commented May 3, 2026

Copy link
Copy Markdown
Contributor Author

???? @alt-glitch Why did you comment all my PR just to promote your PR ? the fuck xd

@teknium1

Copy link
Copy Markdown
Contributor

Merged via #26238 — your commit was cherry-picked onto current main with your authorship preserved in git log.

Two small refinements during salvage:

  • Text ⚠ FULL ACCESS⚠ YOLO (matches the --yolo flag and fits the narrow status bar tiers).
  • Dropped the always-on ✓ RESTRICTED ACCESS banner line — the warning is now silent in the default case so the banner stays minimal, and only loud when YOLO is on.
  • Extended the status-bar indicator to the two narrow width tiers (<52, <76) the original only touched on the wide path.

Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add a permissions warning to the CLI

3 participants