Description
After using a model that uses the apply_patch tool (e.g. ChatGPT 5.3 Codex), the diff shown does not reflect the formatter changes that were also applied.
Plugins
No response
OpenCode version
1.2.15
Steps to reproduce
- Create a file named
repro.py:
def a():
"""x"""
return 'y'
- Apply this patch to
repro.py (ask the agent to update "x" to "x updated"):
*** Begin Patch
*** Update File: /absolute/path/to/repro.py
@@
- """x"""
+ """x updated"""
*** End Patch
- Inspect
repro.py after patch. It becomes:
def a():
"""x updated"""
return "y"
- Observe that the diff shown does NOT show the formatting change that was performed.
Screenshot and/or share link
edit tool:
apply_patch tool:
Operating System
Windows 11 WSL
Terminal
Windows Terminal
Description
After using a model that uses the
apply_patchtool (e.g. ChatGPT 5.3 Codex), the diff shown does not reflect the formatter changes that were also applied.Plugins
No response
OpenCode version
1.2.15
Steps to reproduce
repro.py:repro.py(ask the agent to update "x" to "x updated"):repro.pyafter patch. It becomes:Screenshot and/or share link
edittool:apply_patchtool:Operating System
Windows 11 WSL
Terminal
Windows Terminal