Skip to content

@agent inline mentions in chat do not use the agent's configured model #28809

@mortenhaahr

Description

@mortenhaahr

Description

When mentioning an agent inline in a chat prompt using @agent-name, the request is not routed through the agent's configured model. Instead, the message is sent using whatever model is currently selected in the chat panel.

Plugins

None

OpenCode version

1.15.7

Steps to reproduce

  1. Configure an agent in opencode.json that uses a different model than the default chat model. E.g., the one I use in the video called other:
---
description: Example model
mode: all
temperature: 0.1
max_steps: 6
model: opencode-go/minimax-m2.7
permission:
  "*": allow
---

You are just a normal agent
  1. In an OpenCode CLI session, type "@other hello friend" in the chat input and submit.
  2. Observe that the response does NOT come from the other agent's model - it goes through the default chat model instead.
  3. (Optional): Go to the provider's usage page and verify that the request was routed through the default chat model.

Screenshot and/or share link

opencode_report.mp4

Operating System

Ubuntu 22.04

Terminal

Alacritty

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
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