BUG: Model picker switch doesn't update the extension's tracked model; session started text-only breaks on image attach
Summary
Changing the model in the model picker changes the API used by the chat functionality, but it does not update the extension's knowledge of which model is actually in use. A session started with a text-based model keeps that stale tracked model even after the picker is switched to a multimodal one, so the session breaks once an image is attached.
Context
Extension harmoniqs.amicode@0.2.1, engine base v1.18.10-amicode.4 (harmoniqs/opencode), Linux x86_64. Happens while switching models mid-session via the model picker.
Expected vs actual
- Expected: after switching to a multimodal model in the picker, attaching an image to the session works.
- Actual: the session still behaves as a text-only model — attaching an image fails because the API handling still reflects the original model while the extension believes the model was switched.
Diagnostics
- extension:
harmoniqs.amicode@0.2.1
- engine:
v1.18.10-amicode.4 (harmoniqs/opencode, ref cf4f06b4)
- OS: Linux
7.0.0-29-generic x86_64
- no run involved — no run pointer
intake: not-ready — mature per the maturity contract before picking up
suggested_path: B
diagnostics: inline
upstream: n/a
BUG: Model picker switch doesn't update the extension's tracked model; session started text-only breaks on image attach
Summary
Changing the model in the model picker changes the API used by the chat functionality, but it does not update the extension's knowledge of which model is actually in use. A session started with a text-based model keeps that stale tracked model even after the picker is switched to a multimodal one, so the session breaks once an image is attached.
Context
Extension
harmoniqs.amicode@0.2.1, engine basev1.18.10-amicode.4(harmoniqs/opencode), Linux x86_64. Happens while switching models mid-session via the model picker.Expected vs actual
Diagnostics
harmoniqs.amicode@0.2.1v1.18.10-amicode.4(harmoniqs/opencode, refcf4f06b4)7.0.0-29-genericx86_64intake: not-ready — mature per the maturity contract before picking up
suggested_path: B
diagnostics: inline
upstream: n/a