Skip to content

feat(tools): add --init wizard step for pre-execution verifier config (#1880)#1897

Merged
bug-ops merged 1 commit intomainfrom
feat-tools-add-init-wizard-ste
Mar 15, 2026
Merged

feat(tools): add --init wizard step for pre-execution verifier config (#1880)#1897
bug-ops merged 1 commit intomainfrom
feat-tools-add-init-wizard-ste

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 15, 2026

Summary

  • Adds a new step to the --init interactive wizard for configuring [security.pre_execution_verify]
  • Prompt to enable/disable pre-execution verification (default: yes)
  • Shows default shell tools list (bash, shell, terminal) as informational context
  • Optional comma-separated allowed paths input for DestructiveCommandVerifier (empty = deny all)
  • Whitespace trimming on each path segment

Closes #1880

Changes

  • src/init.rs: +2 fields in WizardState, new prompts in step_security(), build_config() mapping, 4 new tests
  • docs/src/getting-started/wizard.md: Step 16 — Security section updated
  • CHANGELOG.md: entry in [Unreleased]

Test plan

  • cargo +nightly fmt --check — clean
  • cargo clippy --workspace --features full -- -D warnings — 0 warnings
  • cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins — 6004 passed
  • 4 new unit tests: build_config_pre_execution_verify_enabled_default, build_config_pre_execution_verify_disabled, build_config_pre_execution_verify_allowed_paths, build_config_pre_execution_verify_empty_paths

@github-actions github-actions bot added enhancement New feature or request documentation Improvements or additions to documentation size/M Medium PR (51-200 lines) and removed enhancement New feature or request labels Mar 15, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 15, 2026 23:46
…#1880)

Add a new step to the interactive --init wizard that configures the
[security.pre_execution_verify] section:

- Confirm prompt to enable/disable pre-execution verification (default: yes)
- Informational line showing the default shell tools list (bash, shell, terminal)
- Optional comma-separated allowed paths input for DestructiveCommandVerifier
  (empty = deny all destructive commands, which is the secure default)
- Whitespace trimming on each path segment
- Build config mapping to SecurityConfig.pre_execution_verify

Closes #1880
@bug-ops bug-ops force-pushed the feat-tools-add-init-wizard-ste branch from 5da01fc to ea06bb2 Compare March 15, 2026 23:46
@github-actions github-actions bot added the enhancement New feature or request label Mar 15, 2026
@bug-ops bug-ops merged commit ebf0e62 into main Mar 15, 2026
24 checks passed
@bug-ops bug-ops deleted the feat-tools-add-init-wizard-ste branch March 15, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request size/M Medium PR (51-200 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(tools): add init wizard step for pre-execution verifier config (follow-up #1630)

1 participant