perf(hooks): tighten STDIN timeout, add try-catch, move pull to background - #275
Open
m0Nst3r873 wants to merge 1 commit into
Open
perf(hooks): tighten STDIN timeout, add try-catch, move pull to background#275m0Nst3r873 wants to merge 1 commit into
m0Nst3r873 wants to merge 1 commit into
Conversation
…round Three independent hook dispatch optimizations: 1. Reduce STDIN read timeout from 2s to 1s — healthy hosts EOF within milliseconds; the timeout only guards the missing-EOF edge case. 2. Wrap hookDispatchCli body in try-catch so unexpected errors (dynamic import failures, config parse errors) are logged rather than crashing the hook process. 3. Move pullHandler to background on session-start — pull does not produce output the host injects into the session, so running it detached avoids blocking session startup on slow git fetches. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Three independent hook dispatch optimizations to improve reliability and responsiveness:
Changes
Test plan
Generated with Claude Code