Manual fetch paths don't run AI classification #96
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
New posts are saved from three places —
scheduler._fetch_stream_job, the manualPOST /api/v1/hashtags/{id}/fetchendpoint, and the review page's liveview_fetch_all_active_streams(refresh) — but only the scheduler runs_classify_fetched_posts. The other two fetch + save posts without classifying them, so AI verdicts (ai_would_rejectbadge, AI auto-reject) only populate on scheduler-driven fetches.Clicking "Fetch All Active Streams" (which loops
POST /hashtags/{id}/fetch) therefore does not invoke any AI processing.Findings:
save_fetched_postsis called from three places —scheduler._fetch_stream_job, the manualfetch_hashtag_stream(POST /hashtags/{id}/fetch), and the review page's liveview_fetch_all_active_streams. Only the scheduler runs classification.Plan:
_first_alt_text) out ofscheduler._classify_fetched_postsinto a sharedclassify_posts(posts)in a newservices/ai_pipeline.py.classify_posts+reject_ai_flagged_postsfrom all three fetch spots, so manual fetches (and "Fetch All") classify and honour AI auto-reject too.classify_posts, plus an API-fetch test asserting classification runs onPOST /hashtags/{id}/fetch.Branch:
feat/issue-96-classify-manual-fetch, PR intofeat/issue-80-collectwithRefs #96.