Skip to content

feat: drop Manual permission mode - #396

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/drop-manual-permission-mode
Aug 18, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/drop-manual-permission-mode

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

Drops Manual permission mode entirely. Forge has one policy: today's Auto.

  • No named mode. PermissionMode, apply_mode, permission_ceiling, the footer mode chip, cycle binding, and persisted permission_mode are gone.
  • Launch gate. After clap, before config/session/TUI: if the host cannot confine, print why plus an install line and exit 1. --help / --version still work.
  • Approvals unchanged from Auto. Shell and file writes never ask. MCP still asks. deny re-prompts. ACL deny still blocks. No opt-in restores prompt-all-shell.
  • Silent upgrade. Old ui-state.json permission_mode is ignored and omitted on the next write.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo test --workspace --all-targets --locked
  • On Linux without bubblewrap: forge prints the apt/brew line and exits 1; forge --help still works
  • Footer is model + effort only; Tab/arrows/Enter still open pickers
  • MCP tools still prompt; a deny rule still re-prompts shell

Forge no longer has a named permission mode. The shipped policy is
today's Auto: shell and file writes never ask, MCP still asks, deny
patterns re-prompt. A host that cannot confine does not start.

Delete PermissionMode, apply_mode, permission_ceiling, the footer mode
chip, and persisted permission_mode. Gate the CLI after clap with a
stderr install line and exit 1.
@github-actions
github-actions Bot enabled auto-merge (squash) August 18, 2026 21:03
@github-actions
github-actions Bot merged commit 9b24af8 into main Aug 18, 2026
8 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
Forge no longer has a named permission mode. The shipped policy is
today's Auto: shell and file writes never ask, MCP still asks, deny
patterns re-prompt. A host that cannot confine does not start.

Delete PermissionMode, apply_mode, permission_ceiling, the footer mode
chip, and persisted permission_mode. Gate the CLI after clap with a
stderr install line and exit 1.
mohitranka added a commit that referenced this pull request Sep 11, 2026
Forge no longer has a named permission mode. The shipped policy is
today's Auto: shell and file writes never ask, MCP still asks, deny
patterns re-prompt. A host that cannot confine does not start.

Delete PermissionMode, apply_mode, permission_ceiling, the footer mode
chip, and persisted permission_mode. Gate the CLI after clap with a
stderr install line and exit 1.
mohitranka added a commit that referenced this pull request Sep 11, 2026
Forge no longer has a named permission mode. The shipped policy is
today's Auto: shell and file writes never ask, MCP still asks, deny
patterns re-prompt. A host that cannot confine does not start.

Delete PermissionMode, apply_mode, permission_ceiling, the footer mode
chip, and persisted permission_mode. Gate the CLI after clap with a
stderr install line and exit 1.
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