ankitects / ankitects/anki

Editing and Regrouping Masks Causing Card Progress Loss in Anki

Open
#3,967 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
30.5k
Forks
3.2k
Avg merge
2d 7h
Merged PRs (30d)
66

Description

I’m experiencing a problem when editing existing grouped masks. For example, if I want to add a new mask or edit an existing one, I first ungroup the selection, make the edits, and then regroup the selection. This process works about 90% of the time. However, sometimes when I follow the same steps, I encounter an error such as:

No cloze ⁨15⁩ found on card. Please either add a cloze deletion, or use the Empty Cards tool.
![Image](https://github.com/user-attachments/assets/25d48b9b-c18a-471d-95a7-22417b14f4d3)

When this happens, the edited group of masks is treated as a new card, causing me to lose my learning progress on the original card.

![Image](https://github.com/user-attachments/assets/547e7af2-6076-4c3b-a6e5-33b91337a86e)

I’ve tried several solutions, including:

Solution 1 : Grouping masks one by one using Shift (sometimes works).
![Image](https://github.com/user-attachments/assets/c5ba7999-e6b1-4462-8aeb-fd49d9913ff5)

Solution 2 :First selecting the old masks without ungrouping them, then adding the new/edited ones to the selection.
![Image](https://github.com/user-attachments/assets/be8b1af1-9da8-4422-9c55-c18a2df1b17a)

Solution 3 : Making the old group smaller, creating a new group, then selecting both the old and new groups and grouping them together (this method consistently works and preserves my card status as “green”).
![Image](https://github.com/user-attachments/assets/3e552b6d-27a3-48a8-95e5-c92b520aea49)

Anki Versions tested: 25.05 Beta 2, 25.02.1, and other recent versions (Windows, Qt6)
OS: Windows 11
Hardware: Intel Core i5 (6th Gen), 16GB RAM

this is a sample of the deck that i have used :
[Regrouping Masks.apkg](https://github.com/zakivx/ankitest/blob/main/Regrouping%20Masks.apkg)

Contributor guide

Open the contributing guide

Research direction

No source file, test, or code entry point is named. Reproduce the problem with the attached “Regrouping Masks.apkg” while ungrouping, editing, and regrouping masks, then trace the mask-regrouping path; done means the original card progress is preserved and the missing-cloze error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.