fix(desktop): restore Bot roster route resolution - #92856
fangliquanflq wants to merge 1 commit into
Conversation
Duplicate of #92811. Both restore the same activeBotRoute implementation at the same plugin location; this submission adds test coverage but no distinct repair mechanism. |
|
Tested this regression independently on macOS/Apple Silicon with v0.20.5 at Validation completed:
Full sanitized repair report: Suggested hardening for this PR: wrap |
|
Thanks for the independent macOS validation and the hardening suggestions. I checked them against the latest upstream
I verified the current behavior at No additional change is appropriate on this branch: the duplicate observation is accurate, and the newer upstream routing/alias implementation already covers both hardening points without reintroducing |
|
Closing as superseded — this was a correct fix when written, and thank you for the fast response during the morning's roster breakage. The Related fixes in the same cluster: #92811, #92842, #92793 — same verdict. |
Summary
profiles.listpinned to the live(connectionId, profile)pair on multi-source desktopsRoot cause
useRoster()calledactiveBotRoute()before requestingprofiles.list, but the helper definition was absent. The resultingReferenceErrorprevented the first roster request on every platform, leaving the roster empty and New Group Chat disabled.Testing
node --test src/plugins/hermes-bots/tests/cross-connection-bots.test.mjsnpm run check:test:plugins(413 passed)node --check src/plugins/hermes-bots/plugin.jsnode --check src/plugins/hermes-bots/tests/cross-connection-bots.test.mjsRelated Issue
Closes #92843