Skip to content

fix(gateway): preserve streamed reply routing in Feishu chats - #15258

Closed
shamork wants to merge 3 commits into
NousResearch:mainfrom
shamork:fix/feishu-streamed-reply-routing
Closed

shamork wants to merge 3 commits into
NousResearch:mainfrom
shamork:fix/feishu-streamed-reply-routing

Conversation

@shamork

@shamork shamork commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve reply routing for streamed gateway sends and post-stream media delivery
  • restore reply-aware Feishu approval/button handling and keep thread metadata semantics separate
  • add Feishu-focused gateway regressions for streaming, retry, progress, approval, and post-stream file delivery

Testing

  • scripts/run_tests.sh tests/gateway/test_run_progress_topics.py::test_post_stream_media_file_replies_to_originating_feishu_message
  • scripts/run_tests.sh tests/gateway/test_run_progress_topics.py::test_run_agent_interim_commentary_replies_to_originating_feishu_message
  • scripts/run_tests.sh tests/gateway/test_feishu_reply_routing.py::TestFeishuReplyRouting::test_send_with_thread_metadata_only_uses_create_not_reply
  • scripts/run_tests.sh tests/gateway/test_stream_consumer.py::TestSendOrEditMediaStripping::test_first_send_preserves_initial_reply_to

qiongyu1999 and others added 3 commits April 25, 2026 00:56
Add a new environment variable FEISHU_GROUP_MENTION_REQUIRED (default: true)
that controls whether an explicit @mention is needed before the bot responds
to group messages.

When set to false, the bot responds to all messages in groups where
FEISHU_GROUP_POLICY allows access, without requiring an @mention. This is
useful for small team groups where the bot should act as an always-on
assistant.

The existing behavior (mention required) is preserved by default.
@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/feishu Feishu / Lark adapter labels Apr 24, 2026
@shamork shamork closed this Apr 24, 2026
@shamork
shamork deleted the fix/feishu-streamed-reply-routing branch April 24, 2026 17:13
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/feishu Feishu / Lark adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants