Skip to content

tool.execute.before: output.args mutations not propagated to tool execution #26909

Closed

Description

@gretel

Mutating output.args in a tool.execute.before hook doesn't affect the tool's behavior.

Evidence: The opencode-workload-router plugin sets output.args.model to override subagent model. Toast fires confirming the routing decision, but the LLM log shows the subagent used the agent-default model instead.

service=llm providerID=wandb modelID=deepseek-ai/DeepSeek-V4-Flash mode=subagent

The [tier-4] prompt mapped to deepseek-ai/DeepSeek-V4-Pro, but the subagent ran Flash.

Tested: args.model (object), args.modelID, args.providerID, args.variant — all ignored.

Expected: output.args mutations in tool.execute.before should propagate to tool execution.

Activity

  1. github-actions commented on May 11, 2026

    @github-actions
    Contributor

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

    Please close this issue if it is indeed a duplicate of one of the above, or clarify how it differs.

  2. gretel commented on May 11, 2026

    @gretel
    Author

    closing as duplicate, sorry.

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