Skip to content

feat(tui): rewrite approval prompt as a consequence list - #358

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/approval-consequence-list
Aug 15, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/approval-consequence-list

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • Replace the approval title that asked "allow for the rest of the session?" while Allow once was selected.
  • Show a consequence list: Run once / Remember similar commands this session / Don't run, with help only on the focused row.
  • Keep cwd as a quiet location line; drop cwd: / env: inherited from the same muted stream as the command.

Why

The live prompt mixed the command, path, and menu, and taught nobody what "Allow pattern" would remember. Same keys and outcomes (up/down, Enter, Esc); only copy and hierarchy change.

Test plan

  • cargo test --package forge-tui --locked --lib -- app::tests::approval
  • cargo test --package forge-tui --locked --lib -- approval_prompt pending_approval chrome
  • cargo test --package forge-transcript --locked --lib
  • cargo clippy --package forge-tui --package forge-transcript --all-targets --locked -- -D warnings
  • Trigger a shell HITL prompt in the TUI and walk the three rows

Replace the misleading session-wide question and jargon-heavy Allow
pattern row with a decision-first prompt. The selected row now explains
what happens; remember uses a readable subject instead of a raw glob.
@github-actions
github-actions Bot enabled auto-merge (squash) August 15, 2026 22:29
@github-actions
github-actions Bot merged commit 01198f9 into main Aug 15, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
Replace the misleading session-wide question and jargon-heavy Allow
pattern row with a decision-first prompt. The selected row now explains
what happens; remember uses a readable subject instead of a raw glob.
mohitranka added a commit that referenced this pull request Sep 11, 2026
Replace the misleading session-wide question and jargon-heavy Allow
pattern row with a decision-first prompt. The selected row now explains
what happens; remember uses a readable subject instead of a raw glob.
mohitranka added a commit that referenced this pull request Sep 11, 2026
Replace the misleading session-wide question and jargon-heavy Allow
pattern row with a decision-first prompt. The selected row now explains
what happens; remember uses a readable subject instead of a raw glob.
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