Feature hasn't been suggested before.
Describe the enhancement you want to request
When you use OpenCode, the Edit tool requires that the timestamp of the file matches the last known timestamp; however there are cases where the file has not changed, but the coding model is forced to re-read the file. That wastes context and time.
There's a few cases where this can happen:
- /undo : Simply undoing when a file was edited. When you want to tweak behaviour.
- Making a manual change to a file in a code editor with AutoSave enabled and changing your mind
- Reverting a file in git (manual undo). e.g. 'I wanted to keep some of the changes'
In the rare case the timestamp doesn't match- we could instead compare by hash.
Just a long time pet peeve of mind, thought I'd mention.
Feature hasn't been suggested before.
Describe the enhancement you want to request
When you use OpenCode, the
Edittool requires that the timestamp of the file matches the last known timestamp; however there are cases where the file has not changed, but the coding model is forced to re-read the file. That wastes context and time.There's a few cases where this can happen:
In the rare case the timestamp doesn't match- we could instead compare by hash.
Just a long time pet peeve of mind, thought I'd mention.