mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-03 21:23:54 +08:00
The request counter alone was not enough: a rule write started for task A holds A's loadRules closure, so when it resolved after a switch it fetched A's rules and — being the newest request — painted them into task B's card. The card now also reads a taskIdRef that names the task it shows. Every read and write returns early when that ref has moved, and the counter still drops a response that a newer request for the same task replaced. add, saveEdit and toggleTargetGate return early too, so a late response cannot clear the next task's half-typed form or leave its switch busy. Verified: npx tsc --noEmit clean, npx biome ci . 0 errors (196 files), npm run build:static compiled.