fix: normalize Telegram topic ids for inbound claim after resume#96
Open
kesslerio wants to merge 1 commit into
Open
fix: normalize Telegram topic ids for inbound claim after resume#96kesslerio wants to merge 1 commit into
kesslerio wants to merge 1 commit into
Conversation
This was referenced Apr 12, 2026
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.
What
conversationId + threadIdbefore inbound-claim lookupWhy
A resumed Telegram topic could get into a confusing state:
/cas_statusstill showed an active binding, but plain messages in that same topic fell through with "the bound plugin did not handle this message."The problem was narrower than it looked. The resume flow stores Telegram topics as
chatId:topic:threadId, but the inbound path was still looking up the raw chat id from the event. That meant the binding existed, but the later inbound message did not hit it.This patch only fixes that identity mismatch.
Tests
pnpm test src/controller.test.tspnpm typecheckpnpm testAI assistance
Codex drafted the patch and regression. I reviewed the diff, the repro, and the test results before opening the PR.
Fixes #94