small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo

fix(checklist): keep at most 50 checked items per session

The 50-item cap counted only open items, so repeating add and check kept every completed row until the session was deleted, and every transfer carried them all. ledger.check now deletes the session's oldest checked items past max_done (50) in the same transaction, through the (session, done, id) index, so a session holds at most 100 rows. The guide states the rule for open and finished rows, the model and the Python docstring say only the 50 newest checked items are kept, and the hook section notes that held is the loop's in-memory count across every hook, so another hook's hold pre-empts the reminder. checklist_test checks that 55 add-and-check rounds leave the 50 newest.


Author aly.codes
Date Commit Parent a28bc202
+62 -18
5 changed files
+62 -18
5 changed files