Skip to content

fix(ai): remember host session model for opencodeModel inherit - #454

Merged
EyJunge1 merged 1 commit into
tickernelz:mainfrom
EyJunge1:fix/453-remember-session-model
Oct 28, 2026
Merged

EyJunge1 merged 1 commit into
tickernelz:mainfrom
EyJunge1:fix/453-remember-session-model

Conversation

@EyJunge1

Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • Exercised the change locally (or N/A for docs/meta-only)
  • Noted any follow-up or known limitations

Validated:

  • bun test tests/opencode-provider.test.ts: pass (including new remember-before-model.json and ignore-literal-inherit cases)
  • bun run check: pass

Checklist

  • Branch is based on main (do not open PRs from commits already on main)
  • bun test passes (or N/A)
  • bun run typecheck passes (or N/A)
  • bun run check passes (format + lint + typecheck; or N/A)
  • Docs / README updated when behavior or contribution process changes

OpenCode v2 no longer writes model.json, so profile learning and other
non-prompt structured-output paths had no fallback for inherit. Keep the
last chat.params / V2 context model in-process and prefer it before the
legacy model.json read.
@EyJunge1
EyJunge1 merged commit 094f789 into tickernelz:main Oct 28, 2026
7 checks passed
@EyJunge1 EyJunge1 mentioned this pull request Oct 28, 2026
7 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opencodeModel: inherit fails outside auto-capture because OpenCode v2 no longer writes model.json

1 participant