Skip to content

/undo will do a git checkout which modify ALL files mtime #25400

@jasonwch

Description

@jasonwch

Description

This is a serious bug (found out from log), when I use /undo command, it will perform the following action:

git --git-dir= --work-tree=/myworkingfolderwithgit -- .

This make ALL tracked files inside "/myworkingfolderwithgit" update its modified time. Now I cannot restore the original file modified timestamp. I can only do git restore-mtime to restore to initial commit timestamp.

Please fix this seriously

Plugins

Nip

OpenCode version

1.14.31

Steps to reproduce

using /undo at web interface (should be the same as TUI)

Screenshot and/or share link

NIL

Operating System

Ubuntu 24.04

Terminal

Web

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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