mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-22 08:59:26 -10:00
Sessions created through the raw API with no model (agent: null, model: null) run fine on the server's default model, but the prompt status line rendered only the stored session model and claimed 'No provider selected - Connect a provider' even with providers connected. The session selection now falls back to GET /api/model/default, gated on the model still being available, so 'No provider selected' appears only when there genuinely is no usable provider.