Skip to content

fix: always log media activity regardless of send result (by Wren) - #200

Merged
conoremclaughlin merged 1 commit into
mainfrom
wren/fix/media-activity-log-always
Mar 8, 2026
Merged

fix: always log media activity regardless of send result (by Wren)#200
conoremclaughlin merged 1 commit into
mainfrom
wren/fix/media-activity-log-always

Conversation

@conoremclaughlin

Copy link
Copy Markdown
Owner

Summary\n\n- Activity stream logging for media sends should always fire (like a finally block) so we can debug failures\n- Moved logOutgoingTelegram back before the all-failed throw\n- Included sent=N failed=N counts in the activity log content for at-a-glance debugging\n\nFollow-up to PR #199 based on Conor's feedback — the activity log is our debugging record and should capture all attempts, not just successes.\n\n## Test plan\n\n- [ ] Trigger a media send that fails — verify activity stream entry is created with failed=1\n- [ ] Trigger a successful media send — verify activity stream entry shows sent=1 failed=0\n\n🤖 Generated with Claude Code

Activity stream entries should always be recorded (like a finally block)
so we can debug failures. Moved the log back before the throw and
included sent/failed counts in the log content.

Co-Authored-By: Wren <noreply@anthropic.com>
@conoremclaughlin
conoremclaughlin merged commit e5eeaf4 into main Mar 8, 2026
4 checks passed
conoremclaughlin added a commit that referenced this pull request Mar 18, 2026
…und 2)

Threads with >200 messages will anchor on message #200, not the true
latest. Needs server-side 'latest message ID' support or descending
order in get_thread_messages to fix properly. Documented as known
limitation — 200+ message threads are extremely unlikely in practice.

Co-Authored-By: Wren <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant