@khalilgharbaoui/opencode-claude-code-plugin 0.18.2 → 0.18.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/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4533,6 +4533,9 @@ var AUTO_CONTINUE_MAX_ELAPSED_MS = 10 * 60 * 1e3;
|
|
|
4533
4533
|
var AUTO_CONTINUE_NO_PROGRESS_LIMIT = 2;
|
|
4534
4534
|
var PROXY_RESULT_BOUNDARY_GRACE_MS = 250;
|
|
4535
4535
|
var AUTO_CONTINUE_PROMPT = "Continue the task from where you stopped. Do not summarize; keep working until the requested task is complete, you need clarification, or you hit a real blocker.";
|
|
4536
|
+
function autoContinueEnabledFor(compactionMode, configured) {
|
|
4537
|
+
return compactionMode ? false : configured;
|
|
4538
|
+
}
|
|
4536
4539
|
function isTruncationStopReason(stopReason) {
|
|
4537
4540
|
return stopReason === "max_tokens" || stopReason === "max_output_tokens";
|
|
4538
4541
|
}
|
|
@@ -6289,7 +6292,10 @@ ${plan}
|
|
|
6289
6292
|
let hadProxyActivitySinceContinue = false;
|
|
6290
6293
|
let lastStopReason = null;
|
|
6291
6294
|
const autoContinueState = {
|
|
6292
|
-
enabled:
|
|
6295
|
+
enabled: autoContinueEnabledFor(
|
|
6296
|
+
compactionMode,
|
|
6297
|
+
self.config.autoContinueIncompleteTurns
|
|
6298
|
+
),
|
|
6293
6299
|
attempts: 0,
|
|
6294
6300
|
startedAt: Date.now(),
|
|
6295
6301
|
noProgressCount: 0
|