Skip to content

fix(tui): show permission rule actions in /config ask-rules#3962

Open
greyfreedom wants to merge 1 commit into
Hmbown:mainfrom
greyfreedom:fix/config-ask-rules-actions
Open

fix(tui): show permission rule actions in /config ask-rules#3962
greyfreedom wants to merge 1 commit into
Hmbown:mainfrom
greyfreedom:fix/config-ask-rules-actions

Conversation

@greyfreedom

Copy link
Copy Markdown
Contributor

Summary

Show each permissions.toml rule action in the read-only /config ask-rules output.

Scope

  • Adds an action column: # | action | tool | command | path.
  • Displays default ask when a rule omits action.
  • Displays explicit allow and deny actions.
  • Preserves existing missing, empty, and malformed diagnostics.
  • Does not add editing, deletion, saving allow/deny, or policy changes.

Builds on

Current upstream/main, including the merged /config ask-rules diagnostics.

Issues

Refs #1186 (partial)
Refs #2242 (partial)

Validation

  • cargo fmt --all
  • git diff --check
  • cargo test -p codewhale-tui --bin codewhale-tui --locked config_command_ask_rules

Add the permissions rule action to the read-only /config ask-rules table so default ask rules and explicit allow/deny rules are visible alongside tool, command, and path fields.

Keep the existing missing, empty, and malformed diagnostics unchanged and cover ask, allow, deny, and stable output formatting in the config command tests.
@greyfreedom greyfreedom requested a review from Hmbown as a code owner July 3, 2026 04:15
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Thanks @greyfreedom for taking the time to contribute.

This repository is observing a maintainer-managed PR intake gate in dry-run mode, so this pull request is staying open. This note helps maintainers prepare the allowlist before any enforcement is considered.

Please read CONTRIBUTING.md for the expected contribution shape. A maintainer can grant recurring PR access by commenting /lgtm on a pull request.

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