Skip to content

fix(tui): make Allow pattern session-exact and inline - #355

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/session-exact-approval
Aug 15, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/session-exact-approval

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • Allow pattern now means this exact argv, cwd, and env for the rest of the process session. The next matching call never HITLs.
  • Different argv, cwd, or env still asks. Nothing is written to permissions.toml.
  • The approval prompt is a conversation message (Allow once / Allow pattern / Deny), not a boxed card.

Test plan

  • cargo test --package forge-governance --package forge-core --package forge-tui --package forge-transcript --all-targets --locked --offline
  • cargo clippy --package forge-governance --package forge-core --package forge-tui --package forge-transcript --all-targets --locked --offline -- -D warnings
  • In the TUI, pick Allow pattern on a shell command and confirm the same argv is not asked again in that session.
  • Change argv, cwd, or env and confirm Forge asks again.

Allow pattern now remembers this exact argv, cwd, and env for the
rest of the process session. The next matching call never HITLs.
Different argv, cwd, or env still asks. Nothing is written to
permissions.toml.

The prompt is a conversation message, not a boxed approval card.
@github-actions
github-actions Bot enabled auto-merge (squash) August 15, 2026 19:39
@github-actions
github-actions Bot merged commit 0c45e7b into main Aug 15, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
* fix(tui): make Allow pattern session-exact and inline

Allow pattern now remembers this exact argv, cwd, and env for the
rest of the process session. The next matching call never HITLs.
Different argv, cwd, or env still asks. Nothing is written to
permissions.toml.

The prompt is a conversation message, not a boxed approval card.

* style(tui): rustfmt overlay imports
mohitranka added a commit that referenced this pull request Sep 11, 2026
* fix(tui): make Allow pattern session-exact and inline

Allow pattern now remembers this exact argv, cwd, and env for the
rest of the process session. The next matching call never HITLs.
Different argv, cwd, or env still asks. Nothing is written to
permissions.toml.

The prompt is a conversation message, not a boxed approval card.

* style(tui): rustfmt overlay imports
mohitranka added a commit that referenced this pull request Sep 11, 2026
* fix(tui): make Allow pattern session-exact and inline

Allow pattern now remembers this exact argv, cwd, and env for the
rest of the process session. The next matching call never HITLs.
Different argv, cwd, or env still asks. Nothing is written to
permissions.toml.

The prompt is a conversation message, not a boxed approval card.

* style(tui): rustfmt overlay imports
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