Skip to content

fix(tui): show the exact pattern next to Allow pattern - #356

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/show-allow-pattern-detail
Aug 15, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/show-allow-pattern-detail

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • The Allow pattern menu row now shows the exact invocation that will be remembered for the session, e.g. bash(git push -u origin main) or read_file(src/lib.rs).
  • This is the exact argv, not a generalized permissions.toml prefix like bash(git push *).
  • Behavior is unchanged: same argv, cwd, and env auto-approve later; anything else still asks.

Test plan

  • cargo test --package forge-governance --package forge-tui --all-targets --locked
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • In the TUI, confirm an approval prompt shows Allow pattern bash(...) next to the option.
  • Confirm picking Allow pattern still remembers only that exact argv/cwd/env for the session.

The approval menu now renders the exact invocation that will be
remembered for the session, e.g. bash(git push -u origin main),
instead of a bare Allow pattern label.
@github-actions
github-actions Bot enabled auto-merge (squash) August 15, 2026 20:33
@github-actions
github-actions Bot merged commit fed4df1 into main Aug 15, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
The approval menu now renders the exact invocation that will be
remembered for the session, e.g. bash(git push -u origin main),
instead of a bare Allow pattern label.
mohitranka added a commit that referenced this pull request Sep 11, 2026
The approval menu now renders the exact invocation that will be
remembered for the session, e.g. bash(git push -u origin main),
instead of a bare Allow pattern label.
mohitranka added a commit that referenced this pull request Sep 11, 2026
The approval menu now renders the exact invocation that will be
remembered for the session, e.g. bash(git push -u origin main),
instead of a bare Allow pattern label.
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