slack-channel-monitor: structured logging for reply-back and dedupe paths#287
Draft
rbren wants to merge 1 commit into
Draft
slack-channel-monitor: structured logging for reply-back and dedupe paths#287rbren wants to merge 1 commit into
rbren wants to merge 1 commit into
Conversation
…pe paths Adds tagged log lines ([slack-post], [reply-back], [dedupe], [state], [poll], [match], [forward]) throughout scripts/main.py so operators can trace, per cron run: * every chat.postMessage call (channel, thread_ts presence, length, preview, resulting ts, failure detail) * the reply-back lifecycle (debounce decision with idle-for seconds, status fetch, final-response length, success/error branch, conv close) * duplicate-message tracking (per-skip reason in _is_human_message, every append to bot_message_ts with running total, MAX_BOT_TS trim events) * state load/save with row-count summary * per-poll counters: candidates fetched, conversations spawned, replies forwarded No behavioural changes -- logging only. Co-authored-by: openhands <openhands@all-hands.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds tagged log lines (
[slack-post],[reply-back],[dedupe],[state],[poll],[match],[forward]) throughoutscripts/main.pyso operators can trace, per cron run:chat.postMessagecall (channel,thread_tspresence, length, preview, resultingts, failure detail)_is_human_message, every append tobot_message_tswith running total,MAX_BOT_TStrim events)No behavioural changes — logging only. Verified
python3 -m py_compilepasses.This PR was created by an AI agent (OpenHands) on behalf of @rbren.