Skip to content

opencode ACP from Xcode 27 beta 2 uses default model big-pickle ignoring opencode.json or model selected in TUI #34743

Description

@velouria

Description

On macOS 27 beta 2 (26A5368g) configure opencode 1.17.11 custom ACP agent in Xcode 27 beta 2 (27A5209h). Set up opencode with opencode.json specifying the model to be used served from LMStudio (same issue occurs with ollama).
When prompting from Xcode, opencode rather than using the specified model and LMStudio (or ollama) it always uses big-pickle. opencode never connects to LMStudio or ollama.

Plugins

None

OpenCode version

1.17.13

Steps to reproduce

  1. configure opencode 1.17.13 on macOS 27. Set up opencode.json to connect to LMStudio/ollama with the model to be used.
  2. run opencode cli and in the TUI select the model to be used (if not already selected). It seems that it needs to be running in order to be used by Xcode.
  3. configure Xcode 27 beta custom agents to use opencode in Xcode Settings > Intelligence > Add an Agent…
Image
  1. In Xcode enter a prompt and check opencode logs located at ~/.local/share/opencode/log/opencode.log notice that the the session and subsequent messages are for model.id=big-pickle model.providerID=opencode
  2. It seems that opencode ACP never reads the opencode.json configuration. Also there is no way to pass arguments to specify the provider and/or the model to be used.

Screenshot and/or share link

No response

Operating System

macOS 27 beta 2 (26A5368g)

Terminal

macOS Terminal.app

Regression

Might be related to: #13644

*edited version number as it reproduces in 1.17.13

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions