oh-my-opencode 2.4.2 → 2.4.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 +12 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6151,11 +6151,22 @@ function createPreemptiveCompactionHook(ctx, options) {
|
|
|
6151
6151
|
await ctx.client.tui.showToast({
|
|
6152
6152
|
body: {
|
|
6153
6153
|
title: "Compaction Complete",
|
|
6154
|
-
message: "Session compacted successfully",
|
|
6154
|
+
message: "Session compacted successfully. Resuming...",
|
|
6155
6155
|
variant: "success",
|
|
6156
6156
|
duration: 2000
|
|
6157
6157
|
}
|
|
6158
6158
|
}).catch(() => {});
|
|
6159
|
+
state2.compactionInProgress.delete(sessionID);
|
|
6160
|
+
setTimeout(async () => {
|
|
6161
|
+
try {
|
|
6162
|
+
await ctx.client.session.promptAsync({
|
|
6163
|
+
path: { id: sessionID },
|
|
6164
|
+
body: { parts: [{ type: "text", text: "Continue" }] },
|
|
6165
|
+
query: { directory: ctx.directory }
|
|
6166
|
+
});
|
|
6167
|
+
} catch {}
|
|
6168
|
+
}, 500);
|
|
6169
|
+
return;
|
|
6159
6170
|
} catch (err) {
|
|
6160
6171
|
log("[preemptive-compaction] compaction failed", { sessionID, error: err });
|
|
6161
6172
|
} finally {
|