[PR #13489] fix(opencode): improve message filtering for summary update during revert and unrevert #14684

Open
opened 2026-02-16 18:19:27 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13489

State: open
Merged: No


What does this PR do?

Fixes #13488

Fixes the filter for getting messages to build new diffs off. Previously the messages used were messages AFTER the reverted message with the reverted message, that meant the summary status was showing the files reverted, when instead it should show the files remaining.

This PR updates that and makes sure that only the previous messages changes get shown, and also makes the update on unrevert command.

Something to Think about

Large Messages being passed in to get the diff, could it result in slow response? I might take a look to see what is a possibility.

But at least if we have the feature now it should work properly, so this fixes that.

How did you verify your code works?

https://github.com/user-attachments/assets/e9253162-8805-429f-8b3e-6c22c16302b6

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13489 **State:** open **Merged:** No --- ### What does this PR do? Fixes #13488 Fixes the filter for getting messages to build new diffs off. Previously the messages used were messages AFTER the reverted message with the reverted message, that meant the summary status was showing the files reverted, when instead it should show the files remaining. This PR updates that and makes sure that only the previous messages changes get shown, and also makes the update on unrevert command. **Something to Think about** Large Messages being passed in to get the diff, could it result in slow response? I might take a look to see what is a possibility. But at least if we have the feature now it should work properly, so this fixes that. ### How did you verify your code works? https://github.com/user-attachments/assets/e9253162-8805-429f-8b3e-6c22c16302b6
yindo added the pull-request label 2026-02-16 18:19:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14684