Fix Wisdom channel replies with polling fallback#64
Merged
Conversation
acedatacloud-dev
force-pushed
the
fix/wisdom-poll-fallback
branch
from
July 21, 2026 09:51
e86e1a9 to
05bcc28
Compare
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
Wisdom accepts WebSocket clients but currently never publishes
message.new, while inbound messages are available through/api/messages/poll. This leftcoding-bridge channels startconnected but unable to answer WeChat messages.Msg_*conversation IDs for policy/session identity while using the display name only for Wisdom sendsoffset <= 1000range and fail closed on unknown conversation typesVerification
pytest -q tests/test_channels_wechat.py-> 30 passedchannels doctor-> token acceptedhttps://api.acedata.cloud-> succeededsucceededcaplogcapture failures when run together (expected records were emitted to stderr; representative test passes in isolation)Known upstream limit
Wisdom
/api/messages/pollreturns the newest 500 rows and exposes no continuation cursor. A burst above 500 rows between polls cannot be recovered by the client. This change uses the maximum page size, one-second overlap, deduplication, and retry backoff; lossless high-volume recovery requires a future oldest-first/keyset Wisdom API.对抗评审 (reviewer: claude-subagent, 3 rounds)
total-> fixed by short-page pagination within the API offset boundsend_targetoffset <= 1000validation -> fixed by capping requests at the last legal pageAutomatic production E2E
Verified after the final fix with no manual dispatcher injection:
2026-07-21T10:38:57Zoutcome=okin39.718swith a 747-character reply2026-07-21T10:39:47Zstatus=succeededsend_failedor provider error was logged