Repository navigation
fix(hooks): deprecate spawned scripts form - #11043
Conversation
📝 WalkthroughWalkthrough
ChangesLegacy hook aliases
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR fixes a gap in the deprecation path for plural
Confidence Score: 5/5Safe to merge — the change is a one-line fix to a flag value, the surrounding logic already handles both outcomes correctly, and a new test pins both branches. The fix is minimal and surgical: a single boolean flipped in ScriptsTable makes it consistent with ScriptTable. The script_hook_action function already routes CurrentShell hooks before legacy_script is consumed, so the current-shell path for Enter/Leave/Cd is unaffected. The new test directly asserts both the spawned (legacy_script: true) and current-shell (HookAction::CurrentShell) outcomes for ScriptsTable, catching any regression. Documentation is updated in the two relevant places. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "fix(hooks): deprecate spawned scripts fo..." | Re-trigger Greptile |
Summary
scriptshook tables as legacy when they execute as spawned commandsscriptsbehavior forenter,leave, andcdWhy
Singular
scriptand pluralscriptstables have the same spawned-command compatibility behavior, butScriptsTablepassedlegacy_script = falsewhileScriptTablepassedtrue. As a result, pluralscriptsbypassed the deprecation scheduled to warn in mise 2026.9.0 and be removed in 2027.3.0.This was discovered while reviewing #11041 but is independent and does not need to be stacked on it.
Validation
cargo test hooks::tests::scripts_tables_are_legacy_only_when_spawned --all-featuresmise run test:e2e config/test_hooks_run_warningsmise run lint-fixSummary by CodeRabbit
Documentation
preinstallandpostinstallsupport bothscriptandscriptsas legacy aliases forrun.Bug Fixes