Skip to content

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

Closed as not planned

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

Activity

  1. github-actions commented on Oct 21, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. self-assigned this
    on Oct 21, 2025
  3. rekram1-node commented on Oct 21, 2025

    @rekram1-node
    Collaborator

    will fix

  4. plsgivemeachane commented on Dec 28, 2025

    @plsgivemeachane

    +1. Should be fixed soon!

  5. shanepadgett commented on Dec 29, 2025

    @shanepadgett

    I look forward to this change as I default to interactive workflows, but also think we should make consider a system of allowing for agent changing and permissioning around it like Kilo Code does. Its architect agent can ask you to switch to the coding agent when it feels you have finished making decision with it so it can get to work.

  6. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  7. removed
    bugSomething isn't working
    on May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions