Skip to content

[bug] /undo removed the last message, but didn't revert the code edit. #2642

@SsparKluo

Description

@SsparKluo

When undo the latest message, it shows revert 1 message and several tool calls, but the real file is not reverted to the previous content.

An example here: https://opencode.ai/s/zOL38Zus

I have /undo the latest message:

Image

but the file content is still:


# Demo File

This is a sample markdown file created as a demo.

- Item 1
- Item 2
- Item 3

## Code Block Example

```python
print("Hello, world!")
```

It happens with different models, including copilot/gpt-4.1, deepseek-reasoner, qwen3-coder.

Metadata

Metadata

Assignees

Labels

No labels
No labels

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