oc-transcript-save 0.2.0 → 0.2.1
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/index.ts +8 -9
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -292,15 +292,14 @@ export const TranscriptSavePluginV2 = {
|
|
|
292
292
|
const sessionID = resolveSessionId(event)
|
|
293
293
|
if (!sessionID) return
|
|
294
294
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
if (type === 'session.idle') {
|
|
295
|
+
// V2 replaced the ephemeral `session.status` / deprecated `session.idle`
|
|
296
|
+
// bus events (never delivered to plugins) with durable
|
|
297
|
+
// `session.execution.*` events. A turn ends in exactly one of these.
|
|
298
|
+
if (
|
|
299
|
+
type === 'session.execution.succeeded'
|
|
300
|
+
|| type === 'session.execution.failed'
|
|
301
|
+
|| type === 'session.execution.interrupted'
|
|
302
|
+
) {
|
|
304
303
|
schedule(sessionID)
|
|
305
304
|
}
|
|
306
305
|
}
|
package/package.json
CHANGED