Improve auto-resume-on-limit-reset functionality #1153
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
Improves the
--auto-resume-on-limit-resetfunctionality based on real-world observations from PR #2 on VisageDvachevsky/veil-windows-client.Changes
Add 5-minute buffer after limit reset - Accounts for server time differences that caused failed resume attempts at exactly the reset time. Configurable via
HIVE_MIND_LIMIT_RESET_BUFFER_MSenv var.Add
--auto-restart-on-limit-resetoption - New flag for users who prefer a fresh start without previous session context, instead of resuming with--resume.Remove CLI commands from comments when auto-resume is active - The "How to Continue" section was confusing when the system was already handling the continuation automatically. Now shows a message explaining auto-resume is enabled instead.
Differentiate work session comments - Comments now show "⏰ Auto Resume (on limit reset)" or "🔄 Auto Restart (on limit reset)" instead of generic "AI Work Session Started".
Differentiate solution draft log comments - Log titles now indicate "Draft log of auto resume (on limit reset)" or "Draft log of auto restart (on limit reset)".
Improve reset time formatting - Display reset time with relative time + UTC, e.g., "in 1h 23m (Jan 15, 7:00 AM UTC)" for better user understanding.
Test plan
npm test)npm run lint)npm run format:check)--auto-resume-on-limit-resetflag--auto-restart-on-limit-resetflagRelated
--auto-resume-on-limit-resetshould be improved #1152docs/case-studies/issue-1152/README.md🤖 Generated with Claude Code