Skip to content

[Bug]: Prometheus(Claude model) consulting Momus mostly results in "tool_use ids were found without tool_result blocks" error #2070

@zephy358

Description

@zephy358

Prerequisites

  • I will write this issue in English (see our Language Policy)
  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation or asked an AI coding agent with this project's GitHub URL loaded and couldn't find the answer

Bug Description

Mostly this is cuased by a interleaved tool call. Related issue

Basically, Prometheus reads plan, consults Momus, and then modify plan will trigger "should read before write" error because there's a momus feedback message in between tool calls.

Although this is a opencode bug. I was wondering if omo can do something on your side?

Steps to Reproduce

  1. Ask Prometheus to continue planning a plan file that is interrupted somehow.
  2. Allows Promethus to consult Momus.
  3. After Momus feedback, Prometheus starts modify, opencode shows "should read before write error", then this bug occurs and session cannot continue. Undo doesn't help as long as it consults Momus.

Expected Behavior

"tool_use ids were found without tool_result blocks" error

Actual Behavior

tool_use ids were found without tool_result blocks immediately after error

Doctor Output

1. Loaded plugin is outdated
   Loaded 3.8.1, latest 3.8.3.
   Fix: Update: cd ~/.config/opencode && bun update oh-my-opencode
   Affects: plugin features

2. Comment checker unavailable
   Comment checker binary is not installed.
   Fix: Install @code-yeongyu/comment-checker
   Affects: comment-checker hook

Error Logs

Configuration

Additional Context

No response

Operating System

macOS

OpenCode Version

3.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions