Skip to content

Task tool does not inherit parent session's thinking level (variant) #20810

Closed as not planned

Description

@jbmml

Description

When a parent session has a non-default thinking level selected (e.g., "high"), subtasks spawned via the task tool always use the default variant. The parent's variant field is available on the assistant message (msg.info.variant) but is not passed to SessionPrompt.prompt() in task.ts.

The PromptInput schema already accepts an optional variant field, and the internal subtask path in prompt.ts correctly inherits variant from the parent user message (line 572: variant: lastUser.variant). Only the external task tool path is missing this propagation.

Steps to reproduce

  1. Start a session and select a non-default thinking level (e.g., "high")
  2. Prompt the model to spawn a subtask via the task tool
  3. Observe the subtask runs with the default thinking level instead of "high"

Environment

  • OpenCode: latest dev (8daeacc98)
  • OS: macOS 15.4 (arm64)

Activity

  1. added a commit that references this issue on Apr 3, 2026
    287cd5d
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 3, 2026
  3. github-actions commented on Apr 3, 2026

    @github-actions
    Contributor

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

  4. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

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

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