Skip to content

fix(gateway): stop typing before sending response to prevent race condition - #20780

Open
doskey wants to merge 1 commit into
NousResearch:mainfrom
doskey:fix/gateway-typing-race
Open

fix(gateway): stop typing before sending response to prevent race condition#20780
doskey wants to merge 1 commit into
NousResearch:mainfrom
doskey:fix/gateway-typing-race

Conversation

@doskey

@doskey doskey commented May 6, 2026

Copy link
Copy Markdown

After sending a response on Telegram, the typing indicator can re-appear because _keep_typing may fire another typing before _stop_typing_task() cancels it in the finally block. Fix: pause typing via pause_typing_for_chat() right before _send_with_retry.

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery platform/telegram Telegram bot adapter labels May 6, 2026
@teknium1 teknium1 added the sweeper:blast-moderate Sweeper blast radius: moderate — a subsystem or single platform label Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists platform/telegram Telegram bot adapter sweeper:blast-moderate Sweeper blast radius: moderate — a subsystem or single platform type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants