Skip to content

fix: preserve tool_use input fields through forward transform pipeline - #57

Open
jkoopmann wants to merge 1 commit into
zacdcook:masterfrom
jkoopmann:fix/preserve-tool-use-inputs
Open

fix: preserve tool_use input fields through forward transform pipeline#57
jkoopmann wants to merge 1 commit into
zacdcook:masterfrom
jkoopmann:fix/preserve-tool-use-inputs

Conversation

@jkoopmann

Copy link
Copy Markdown

Tool call inputs (e.g. filesystem paths like .openclaw/...) were being mutated by Layer 2/3/6 string replacements, causing OpenClaw's tool runtime to receive wrong paths and fail with ENOENT.

Fix: mask all tool_use input objects before Layer 2/3/6 transforms using the same bracket-depth scanner pattern as the existing thinking-block masker. Inputs are restored verbatim after transforms complete.

This is the symmetric counterpart to the existing reverse-mapping fix — that fixed response corruption; this fixes request corruption.

Closes #29

Tool call inputs (e.g. filesystem paths like .openclaw/...) were being
mutated by Layer 2/3/6 string replacements, causing OpenClaw's tool
runtime to receive wrong paths and fail with ENOENT.

Fix: mask all tool_use input objects before Layer 2/3/6 transforms using
the same bracket-depth scanner pattern as the existing thinking-block
masker. Inputs are restored verbatim after transforms complete.

This is the symmetric counterpart to the existing reverse-mapping fix —
that fixed response corruption; this fixes request corruption.

Closes zacdcook#29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug Report: Intermittent ENOENT on Files That ls Can See (macOS, Node.js/OpenClaw)

1 participant