Skip to content

Conversation

@konard
Copy link
Contributor

@konard konard commented Jan 21, 2026

Summary

Improves the --auto-resume-on-limit-reset functionality based on real-world observations from PR #2 on VisageDvachevsky/veil-windows-client.

Changes

  1. 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_MS env var.

  2. Add --auto-restart-on-limit-reset option - New flag for users who prefer a fresh start without previous session context, instead of resuming with --resume.

  3. 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.

  4. 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".

  5. 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)".

  6. 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

  • All existing tests pass (npm test)
  • ESLint passes (npm run lint)
  • Prettier formatting passes (npm run format:check)
  • Manual test with --auto-resume-on-limit-reset flag
  • Manual test with new --auto-restart-on-limit-reset flag

Related

🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #1152
@konard konard self-assigned this Jan 21, 2026
- Add 5-minute buffer after limit reset for server time differences
- Add --auto-restart-on-limit-reset option for fresh start
- Remove CLI commands from comments when auto-resume is active
- Differentiate work session comments (Auto Resume vs Auto Restart)
- Differentiate solution draft log comments based on session type
- Improve reset time formatting with relative time + UTC
- Add case study documentation with evidence from real-world issue

Fixes #1152

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@konard konard changed the title [WIP] --auto-resume-on-limit-reset should be improved Improve auto-resume-on-limit-reset functionality Jan 21, 2026
@konard konard marked this pull request as ready for review January 21, 2026 18:47
@konard
Copy link
Contributor Author

konard commented Jan 21, 2026

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $11.083056 USD
  • Calculated by Anthropic: $8.278768 USD
  • Difference: $-2.804288 (-25.30%)
    📎 Log file uploaded as Gist (2525KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--auto-resume-on-limit-reset should be improved

2 participants