Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ PHASE2_WAITING_PERIOD=2 hours
PHASE3_WAITING_PERIOD=3 months
# Threads that run Phase 1 (duplicate search, auxiliary replies) on matching r/all comments
PHASE1_WORKERS=4
# How new comments are read: 'ids' (every new comment, by ID range) or 'listing' (the r/all listing, which
# misses most comments; kept as a fallback)
STREAM_SOURCE=ids
# With STREAM_SOURCE=ids: threads fetching blocks of 100 comment IDs, taking turns between the 4 accounts
STREAM_READERS=4
# How new comments are read: 'listing' (the r/all listing, polled on STREAM_READERS threads at once) or
# 'stream' (PRAW's r/all stream, one request at a time, which misses most comments; kept as a fallback)
STREAM_SOURCE=listing
# With STREAM_SOURCE=listing: threads polling the r/all comment listing, taking turns between the 4 accounts
# (at most 20 requests a minute each; Reddit allows 100 a minute per account, so keep it at or below 12)
STREAM_READERS=12

# ------------------------------------------------------------------------------
# 1. Primary Bot: AutoCrosspostBot (u/AutoCrosspostBot)
Expand Down
124 changes: 57 additions & 67 deletions AGENTS.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions changelog.d/+phase2-deleted-comment-crash.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**Phase 2 Stuck on a Deleted Comment:** when Reddit returned no data for a stored comment, writing the "comment unavailable" log line fetched the comment again and raised, so the whole Phase 2 pass crashed on that comment every 20 minutes and none of the waiting comments were checked. The log line now falls back to the comment ID, and the comment is dropped as unavailable.
1 change: 1 addition & 0 deletions changelog.d/+read-comments-from-listing.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**Comment Reader Works Again After Reddit's New Comment IDs:** since about 2026-10-21 Reddit gives every new comment a 64-bit, 13-character ID that is no longer sequential, so the reader that fetched blocks of 100 consecutive IDs read nothing for days. The bot now polls the r/all comment listing on `STREAM_READERS` threads (12 by default, 3 per account), handing each comment on once, and the heartbeat counts `gaps`: requests that may have missed comments. `STREAM_SOURCE=ids` is gone (it falls back to `listing` with a warning), the old one-request-at-a-time stream is now `STREAM_SOURCE=stream`, and the heartbeat warns whenever no comment was read in its interval.
163 changes: 0 additions & 163 deletions scripts/verify_comment_ids.py

This file was deleted.

Loading
Loading