Skip to content

[FEATURE]: [BUG] Tool calls missing required parameters after upgrade (1.51.10) #29076

Closed as not planned

Description

@youmingdeshuchong83

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Reproduction Steps
Upgrade opencode to version 1.51.10
Run a session where the agent needs to call tools like read or bash
Observe that required parameters are silently dropped (e.g., filePath for read, command for bash)
Expected Behavior
Tool calls should include all required parameters as specified in the tool schema
The agent should be able to recover from errors without infinite looping
Actual Behavior
read tool is called without filePath → SchemaError(Missing key at ["filePath"])
bash tool is called without command → SchemaError(Missing key at ["command"])
Agent gets into an infinite loop of retrying the same failing call instead of stopping to fix itself
Affected Scope
At least two separate instances affected (not isolated)
This did NOT occur before upgrading to 1.51.10
Error Examples
The read tool was called with invalid arguments: SchemaError(Missing key at ["filePath"])
The bash tool was called with invalid arguments: SchemaError(Missing key at ["command"])
Suspected Cause
This appears to be a regression introduced in 1.51.10 — possibly related to changes in how required parameters are validated or propagated during tool calls. The agent loses awareness of required fields and cannot self-recover from the errors.

Activity

  1. github-actions commented on May 24, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The title starts with [FEATURE]: but the content describes a bug/regression — please use the correct template (Bug Report) and update the title accordingly
    • The issue appears to be AI-generated: the highly structured sections ("Reproduction Steps", "Expected Behavior", "Actual Behavior", "Affected Scope", "Error Examples", "Suspected Cause") read as machine-generated walls of text, which is not acceptable per our guidelines
    • The Bug Report template requires system information (OS, terminal, OpenCode version) — these fields are missing

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. github-actions commented on May 24, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

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