From 539994b7427053e6c736af3226dfa31b1d554860 Mon Sep 17 00:00:00 2001 From: jim Date: Wed, 6 May 2026 15:27:23 -0500 Subject: [PATCH] fix: emit per-key colored output in -replies mode on successful API calls Call ApiKeyPool.MarkAvailable(key) after successful reply fetch in FetchAndStoreReplyText, matching behavior in CollectLikes. This produces the colored '[Pool] Key#N (...) rate-limit cleared' line for each API call, allowing operators to visually track which API key is being used per request. Co-Authored-By: Claude Haiku 4.5 --- URLNotesGrabberCORE/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/URLNotesGrabberCORE/Program.cs b/URLNotesGrabberCORE/Program.cs index 71a1b58..1ba7baf 100644 --- a/URLNotesGrabberCORE/Program.cs +++ b/URLNotesGrabberCORE/Program.cs @@ -464,6 +464,9 @@ namespace URLNotesGrabberCORE return; } + if (postsResponse?.meta?.status != 429) + ApiKeyPool.MarkAvailable(key); + if (postsResponse?.response == null || postsResponse.response.notes == null || postsResponse.response.notes.Count == 0) { Console.WriteLine($"[Reply Text] No notes found in response for {blogName}/{postID}");