Skip to content

Fix OpenCode ACP model discovery and selection - #345

Merged
ymichael merged 1 commit into
mainfrom
bb/investigate-model-loading-slowdown-thr_ims4xjxub4
Jun 24, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/investigate-model-loading-slowdown-thr_ims4xjxub4

Conversation

@ymichael

@ymichael ymichael commented Jun 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • discover OpenCode ACP models from the session models.availableModels / currentModelId state
  • select OpenCode models with ACP-native session/set_model instead of launching opencode --model ... acp
  • keep support for standardized ACP configOptions model selectors and custom CLI-style ACP agents
  • add regression coverage for session-model discovery and selection

Validation

  • pnpm exec turbo run test --filter=@bb/agent-runtime
  • pnpm exec turbo run typecheck --filter=@bb/agent-runtime
  • pnpm exec turbo run typecheck --filter=@bb/server
  • pnpm exec turbo run test --filter=@bb/server
  • git diff --check

Manual verification

  • Probed local OpenCode 1.0.79 ACP: session/new returns 63 models via models.availableModels with opencode/big-pickle as current/default.
  • Verified opencode --model <id> acp exits with help instead of starting ACP.
  • Verified session/set_model selects opencode/deepseek-v4-flash-free and OpenCode logs show inference using providerID=opencode modelID=deepseek-v4-flash-free.
  • Checked /api/v1/system/execution-options?providerId=acp-opencode returns 63 named OpenCode models; warm calls were about 0.9-1.1s locally.

@ymichael
ymichael force-pushed the bb/investigate-model-loading-slowdown-thr_ims4xjxub4 branch from 4060aed to 2906172 Compare June 24, 2026 17:36
@ymichael ymichael changed the title Fix OpenCode model listing Fix OpenCode ACP model discovery and selection Jun 24, 2026
@ymichael
ymichael merged commit 48b77bc into main Jun 24, 2026
6 checks passed
@ymichael
ymichael deleted the bb/investigate-model-loading-slowdown-thr_ims4xjxub4 branch June 24, 2026 17:58
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.

1 participant