[GH-ISSUE #211] [claude-kiro] Built-in tools fail to execute when using opencode due to excessive compression stripping tool information #151

Closed
opened 2026-02-27 07:18:14 +03:00 by kerem · 1 comment
Owner

Originally created by @tickernelz on GitHub (Jan 11, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/211

Problem Description

I'm experiencing an issue with the tools compression feature in claude-kiro. When using the opencode functionality, built-in tools (such as the todo tool) cannot be executed because critical information about these tools is being stripped during compression. I suspect the compression logic has become too strict in recent changes, as this functionality was working correctly before the latest fix.

Environment Information

  • OS: Ubuntu

Steps to Reproduce

  1. Run Opencode
  2. Attempt to use a built-in tool (e.g., todo tool)
  3. Observe that the tool fails to execute
  4. Check the compressed output and notice that tool metadata/information is missing

Expected vs Actual Behavior

Expected: Built-in tools should execute properly when using opencode, with all necessary tool information preserved during compression.

Actual: Built-in tools fail to execute because the compression process strips away essential tool metadata and configuration information, making them unavailable at runtime.

Attempts Made

  • I reviewed the recent changes to the compression logic and noticed increased strictness in metadata filtering
  • I tested with previous versions before the compression fix was applied, and confirmed that built-in tools worked correctly

This appears to be a regression introduced by the recent compression improvements, where the logic is now too aggressive in removing what it considers "unused" information, but is actually critical for tool execution.

Originally created by @tickernelz on GitHub (Jan 11, 2026). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/211 ## Problem Description I'm experiencing an issue with the tools compression feature in claude-kiro. When using the opencode functionality, built-in tools (such as the todo tool) cannot be executed because critical information about these tools is being stripped during compression. I suspect the compression logic has become too strict in recent changes, as this functionality was working correctly before the latest fix. ## Environment Information - OS: Ubuntu ## Steps to Reproduce 1. Run Opencode 2. Attempt to use a built-in tool (e.g., todo tool) 3. Observe that the tool fails to execute 4. Check the compressed output and notice that tool metadata/information is missing ## Expected vs Actual Behavior **Expected:** Built-in tools should execute properly when using opencode, with all necessary tool information preserved during compression. **Actual:** Built-in tools fail to execute because the compression process strips away essential tool metadata and configuration information, making them unavailable at runtime. ## Attempts Made - I reviewed the recent changes to the compression logic and noticed increased strictness in metadata filtering - I tested with previous versions before the compression fix was applied, and confirmed that built-in tools worked correctly This appears to be a regression introduced by the recent compression improvements, where the logic is now too aggressive in removing what it considers "unused" information, but is actually critical for tool execution.
kerem closed this issue 2026-02-27 07:18:14 +03:00
Author
Owner

@justlovemaki commented on GitHub (Jan 11, 2026):

I can use the built-in todo tool. It's possible your single request is too large, causing excessive compression. Please disable unnecessary tools.

<!-- gh-comment-id:3734463973 --> @justlovemaki commented on GitHub (Jan 11, 2026): I can use the built-in todo tool. It's possible your single request is too large, causing excessive compression. Please disable unnecessary tools.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#151
No description provided.