From 91c349a65b40c159f0097daf325aed1955f3f7a2 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 22 Apr 2026 23:41:42 -0400 Subject: [PATCH] fix(main): list_tags returns ok=true so frontend re-renders pills Task 12's rewrite of list_tags dropped the ok flag from the response. loadTags in view-modal.js gates its render on 'if (j.ok)', so every POST add-tag returned 200, the feedback said 'Tag added', but the pill list never refreshed because loadTags silently dropped the response as not-ok. Co-Authored-By: Claude Opus 4.7 --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 156438e..7b2bf55 100644 --- a/app/main.py +++ b/app/main.py @@ -715,7 +715,7 @@ def list_tags(image_id): .order_by(Tag.kind.asc(), Tag.name.asc()) .all() ) - return jsonify(tags=[ + return jsonify(ok=True, tags=[ { "id": t.id, "name": t.name,