Skip to content

fix(dingtalk): restore incoming dispatch after SDK recovery - #125

Open
KaiDecker wants to merge 1 commit into
NousResearch:mainfrom
KaiDecker:codex/dingtalk-lazy-sdk
Open

KaiDecker wants to merge 1 commit into
NousResearch:mainfrom
KaiDecker:codex/dingtalk-lazy-sdk

Conversation

@KaiDecker

Copy link
Copy Markdown

Summary

Restore inbound DingTalk callbacks when the adapter is imported before dingtalk-stream is available and the SDK becomes importable in the same process. The adapter could connect after the dependency check recovered, but the handler still inherited from its import-time fallback and lacked the SDK's raw_process() dispatch method.

The dependency recovery path now restores the SDK handler base before reporting success. This preserves the adapter's message handling and uses the SDK to dispatch and acknowledge callbacks.

This carries forward hermes-agent#82357 after DingTalk moved to Hermes Labs. Fixes NousResearch/hermes-agent#78597.

Validation

  • The new regression failed on Labs main with AttributeError: '_IncomingHandler' object has no attribute 'raw_process' and passed with the fix.
  • All 72 DingTalk plugin tests passed on Windows against Hermes Agent 9d4184a5f9. The regression uses the real dingtalk-stream==0.24.3 SDK and a stub WebSocket to verify message delivery and ACK 200.
  • Ruff and git diff --check passed.

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.

bug(dingtalk): inbound messages dropped forever when adapter import races the lazy SDK install (handler base frozen to object)

1 participant