Skip to content

fix(telegram): fail closed on missing topic threads - #83381

Merged
steipete merged 2 commits into
mainfrom
codex/telegram-remove-threadless-fallback
May 18, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/telegram-remove-threadless-fallback

Conversation

@steipete

@steipete steipete commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Remove Telegram's old message-thread-not-found retry that stripped message_thread_id and resent into the base chat.
  • Apply fail-closed behavior across text, media, sticker, poll, and draft preview sends.
  • Update regression coverage and changelog for the safer topic behavior.

Verification

  • pnpm test extensions/telegram/src/send.test.ts extensions/telegram/src/draft-stream.test.ts extensions/telegram/src/reply-parameters.test.ts
  • pnpm check:changed (Testbox tbx_01krwcfdvkbr75em1gpwfw3jr0, GitHub Actions run 26009316801)
  • .agents/skills/autoreview/scripts/autoreview --mode local --reviewer codex --fallback-reviewer none

Real behavior proof

Behavior addressed: Telegram topic sends that fail with message thread not found no longer retry without message_thread_id into the base chat.
Real environment tested: Maintainer-reviewed mocked Telegram Bot API error path plus Blacksmith Testbox changed gate. This is a fail-closed cleanup for a destructive invalid-topic fallback; live Telegram was not exercised for this PR.
Exact steps or command run after this patch: pnpm test extensions/telegram/src/send.test.ts extensions/telegram/src/draft-stream.test.ts extensions/telegram/src/reply-parameters.test.ts; pnpm check:changed; autoreview local.
Evidence after fix: Terminal output from the focused regression run showed 3 files and 140 tests passed. Testbox tbx_01krwcfdvkbr75em1gpwfw3jr0 ran pnpm check:changed and completed with exit 0. Autoreview reported no accepted/actionable findings.
Observed result after fix: Tests assert one Telegram API call with message_thread_id for text, media, sticker, poll, and draft preview failures; no retry without message_thread_id occurs and no fallback success log is emitted.
What was not tested: Live Telegram API send against a real forum topic for this cleanup PR; maintainer override requested because the changed branch is the mocked destructive error path.

Refs #83302.

@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram size: M maintainer Maintainer-authored PR labels May 18, 2026
@clawsweeper

clawsweeper Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(telegram): fail closed on missing topic threads This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete steipete added the proof: override Maintainer override for the external PR real behavior proof gate. label May 18, 2026
@steipete
steipete merged commit 69cea57 into main May 18, 2026
107 checks passed
@steipete
steipete deleted the codex/telegram-remove-threadless-fallback branch May 18, 2026 02:07
@steipete

Copy link
Copy Markdown
Contributor Author

Landed via squash merge onto main.

  • Gate: PR checks green on head 11abb9c; local focused Telegram tests passed; Testbox check:changed passed on tbx_01krwcfdvkbr75em1gpwfw3jr0; autoreview clean.
  • Land commit: 11abb9c
  • Merge commit: 69cea57

Thanks @steipete.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
* fix(telegram): fail closed on missing topic threads

* docs(changelog): reference telegram topic cleanup
galiniliev pushed a commit to galiniliev/openclaw that referenced this pull request May 25, 2026
* fix(telegram): fail closed on missing topic threads

* docs(changelog): reference telegram topic cleanup
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
* fix(telegram): fail closed on missing topic threads

* docs(changelog): reference telegram topic cleanup
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
* fix(telegram): fail closed on missing topic threads

* docs(changelog): reference telegram topic cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram maintainer Maintainer-authored PR proof: override Maintainer override for the external PR real behavior proof gate. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant