From 4fa191d276ef1d270e2721dc602b47ea93d9bd18 Mon Sep 17 00:00:00 2001 From: AJ Slater Date: Fri, 15 May 2026 00:18:56 -0700 Subject: [PATCH] fix(librarian): register JanitorCleanupFavoritesTask in scribe priority JanitorCleanupFavoritesTask was wired into janitor dispatch, nightly queueing, and the admin task map, but missing from _SCRIBE_TASK_PRIORITY. When the task hit the scribe queue, tuple.index() raised ValueError, the put silently failed, and "Cleanup Orphans Favorites" stayed pending forever. Add it to the priority tuple and align Bookmarks/Settings ordering with _NIGHTLY_TASK_CLASSES so the two tuples stay in sync. Co-Authored-By: Claude Opus 4.7 (1M context) --- codex/librarian/scribe/priority.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codex/librarian/scribe/priority.py b/codex/librarian/scribe/priority.py index 814824ed5..b1204821f 100644 --- a/codex/librarian/scribe/priority.py +++ b/codex/librarian/scribe/priority.py @@ -11,6 +11,7 @@ JanitorCleanCoversTask, JanitorCleanFKsTask, JanitorCleanupBookmarksTask, + JanitorCleanupFavoritesTask, JanitorCleanupSessionsTask, JanitorCleanupSettingsTask, JanitorCodexUpdateTask, @@ -55,8 +56,9 @@ JanitorCleanFKsTask, JanitorCleanCoversTask, JanitorCleanupSessionsTask, - JanitorCleanupSettingsTask, JanitorCleanupBookmarksTask, + JanitorCleanupSettingsTask, + JanitorCleanupFavoritesTask, SearchIndexClearTask, SearchIndexCleanStaleTask, SearchIndexSyncTask,