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
captureModel should default to the session's model — event.model is already delivered to every hook and never read #139
agent:readyHuman-approved for autonomous work by ocsi-fixercaptureAuto-capture pipeline: envelope compatibility, trigger coverage, trigger economicsenhancementNew feature or requestfix:pr-openocsi-fixer opened a PR for this ticketreleasedseverity:lowEnhancement, refactor proposal, decision record, docs polish
autoCapture: true requires a second config key, captureModel: "provider/id", or capture disables itself (src/index.ts:1152-1163). The justification on offer is consent ("zero-token default"), but that argument does not survive contact with the code:
autoCapture: trueis already the explicit opt-in. Requiring a second piece of configuration knowledge is not consent, it is a syntax tax — and its failure mode is a console.warn nobody reads, i.e. the same silent shape as the dead-pipeline bug.
Inheritance is nearly free, and the data is already in hand. The SDK's SessionRequest type declares a readonly model: Model.Ref, so every session hook the plugin registers already carries the session's actual model — including the session.context hook at src/index.ts:984, which reads event.sessionID and never event.model (grep for a .model property read in src/index.ts returns zero hits). ctx.model.default.get() → {providerID, modelID} | undefined is the fallback.
Fix
Omitted captureModel resolves to the per-session ref last seen on session.context; else ctx.model.default.get(); only if both are missing warn and disable. Today's behaviour becomes the last resort, not the first.
Record model= on every capture evidence line so cost is attributable to a named model — this is the real answer to the cost-surprise concern.
Keep autoCapture default off; the zero-token default is unchanged.
Acceptance
Red-first: autoCapture: true with nocaptureModel, against a fake host whose session.context carries a model ref, must fire a capture pass with that ref. Red on main today, where it disables instead.
Triage 2026-11-03: marked agent:ready. Spec reviewed against main 3d34a63: finding stands — src/capture/runtime.ts still disables the whole subscription when captureModel is missing/invalid (no .model read from the session.context event). Acceptance is explicit red-first: autoCapture: true with no captureModel against a fake host whose session.context carries a model ref must fire a capture pass with that ref; red on main today, green after. No overlap with open PR #269.
osi-spec-hash: 3ae9e1424330770a 2026-11-03T17:21:43Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.
agent:readyHuman-approved for autonomous work by ocsi-fixercaptureAuto-capture pipeline: envelope compatibility, trigger coverage, trigger economicsenhancementNew feature or requestfix:pr-openocsi-fixer opened a PR for this ticketreleasedseverity:lowEnhancement, refactor proposal, decision record, docs polish
Activity
abogartz commentedon Nov 3, 2026
Triage 2026-11-03: marked
agent:ready. Spec reviewed against main3d34a63: finding stands —src/capture/runtime.tsstill disables the whole subscription whencaptureModelis missing/invalid (no.modelread from the session.context event). Acceptance is explicit red-first:autoCapture: truewith nocaptureModelagainst a fake host whosesession.contextcarries a model ref must fire a capture pass with that ref; red on main today, green after. No overlap with open PR #269.ocsi-triager commentedon Nov 3, 2026
osi-spec-hash: 3ae9e1424330770a 2026-11-03T17:21:43Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.
Merge pull request #270 from abogartz/fix-issue-139-inherit-session-m…
chore(release): 0.15.15 [skip ci]
abogartz-opencode-self-improvement commentedon Nov 3, 2026
🎉 This issue has been resolved in version 0.15.15 🎉
The release is available on:
Your semantic-release bot 📦🚀