You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto-capture is silently dead on opencode 2.x: session.idle envelope read misses event.data #78
On opencode 2.x the bus envelope carries the payload under event.data, not event.properties. The identity handler in the same file already handles both shapes — which is only there because 2.x delivered session.created without properties:
So on a real 2.x host every session.idle hits the typeof sid !== "string" guard and continues: the capture model is never called, no auto_capture_* evidence rows are ever written, and the feature is silently dead — with no error anywhere. The live store's entire history contains zero auto_capture_* rows, consistent with this (auto-capture was also off in that config, so that is corroboration, not proof; the envelope analysis is the proof).
Scope. Pre-existing on main, affects every published version since auto-capture shipped; only opt-in installs that turned it on are affected — and they would believe it works because it is silent. Found while verifying the question raised in #67 (author: on a fake 2.x host capture made 0 model calls — correct).
Fix. Same defensive envelope read as the identity handler:
Test. A fake 2.x-shape host (payload under event.data.sessionID) asserting the capture model gets called — the existing capture tests use the 1.x properties shape and therefore pass while the real feature is dead. Consider auditing the other event?.sessionID reads on the bus path (the message.updated measured handler already reads both) while in here.
Activity
abogartz-opencode-self-improvement commentedon Oct 24, 2026
🎉 This issue has been resolved in version 0.8.9 🎉
The release is available on:
Your semantic-release bot 📦🚀