anki
anki copied to clipboard
Filtered Deck errors break Undo/Redo
Tested on Anki 25.08b5, Windows 11. I was only able to reproduce the issue with Filtered Deck-related errors.
Steps to reproduce
- Perform an action (e.g., add a new note).
- Trigger a Filtered Deck error. For example:
- Go to a non-filtered deck and press R (rebuild), triggering:
This action can only be used on a filtered deck - Or create a filtered deck that matches 0 cards, triggering:
No cards matched the provided search. Some cards may have been excluded because they are in a different filtered deck, or suspended.
- Go to a non-filtered deck and press R (rebuild), triggering:
- Press
Ctrl+Zor go toEdit > Undo.- Expected result: The last action is undone.
- Actual result: Nothing happens.
Anki clears the undo queue on backend errors, but this is not really needed for some kinds of errors.