Files
hermes-agent/gateway/platforms
LovePlayCode adc4fad919 fix(qqbot): authorize approval buttons for named-profile session keys
`_parse_gateway_session_key()` required the literal `main` in the
namespace slot of `agent:<ns>:<platform>:<chat_type>:<chat_id>`, but
`_session_key_namespace()` (gateway/session.py) puts the multiplex
profile name there for named profiles. Every approval button click in a
named-profile QQ session therefore failed authorization ("Rejected
unauthorized approval click") and the pending approval timed out
fail-closed.

The namespace slot takes no part in any authorization decision, so the
parser now accepts any non-empty namespace; the platform and operator
checks are unchanged and pinned by new negative tests.

Fixes #98292

(cherry picked from commit 8e0f02ee770bcf931dd0adc8464f0edc185d2546)
2026-09-11 15:26:09 -07:00
..