Repository navigation
fix(config): 运行时超时参数收紧为整数毫秒 - #1783
Merged
deepcoldy merged 1 commit intoOct 11, 2026
Merged
Conversation
kunshanyep-beep
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
October 10, 2026 03:37
|
🚀 Released in v3.42.0 |
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.
改了什么
parseBoundedInteger,仅接受1..2147483647范围内的整数运行时超时。1与最大值2147483647的接受断言。0.5、1.9回退默认值的回归覆盖。为什么
非整数毫秒会在卡顿检测的
setTimeout中被运行时截断,0~2ms 的小数可能退化为约 1ms 的反复触发;Node 的AbortSignal.timeout还会直接拒绝非整数并让 AI 分支名请求静默回退。统一按整数解析可以避免这两种不一致行为。影响面
STUCK_DETECTOR_TIMEOUT_MS与BOTMUX_WORKTREE_SLUG_AI_TIMEOUT_MS的非法小数输入处理:现在回退到原有的 45 秒与 5 秒默认值。验证
npx -y [email protected] run test -- test/runtime-timeout-config.test.ts test/stuck-detector.test.ts test/worktree-slug-ai.test.ts(47/47)npx -y [email protected] run buildgit diff --checkCloses #1747