You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit Tool Failure (Could not find oldString): When models attempt to use the edit tool, it frequently fails with the error: Could not find oldString in [file_path]. It must match exactly, including whitespace and indentation. This happens across multiple different models.
OS/Shell Incompatibility: Models frequently try to execute bash or Linux-based commands/scripts (e.g., python3, npx commands configured for bash) despite the operating system environment running on Windows.
Steps to Reproduce
Run OpenCode on a Windows machine.
Ask the model to modify an existing file using the edit tool.
Observe the oldString matching error, forcing the model to fallback to alternative shell/python workarounds.
Activity
github-actions commentedon Oct 4, 2026
This issue might be a duplicate of existing issues. Please check:
Could not find oldStringfailures even when the text is present.