Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(wechat): add persistent typing indicator - #278

Merged
lsdefine merged 1 commit into
lsdefine:mainfrom
succ985:feat/weixin-typing-indicator
May 7, 2026
Merged

lsdefine merged 1 commit into
lsdefine:mainfrom
succ985:feat/weixin-typing-indicator

Conversation

@succ985

@succ985 succ985 commented May 6, 2026

Copy link
Copy Markdown
Contributor

Problem

The WeChat bot's typing indicator was not working. The previous implementation called once with an empty , which had no effect on the iLink API.

Solution

The iLink API requires a valid obtained from first (same pattern used by Hermes Agent).

Changes

  1. **** — new method on that calls to fetch the ticket
  2. Continuous typing loop — replaces the single call with a background thread that refreshes the typing indicator every 2 seconds
  3. Clean stop — uses to stop the typing loop immediately when message handling completes

Before

After

Testing

Verified on a live WeChat bot instance — typing indicator now shows "对方正在输入..." while the agent is processing.

The previous implementation called send_typing once with an empty
typing_ticket, which had no effect. The iLink API requires a valid
typing_ticket obtained from getconfig first.

Changes:
- Add get_typing_ticket() method to fetch ticket via getconfig API
- Replace single send_typing call with continuous typing loop
- Typing refreshes every 2 seconds until agent finishes processing
- Stops cleanly via threading.Event when message handling completes
@lsdefine
lsdefine merged commit 0148446 into lsdefine:main May 7, 2026
FeiNiaoBF pushed a commit to FeiNiaoBF/GenericAgent that referenced this pull request May 8, 2026
The previous implementation called send_typing once with an empty
typing_ticket, which had no effect. The iLink API requires a valid
typing_ticket obtained from getconfig first.

Changes:
- Add get_typing_ticket() method to fetch ticket via getconfig API
- Replace single send_typing call with continuous typing loop
- Typing refreshes every 2 seconds until agent finishes processing
- Stops cleanly via threading.Event when message handling completes

Co-authored-by: succ985 <[email protected]>
bendusy pushed a commit to bendusy/GenericAgent that referenced this pull request May 14, 2026
The previous implementation called send_typing once with an empty
typing_ticket, which had no effect. The iLink API requires a valid
typing_ticket obtained from getconfig first.

Changes:
- Add get_typing_ticket() method to fetch ticket via getconfig API
- Replace single send_typing call with continuous typing loop
- Typing refreshes every 2 seconds until agent finishes processing
- Stops cleanly via threading.Event when message handling completes

Co-authored-by: succ985 <[email protected]>
RocketLi pushed a commit to RocketLi/GenericAgent that referenced this pull request May 18, 2026
The previous implementation called send_typing once with an empty
typing_ticket, which had no effect. The iLink API requires a valid
typing_ticket obtained from getconfig first.

Changes:
- Add get_typing_ticket() method to fetch ticket via getconfig API
- Replace single send_typing call with continuous typing loop
- Typing refreshes every 2 seconds until agent finishes processing
- Stops cleanly via threading.Event when message handling completes

Co-authored-by: succ985 <[email protected]>
lsdefine pushed a commit that referenced this pull request Jul 23, 2026
The previous implementation called send_typing once with an empty
typing_ticket, which had no effect. The iLink API requires a valid
typing_ticket obtained from getconfig first.

Changes:
- Add get_typing_ticket() method to fetch ticket via getconfig API
- Replace single send_typing call with continuous typing loop
- Typing refreshes every 2 seconds until agent finishes processing
- Stops cleanly via threading.Event when message handling completes

Co-authored-by: succ985 <[email protected]>
Imzl-zl pushed a commit to Imzl-zl/GenericAgent that referenced this pull request Aug 5, 2026
The previous implementation called send_typing once with an empty
typing_ticket, which had no effect. The iLink API requires a valid
typing_ticket obtained from getconfig first.

Changes:
- Add get_typing_ticket() method to fetch ticket via getconfig API
- Replace single send_typing call with continuous typing loop
- Typing refreshes every 2 seconds until agent finishes processing
- Stops cleanly via threading.Event when message handling completes

Co-authored-by: succ985 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants