Commit 26c0ffa
Require explicit interactive consent before self-updating status runs (#15)
Users reported accidental updates when no input was intended. The update check now always prompts in interactive terminals and only honors MUSAFETY_AUTO_UPDATE_APPROVAL in non-interactive runs.
Constraint: Keep non-interactive automation support for CI/scripting
Rejected: Remove env-based auto-approval entirely | would break existing unattended workflows
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep interactive update decisions explicit unless a user passes a command flag for opt-in behavior
Tested: npm test (43/43); pseudo-interactive run with MUSAFETY_AUTO_UPDATE_APPROVAL=yes showed prompt and skipped on blank input
Not-tested: Real human tty keystroke path in all terminal emulators
Co-authored-by: NagyVikt <nagy.viktordp@gmail.com>1 parent d328398 commit 26c0ffa
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1262 | 1262 | | |
1263 | 1263 | | |
1264 | 1264 | | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
| 1265 | + | |
| 1266 | + | |
1268 | 1267 | | |
1269 | 1268 | | |
1270 | | - | |
| 1269 | + | |
| 1270 | + | |
1271 | 1271 | | |
1272 | 1272 | | |
1273 | 1273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
0 commit comments