[PR #12030] fix(opencode): Improve "Read" tool output to aid subsequent uses of the "Edit" tool #14039

Closed
opened 2026-02-16 18:18:51 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12030

State: closed
Merged: No


What does this PR do?

This PR helps models (tested with Haiku 4.5) use the "Edit" tool more effectively with regards to leading whitespace after reading context given by the "Read" tool. Fixes #10656

How did you verify your code works?

I tasked agents with writing Haskell (white-space sensitive) and they improved considerably their success rate (to consistently perfect edits) when using the Edit tool as to not introduce leading-whitespace related errors

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12030 **State:** closed **Merged:** No --- ### What does this PR do? This PR helps models (tested with Haiku 4.5) use the "Edit" tool more effectively with regards to leading whitespace after reading context given by the "Read" tool. Fixes #10656 ### How did you verify your code works? I tasked agents with writing Haskell (white-space sensitive) and they improved considerably their success rate (to consistently perfect edits) when using the Edit tool as to not introduce leading-whitespace related errors
yindo added the pull-request label 2026-02-16 18:18:51 -05:00
yindo closed this issue 2026-02-16 18:18:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14039