fix: increase limit reset buffer to 10min + jitter, add relative time to PR comments (issue #1236)#1237
Open
fix: increase limit reset buffer to 10min + jitter, add relative time to PR comments (issue #1236)#1237
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #1236
…lysis Includes downloaded logs from xlabtg/krypton-platform PR #2 showing the auto-resume timing issue, and comprehensive analysis of root causes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Downloaded PR comments from xlabtg/krypton-platform#2 containing: - Usage limit reached notification (comment 3860860522) - Solution draft log with auto-resume countdown (comment 3860955310) - Auto-resume session start notification (comment 3860958566) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ve time to PR comments
- Increase default buffer from 5 to 10 minutes for limit reset waiting
- Add random jitter (0-5 min) to distribute load and avoid thundering herd
- Format reset time with relative time + UTC in PR comments ("in 14m (Feb 6, 3:00 PM UTC)")
- Apply relative time formatting to both inline and uploaded log PR comments
- Apply relative time formatting to "waiting" PR comment
Fixes #1236
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…matting Tests verify: - Default buffer is now 10 minutes (increased from 5) - Default jitter range is 5 minutes (new) - Maximum total wait is 15 minutes (buffer + jitter) - Jitter produces values in valid range [0, jitterMs) - formatResetTimeWithRelative works correctly for PR comments Ref #1236 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This reverts commit 1b801ff.
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
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
HIVE_MIND_LIMIT_RESET_BUFFER_MS)HIVE_MIND_LIMIT_RESET_JITTER_MS)Before
After
Files Changed
src/config.lib.mjsjitterMsconfigsrc/solve.auto-continue.lib.mjssrc/github.lib.mjsformatResetTimeWithRelative()for reset time in PR commentssrc/solve.mjsformatResetTimeWithRelative()for reset time in waiting commenttests/test-limit-reset-config.mjsdocs/case-studies/issue-1236/Test plan
tests/test-limit-reset-config.mjs(12 tests passing)tests/test-usage-limit.mjs(63 tests passing)tests/limits-display.test.mjs(18 tests passing)solve-queue.test.mjs(unrelated THRESHOLD naming test)Fixes #1236
🤖 Generated with Claude Code