Files
lemon07r 194da3cc9b Release v1.0.6: fix chat.params crash and add reasoning variants
Two user-visible fixes:

1. Runtime crash 'undefined is not an object (evaluating
   input.provider.info.id)' on any chat. The @opencode-ai/plugin
   ProviderContext type claims .info.id exists, but opencode's
   session/llm.ts::stream passes the flat ProviderConfig as provider
   (research/opencode/packages/opencode/src/session/llm.ts ~line 168).
   Gate on input.model.providerID instead — matches cloudflare.ts,
   codex.ts, github-copilot/copilot.ts.

2. Ctrl+T reasoning variants (off/auto/low/medium/high) were not
   available. README config now declares model.variants, which opencode
   merges into options before chat.params runs; the hook normalizes
   'auto' to omit both thinking and reasoning_effort so Moonshot picks
   dynamically, matching kimi-cli's 'nothing passed' default.

Also:
- AGENTS.md rule 4 updated with 'auto' row and the providerID gating
  warning, citing the live 2026-04-17 repro.
- test/plugin.test.ts input shape updated to match runtime; added a
  test for the 'auto' variant.
2026-04-17 04:19:59 -04:00
..