fix(edit): coerce replaceAll string to boolean before execution #1736
+7
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
replaceAllas a string ("false"/"true") instead of a boolean, causing opencode's Go binary to reject it withexpected boolean, received stringtool-execute-before.ts, following the existing pattern used for thetasktool'ssubagent_typecoercionError being fixed
Change
Summary by cubic
Coerce the edit tool’s replaceAll argument from "true"/"false" strings to a boolean before execution. Prevents the Go binary’s schema error: “expected boolean, received string.”
Written for commit f1be1fc. Summary will update on new commits.