Repository navigation
fix(skill): run plugins like hooks: timeout, kill on drop, null stdin, raw cmd args - #497
Merged
Merged
Conversation
…, raw cmd args Plugin::execute was an older copy of the hook runner and missed its fixes: - no timeout: a hung plugin held the turn until Esc. Calls now stop after 300 s with an error result; - no kill_on_drop: on Esc the child kept running. It is killed now; - stdin inherited the terminal: a plugin that reads stdin waited for ever or took keystrokes. It gets an empty stdin; - on Windows `.arg(command)` escaped quotes the way cmd does not understand, so `python "C:\Program Files\x.py"` broke. It uses raw_arg like the hook runner. Co-Authored-By: Claude Opus 5.5 <[email protected]>
mrnasil
enabled auto-merge (squash)
November 25, 2026 15:35
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin::executewas an older copy of the hook runner and was missing four of its fixes.kill_on_drop: on Esc the child kept running.arg(command)escaping that cmd does not understand:python "C:\Program Files\x.py"brokeraw_arg, as in the hook runnerTests: a hung plugin times out (with a test-sized timeout), and a plugin that reads stdin and echoes a quoted string finishes with the quotes intact. On Linux (WSL) all 43 skill tests pass and
plugin.rshas 100% line coverage.execute_failure_prefers_stderr_then_stdoutandexecute_uses_working_dir_and_workspace_envuse sh syntax and already fail on Windows on main; this PR does not change that.🤖 Generated with Claude Code