Skip to content

[FEATURE]: Compare files by Hash as fallback before marking them as 'Must be Read Again' on Edits if Timestamp Doesn't Match #3681

@Sewer56

Description

@Sewer56

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionUsed for feature requests, proposals, ideas, etc. Open discussion

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions