Skip to content

Custom commands with agents should(?) change to the agent session. #3329

@ferrao

Description

@ferrao

Description

Currently, when a custom command with a primary agent is executed, the session is not changed, which prevents further interactive conversations with it, unless the user manually changes to the agent configured in the command.

This behavior has been described in #3222 and #2315

OpenCode version

No response

Steps to reproduce

  1. Create an agent named myagent with:
mode: primary
  1. Create a custom command:
command: mycmd
agent: myagent
subtask: false
  1. Trigger the command with /mycmd
  2. Observe the session has not changed to myagent

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

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