@link-assistant/hive-mind 1.24.5 → 1.24.6
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 +14 -0
- package/README.md +0 -4
- package/package.json +1 -1
- package/src/agent.lib.mjs +12 -0
- package/src/hive.config.lib.mjs +1 -1
- package/src/solve.config.lib.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @link-assistant/hive-mind
|
|
2
2
|
|
|
3
|
+
## 1.24.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Make `--auto-resume-on-limit-reset` enabled by default to improve user experience when hitting API rate limits. Previously defaulted to `false`, now defaults to `true` for both `solve` and `hive` commands. Users can explicitly disable with `--no-auto-resume-on-limit-reset` if needed.
|
|
8
|
+
|
|
9
|
+
Fix false positive error detection for step_finish with reason stop
|
|
10
|
+
|
|
11
|
+
When an agent encounters a timeout error during execution but successfully recovers and completes (indicated by `step_finish` with `reason: "stop"`), the error detection was incorrectly flagging this as a failure due to fallback pattern matching.
|
|
12
|
+
|
|
13
|
+
The `agentCompletedSuccessfully` flag was only being set for `session.idle` and `"exiting loop"` log messages (Issue #1276), but not for the more common `step_finish` event with `reason: "stop"`. This meant the fallback pattern matching would still trigger and detect error patterns in the full output, even when the agent had clearly completed successfully.
|
|
14
|
+
|
|
15
|
+
Fix: Add `step_finish` with `reason: "stop"` as a success marker in both stdout and stderr processing loops in `src/agent.lib.mjs`.
|
|
16
|
+
|
|
3
17
|
## 1.24.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -268,12 +268,10 @@ See [docs/HELM.md](./docs/HELM.md) for detailed Helm configuration options.
|
|
|
268
268
|
--attach-logs
|
|
269
269
|
--verbose
|
|
270
270
|
--no-tool-check
|
|
271
|
-
--auto-resume-on-limit-reset
|
|
272
271
|
TELEGRAM_SOLVE_OVERRIDES:
|
|
273
272
|
--attach-logs
|
|
274
273
|
--verbose
|
|
275
274
|
--no-tool-check
|
|
276
|
-
--auto-resume-on-limit-reset
|
|
277
275
|
TELEGRAM_BOT_VERBOSE: true
|
|
278
276
|
"
|
|
279
277
|
|
|
@@ -295,12 +293,10 @@ See [docs/HELM.md](./docs/HELM.md) for detailed Helm configuration options.
|
|
|
295
293
|
--attach-logs
|
|
296
294
|
--verbose
|
|
297
295
|
--no-tool-check
|
|
298
|
-
--auto-resume-on-limit-reset
|
|
299
296
|
)" --solve-overrides "(
|
|
300
297
|
--attach-logs
|
|
301
298
|
--verbose
|
|
302
299
|
--no-tool-check
|
|
303
|
-
--auto-resume-on-limit-reset
|
|
304
300
|
)" --verbose
|
|
305
301
|
|
|
306
302
|
# Press CTRL + A + D for detach from screen
|
package/package.json
CHANGED
package/src/agent.lib.mjs
CHANGED
|
@@ -665,6 +665,13 @@ export const executeAgentCommand = async params => {
|
|
|
665
665
|
if (data.type === 'session.idle' || (data.type === 'log' && data.message === 'exiting loop')) {
|
|
666
666
|
agentCompletedSuccessfully = true;
|
|
667
667
|
}
|
|
668
|
+
// Issue #1296: Detect step_finish with reason "stop" as successful completion
|
|
669
|
+
// This is a clear marker of success - agent finished normally, not due to error or limit
|
|
670
|
+
// When this event appears, we should ignore any error events that appeared earlier in the stream
|
|
671
|
+
// (e.g., timeout errors that were recovered from via retry logic)
|
|
672
|
+
if (data.type === 'step_finish' && data.part?.reason === 'stop') {
|
|
673
|
+
agentCompletedSuccessfully = true;
|
|
674
|
+
}
|
|
668
675
|
} catch {
|
|
669
676
|
// Not JSON - log as plain text
|
|
670
677
|
await log(line);
|
|
@@ -727,6 +734,11 @@ export const executeAgentCommand = async params => {
|
|
|
727
734
|
if (stderrData.type === 'session.idle' || (stderrData.type === 'log' && stderrData.message === 'exiting loop')) {
|
|
728
735
|
agentCompletedSuccessfully = true;
|
|
729
736
|
}
|
|
737
|
+
// Issue #1296: Detect step_finish with reason "stop" as successful completion (stderr)
|
|
738
|
+
// This is a clear marker of success - agent finished normally, not due to error or limit
|
|
739
|
+
if (stderrData.type === 'step_finish' && stderrData.part?.reason === 'stop') {
|
|
740
|
+
agentCompletedSuccessfully = true;
|
|
741
|
+
}
|
|
730
742
|
} catch {
|
|
731
743
|
// Not JSON - log as plain text
|
|
732
744
|
await log(stderrLine);
|
package/src/hive.config.lib.mjs
CHANGED
|
@@ -36,7 +36,7 @@ const HIVE_CUSTOM_SOLVE_OPTIONS = {
|
|
|
36
36
|
'auto-resume-on-limit-reset': {
|
|
37
37
|
type: 'boolean',
|
|
38
38
|
description: 'Automatically resume when AI tool limit resets (calculates reset time and waits). Passed to solve command.',
|
|
39
|
-
default:
|
|
39
|
+
default: true,
|
|
40
40
|
},
|
|
41
41
|
'auto-cleanup': {
|
|
42
42
|
type: 'boolean',
|
package/src/solve.config.lib.mjs
CHANGED
|
@@ -132,7 +132,7 @@ export const SOLVE_OPTION_DEFINITIONS = {
|
|
|
132
132
|
'auto-resume-on-limit-reset': {
|
|
133
133
|
type: 'boolean',
|
|
134
134
|
description: 'Automatically resume when AI tool limit resets (maintains session context with --resume flag)',
|
|
135
|
-
default:
|
|
135
|
+
default: true,
|
|
136
136
|
},
|
|
137
137
|
'auto-restart-on-limit-reset': {
|
|
138
138
|
type: 'boolean',
|