Troubleshoot wizard ignores Fix::requires_confirm, runs fixes unconditionally #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix::requires_confirm(src/content/troubleshoot.rs) is a safety flag on content-authored fixes, meant to gate a confirmation step before the fix command is actually run.src/ui/troubleshoot_wizard.rs's "Run fix" button currently ignores it entirely and executes the fix command unconditionally regardless of the flag's value.Found while doing a clippy pass across the ecosystem on 2026-08-06 — clippy flagged
requires_confirmas an unread (dead_code) field, which is what surfaced that the UI never actually checks it. Left the field in place (it's real, hand-authored content) rather than deleting it, since the fix is a real feature gap: add a confirmation dialog introubleshoot_wizard.rsthat gates command execution whenrequires_confirmis true, rather than removing the flag.