[codex] fix(telegram): avoid duplicate pollers#1343
Closed
cola-runner wants to merge 1 commit intoanthropics:mainfrom
Closed
[codex] fix(telegram): avoid duplicate pollers#1343cola-runner wants to merge 1 commit intoanthropics:mainfrom
cola-runner wants to merge 1 commit intoanthropics:mainfrom
Conversation
|
Thanks for your interest! This repo only accepts contributions from Anthropic team members. If you'd like to submit a plugin to the marketplace, please submit your plugin here. |
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 changed
getUpdatesfs.watch, with interval fallback if file watching is unavailableWhy
Telegram only allows one long-poll consumer per bot token. Today, duplicate Telegram plugin instances can be spawned by parallel Claude sessions or by loading both the installed cache copy and the marketplace source copy. Those extra pollers compete for
getUpdates, trigger409 Conflict, steal inbound messages from each other, and keep extra Bun processes alive in the background.This change keeps one active poller per state directory and makes every other instance outbound-only. That preserves reply/react/edit tools without letting multiple processes fight over inbound delivery.
Validation
git diff --checkpolling.lockowner and confirmed it logsrunning tools-only modepolling.lockowner and confirmed it reclaims the lock and exits cleanly on shutdownRelated