Repository navigation
Timeouts #1773
nateberkopec
started this conversation in
Ideas
Timeouts
#1773
Replies: 1 comment
|
This is now a hook-level setting, implemented in #1776: hooks {
["pre-commit"] {
timeout = "10s"
steps = linters
}
}The limit covers the whole hook across all of its steps (including time spent waiting for the stash lock). When it passes, hk stops the running steps the way Ctrl-C does, puts any stashed changes back, and fails the hook with This is per hook only; there's no per-step timeout or global setting yet. AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: unavailable. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Everyone loves fast feedback. Precommit and prepush checks should take seconds, not minutes.
However, AI will eventually violate any requirement not stated in code and enforced by tools.
So, I want to add timeouts to my
hkruns. e.g., pre-commit must run in 10 seconds or less (across all steps) or you blow up.All reactions