GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Subtask commands do not inherit model · Issue #6928 · anomalyco/opencode

Subtask commands do not inherit model #6928

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Subtask commands do not inherit model#6928
Copy link
Assignees
rekram1-node

Description

@JUVOJustin
JUVOJustin
opened on Jan 5, 2026
Issue body actions

Description

If running a command as a subtask, the model is not inherited from the agent but from the config.

Config

{
    "$schema": "https://opencode.ai/config.json",
    "autoupdate": true,
    "model": "opencode/big-pickle",
    "agent": {
        "build": {
            "model": "github-copilot/claude-sonnet-4.5",
            "permission": {
                "external_directory": "deny",
                "context7*": "allow"
            }
        },
        "plan": {
            "model": "github-copilot/gpt-5.1",
            "permission": {
                "external_directory": "deny",
                "context7*": "allow"
            }
        },
        "explore": {
            "model": "opencode/big-pickle"
        }
    },
    "mcp": {
        "context7": {
            "type": "remote",
            "url": "https://mcp.context7.com/mcp"
        }
    }
}

Plugins

No response

OpenCode version

1.1.2

Steps to reproduce

  1. New session
  2. Switch to another model than the agents default model. e.g. GLM 4.7
  3. Run the command
  4. Switch in the session of the command and see that the default model is used despite the previous selection
  5. Be sad that your precious github copilot premium requests are used

Screenshot and/or share link

https://www.loom.com/share/3215afd3c9154a17b79b861b30c39cc8

https://opncd.ai/share/uzhsRzKm

Operating System

No response

Terminal

No response

Activity

  1. JUVOJustin
    added
    bugSomething isn't working
    on Jan 5, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 5, 2026
  3. github-actions commented on Jan 5, 2026

    @github-actions
    github-actionsBot
    on Jan 5, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Subagent with specific model results in model change in build and plan mode #6636: Subagent with specific model results in model change in build and plan mode

    Both issues describe problems with model configuration not being properly inherited or maintained when using subagents/task commands. Feel free to ignore if this doesn't address your specific case.

  4. ArmirKS
    added a commit that references this issue on Feb 19, 2026

    fix(session): prevent concurrent prompt() from creating duplicate use…

    358f94b
  5. rjmorales13
    added 2 commits that reference this issue on Mar 23, 2026

    feat(plugin): add chat.model hook for dynamic model routing for token…

    f7b1cf8

    feat: add chat.model hook with reference token-optimizer plugin

    8c23eea
  6. github-actions commented on Mar 25, 2026

    @github-actions
    github-actionsBot
    on Mar 25, 2026 – with GitHub Actions
    Contributor
    More actions

    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. thdxr
    removed
    bugSomething isn't working
    on May 3, 2026
  8. rekram1-node
    closed this as not plannedon May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.