opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: expose acp thinking variants

Open validatedev opened this issue 7 hours ago • 2 comments

What does this PR do?

Fixes #8973 by exposing thinking variants in ACP model selection:

  • Appends model+variant entries (e.g., claude-sonnet-4/high) to models.availableModels
  • Parses variant from session/set_model selections and keeps session variant in sync
  • Returns proper variant metadata via _meta (modelId, variant, availableVariants) instead of empty object
  • Updated @agentclientprotocol/sdk to 0.13.0

How did you verify your code works?

  • bun run typecheck
  • Zed exposes thinking variants via model selector
  • Verified session/set_model responses include correct _meta.opencode with variant info

Screenshot

CleanShot 2026-01-17 at 12 59 39@2x

validatedev avatar Jan 17 '26 10:01 validatedev