@skj1724/oh-my-opencode 3.19.13 → 3.19.14
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/cli/index.js +1 -1
- package/dist/index.js +22 -0
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -8467,7 +8467,7 @@ var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
|
8467
8467
|
// package.json
|
|
8468
8468
|
var package_default = {
|
|
8469
8469
|
name: "@skj1724/oh-my-opencode",
|
|
8470
|
-
version: "3.19.
|
|
8470
|
+
version: "3.19.14",
|
|
8471
8471
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
8472
8472
|
main: "dist/index.js",
|
|
8473
8473
|
types: "dist/index.d.ts",
|
package/dist/index.js
CHANGED
|
@@ -24998,6 +24998,7 @@ init_runtime_fallback();
|
|
|
24998
24998
|
function createRuntimeFallbackHook(ctx, options) {
|
|
24999
24999
|
const retryStates = new Map;
|
|
25000
25000
|
const fallbackAttempts = new Map;
|
|
25001
|
+
const interruptingSessions = new Map;
|
|
25001
25002
|
const config = options?.config ?? {
|
|
25002
25003
|
enabled: true,
|
|
25003
25004
|
max_attempts: 3,
|
|
@@ -25020,6 +25021,7 @@ function createRuntimeFallbackHook(ctx, options) {
|
|
|
25020
25021
|
if (sessionID2) {
|
|
25021
25022
|
retryStates.delete(sessionID2);
|
|
25022
25023
|
fallbackAttempts.delete(sessionID2);
|
|
25024
|
+
interruptingSessions.delete(sessionID2);
|
|
25023
25025
|
}
|
|
25024
25026
|
return false;
|
|
25025
25027
|
}
|
|
@@ -25129,6 +25131,22 @@ function createRuntimeFallbackHook(ctx, options) {
|
|
|
25129
25131
|
if (fallbackResult.kind !== "next") {
|
|
25130
25132
|
return false;
|
|
25131
25133
|
}
|
|
25134
|
+
const isRetryPartEvent = event.type === "message.part.updated" && retryAttempt !== undefined;
|
|
25135
|
+
if (isRetryPartEvent) {
|
|
25136
|
+
if (interruptingSessions.get(sessionID)) {
|
|
25137
|
+
return false;
|
|
25138
|
+
}
|
|
25139
|
+
interruptingSessions.set(sessionID, true);
|
|
25140
|
+
try {
|
|
25141
|
+
await ctx.client.session.abort({ path: { id: sessionID } });
|
|
25142
|
+
log("[runtime-fallback] aborted retry loop", { sessionID, retryAttempt });
|
|
25143
|
+
} catch (abortErr) {
|
|
25144
|
+
log("[runtime-fallback] abort failed, falling through to direct prompt", {
|
|
25145
|
+
sessionID,
|
|
25146
|
+
error: String(abortErr)
|
|
25147
|
+
});
|
|
25148
|
+
}
|
|
25149
|
+
}
|
|
25132
25150
|
try {
|
|
25133
25151
|
await ctx.client.session.prompt({
|
|
25134
25152
|
path: { id: sessionID },
|
|
@@ -25146,6 +25164,10 @@ function createRuntimeFallbackHook(ctx, options) {
|
|
|
25146
25164
|
{ model: fallbackResult.model, error: classifyProviderError(fallbackError) }
|
|
25147
25165
|
]);
|
|
25148
25166
|
return false;
|
|
25167
|
+
} finally {
|
|
25168
|
+
if (isRetryPartEvent) {
|
|
25169
|
+
interruptingSessions.delete(sessionID);
|
|
25170
|
+
}
|
|
25149
25171
|
}
|
|
25150
25172
|
};
|
|
25151
25173
|
return { handler };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skj1724/oh-my-opencode",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.14",
|
|
4
4
|
"description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|