Skip to content

add missing ilink_user_id field to getConfig and sendTyping requests#5

Open
zjlu wants to merge 3 commits into
paceaitian:masterfrom
zjlu:master
Open

add missing ilink_user_id field to getConfig and sendTyping requests#5
zjlu wants to merge 3 commits into
paceaitian:masterfrom
zjlu:master

Conversation

@zjlu
Copy link
Copy Markdown

@zjlu zjlu commented May 6, 2026

The iLink Bot API requires ilink_user_id in both getConfig and sendTyping request bodies. Without it, the server returns ret: -2, errmsg: "ilink_user_id required", which causes the WeChat typing indicator to never display. This is a one-line addition in each function, passing the same userId value already available in the parameters.

zjlu and others added 3 commits May 6, 2026 23:11
The iLink Bot API requires ilink_user_id in both getConfig and sendTyping request bodies. Without it, the server returns ret: -2, errmsg: "ilink_user_id required", which causes the WeChat typing indicator to never display.
This is a one-line addition in each function, passing the same userId value already available in the parameters.
…Claude processing

- Add startTypingHeartbeat() that sends typing(1) every 3 seconds
- Modify stopTypingHeartbeat() to send typing(2) on cleanup
- Add stopAllTypingHeartbeats() for process exit cleanup
- In pollLoop: replace single typing(1) with heartbeat start
- In reply tool: stop heartbeat when Claude replies
- In main: register SIGINT/SIGTERM/exit handlers to clean up heartbeats
…Claude processing

- Add startTypingHeartbeat() that sends typing(1) every 3 seconds
- Modify stopTypingHeartbeat() to send typing(2) on cleanup
- Add stopAllTypingHeartbeats() for process exit cleanup
- In pollLoop: replace single typing(1) with heartbeat start
- In reply tool: stop heartbeat when Claude replies
- In main: register SIGINT/SIGTERM/exit handlers to clean up heartbeats
- Add prepare script to package.json for auto-compile on npm install
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.

1 participant