Skip to content

fix(yuanbao): let group mentions interrupt active turns - #78166

Open
iacker wants to merge 1 commit into
NousResearch:mainfrom
iacker:fix/yuanbao-group-interrupt
Open

fix(yuanbao): let group mentions interrupt active turns#78166
iacker wants to merge 1 commit into
NousResearch:mainfrom
iacker:fix/yuanbao-group-interrupt

Conversation

@iacker

@iacker iacker commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • dispatch addressed Yuanbao group messages immediately instead of serializing them behind the current turn
  • preserve the existing queue fallback for unaddressed group traffic and custom pipelines
  • let the shared gateway busy-input policy handle group @mentions and owner commands the same way as DMs

Regression coverage

The new test starts one blocked group @mention, sends a second @mention, and proves the second reaches handle_message before the first completes. Reverting the dispatch change makes the test fail with a timeout because the second message remains in the group queue.

Tests

  • python -m pytest tests/test_yuanbao_pipeline.py tests/test_yuanbao_integration.py tests/test_yuanbao_shutdown.py -q (90 passed)
  • ruff check gateway/platforms/yuanbao.py tests/test_yuanbao_pipeline.py

Fixes #78134

Signed-off-by: iacker <82095453+iacker@users.noreply.github.com>
@alt-glitch alt-glitch added type/bug Something isn't working comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages labels Aug 4, 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 sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Yuanbao group chats: @-mention during active turn is queued, never interrupts — unlike DMs

2 participants