@link-assistant/hive-mind 1.49.2 → 1.49.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @link-assistant/hive-mind
2
2
 
3
+ ## 1.49.3
4
+
5
+ ### Patch Changes
6
+
7
+ - b15a494: fix: make usage limit footer message consistent with auto-resume mode (#1569)
8
+ - Fix footer message in "Usage Limit Reached" GitHub comments to reflect auto-resume/auto-restart mode
9
+ - Previously the footer always showed "You can resume once the limit resets." even when auto-resume was enabled
10
+ - Now shows mode-specific messages: "The session will automatically resume when the limit resets." or "The session will automatically restart when the limit resets."
11
+
3
12
  ## 1.49.2
4
13
 
5
14
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@link-assistant/hive-mind",
3
- "version": "1.49.2",
3
+ "version": "1.49.3",
4
4
  "description": "AI-powered issue solver and hive mind for collaborative problem solving",
5
5
  "main": "src/hive.mjs",
6
6
  "type": "module",
@@ -491,11 +491,7 @@ The automated solution draft was interrupted because the ${toolName} usage limit
491
491
  const modeName = autoResumeMode === 'restart' ? 'restart' : 'resume';
492
492
  const modeDescription = autoResumeMode === 'restart' ? 'The session will automatically restart (fresh start) when the limit resets.' : 'The session will automatically resume (with context preserved) when the limit resets.';
493
493
 
494
- if (limitResetTime) {
495
- logComment += `**Auto-${modeName} is enabled.** ${modeDescription}`;
496
- } else {
497
- logComment += `**Auto-${modeName} is enabled.** ${modeDescription}`;
498
- }
494
+ logComment += `**Auto-${modeName} is enabled.** ${modeDescription}`;
499
495
  } else {
500
496
  // Manual resume mode - show CLI commands
501
497
  if (limitResetTime) {
@@ -516,6 +512,8 @@ ${resumeCommand}
516
512
  }
517
513
  }
518
514
 
515
+ const footerNote = isAutoResumeEnabled ? (autoResumeMode === 'restart' ? '*This session was interrupted due to usage limits. The session will automatically restart when the limit resets.*' : '*This session was interrupted due to usage limits. The session will automatically resume when the limit resets.*') : '*This session was interrupted due to usage limits. You can resume once the limit resets.*';
516
+
519
517
  logComment += `${modelInfoString}
520
518
 
521
519
  <details>
@@ -528,7 +526,7 @@ ${logContent}
528
526
  </details>
529
527
 
530
528
  ---
531
- *This session was interrupted due to usage limits. You can resume once the limit resets.*`;
529
+ ${footerNote}`;
532
530
  } else if (errorMessage) {
533
531
  // Failure log format (non-usage-limit errors)
534
532
  logComment = `## 🚨 Solution Draft Failed
@@ -707,13 +705,15 @@ ${resumeCommand}
707
705
  }
708
706
  }
709
707
 
708
+ const uploadFooterNote = isAutoResumeEnabled ? (autoResumeMode === 'restart' ? '*This session was interrupted due to usage limits. The session will automatically restart when the limit resets.*' : '*This session was interrupted due to usage limits. The session will automatically resume when the limit resets.*') : '*This session was interrupted due to usage limits. You can resume once the limit resets.*';
709
+
710
710
  logUploadComment += `${modelInfoString}
711
711
 
712
712
  ### 📎 **Execution log uploaded as ${uploadTypeLabel}${chunkInfo}** (${Math.round(logStats.size / 1024)}KB)
713
713
  - [View complete execution log](${logUrl})
714
714
 
715
715
  ---
716
- *This session was interrupted due to usage limits. You can resume once the limit resets.*`;
716
+ ${uploadFooterNote}`;
717
717
  } else if (errorMessage) {
718
718
  // Failure log format (non-usage-limit errors)
719
719
  logUploadComment = `## 🚨 Solution Draft Failed