Repository navigation
Conversation
Two independent bugs combine to make the Nextcloud Talk channel receive messages but never forward them: 1. The polling HTTP client used a 30s timeout, but Nextcloud's `lookIntoFuture=1` long-poll can legitimately take up to ~30.7s to return when there are no new messages (measured directly against a real instance). The client aborted just before the server replied, surfacing as a permanent `error sending request` on every poll cycle for every room. Raised to 45s for headroom. 2. Every incoming message is constructed with `is_group: true`, which triggers the bridge's mention-required filter for group chats (`bridge.rs`, "Ignoring group message ... not mentioned"). The Nextcloud adapter never implements @mention detection, so every message was silently dropped regardless of the timeout fix. Nextcloud Talk conversations here are 1:1 bot<->operator rooms, so `is_group: false` matches the actual usage and lets messages through. Verified end-to-end against a real Nextcloud Talk instance: without these two fixes the bot never responds; with them, it responds reliably to messages sent in a room.
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.
Summary
Two independent bugs combine to make the Nextcloud Talk channel receive messages but never forward them to the agent:
Long-poll timeout race. The polling HTTP client used a 30s timeout, but Nextcloud's
lookIntoFuture=1long-poll can legitimately take up to ~30.7s to return when there are no new messages (measured directly against a real instance:HTTP_CODE:304 TIME:30.694274s). The client aborted just before the server replied, surfacing as a permanenterror sending requeston every poll cycle, for every room. Raised the timeout to 45s for headroom.Missing @mention support trips the group-chat filter. Every incoming message is constructed with
is_group: true. The bridge's routing (bridge.rs) silently drops group messages that don't @mention the bot ("Ignoring group message ... not mentioned"), but the Nextcloud adapter never implements mention detection — so every message was dropped regardless of the timeout fix. Nextcloud Talk conversations used with this adapter are 1:1 bot<->operator rooms, sois_group: falsematches actual usage and lets messages through.Test plan
🤖 Generated with Claude Code