feat(weixin): add typing indicator support via ilink sendtyping API#558
Open
WEIFENG2333 wants to merge 1 commit intochenhg5:mainfrom
Open
feat(weixin): add typing indicator support via ilink sendtyping API#558WEIFENG2333 wants to merge 1 commit intochenhg5:mainfrom
WEIFENG2333 wants to merge 1 commit intochenhg5:mainfrom
Conversation
Implement the core.TypingIndicator interface for the Weixin (personal WeChat) platform, showing a "typing..." bubble while the agent is processing. - Add getConfig API call to fetch typing_ticket from ilink - Add sendTyping API call (start/stop) to ilink/bot/sendtyping - Cache typing tickets per peer with 10-minute TTL - Proactively refresh ticket on inbound message receipt - Repeat typing status every 5 seconds (matching Telegram behavior) - Send best-effort stop signal when processing completes Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
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
core.TypingIndicatorinterface for the Weixin (personal WeChat / ilink) platformtyping_ticketfromilink/bot/getconfig, caches per peer with 10-minute TTLStartTypingChanges
platform/weixin/types.gotypingStatusStart/Stopconstants,sendTypingReq,getConfigReq/Resptypesplatform/weixin/client.gogetConfig()andsendTyping()API methodsplatform/weixin/weixin.goStartTyping(), typing ticket cache, proactive ticket refresh on inbound messageContext
The ilink bot HTTP API supports a typing indicator via the
ilink/bot/sendtypingendpoint (documented in the OpenClaw/hermes-agent weixin adapter). All other major platforms in cc-connect (Telegram, Discord, Slack, Feishu) already implementcore.TypingIndicator, but Weixin was missing it.The implementation follows the same pattern as Telegram's
StartTyping: send an initial status, repeat on a ticker, and stop when the returned function is called. The main difference is that Weixin requires atyping_ticketobtained fromgetconfig, so we cache it with a TTL and proactively fetch it when messages arrive.Test Plan
go build ./platform/weixin/...— compiles cleanlygo test ./platform/weixin/...— all 17 existing tests pass