@distlang/opencode-plugin 0.1.11 → 0.1.12
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/package.json +1 -1
- package/src/index.js +3 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -375,15 +375,16 @@ export const DistlangAIDebugger = async ({ project, directory, client }) => {
|
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
|
|
378
|
+
|
|
378
379
|
if (event.type === "session.idle" || event.type === "session.error") {
|
|
379
380
|
const sessionID = configuredValue(event.sessionID, recorder.activeSessionID());
|
|
380
381
|
if (!sessionID) {
|
|
381
|
-
await debugLog("Session
|
|
382
|
+
await debugLog("Session snapshot event missing sessionID", { type: event.type, eventKeys: Object.keys(event) });
|
|
382
383
|
return;
|
|
383
384
|
}
|
|
384
385
|
const result = event.type === "session.error" ? "error" : "success";
|
|
385
386
|
await debugLog(`${event.type} observed`, { sessionID, result });
|
|
386
|
-
await
|
|
387
|
+
await uploadSessionSnapshot(sessionID, result);
|
|
387
388
|
return;
|
|
388
389
|
}
|
|
389
390
|
|