Commit Graph
5 Commits
Author SHA1 Message Date
chengyongru 2245fc0ee5 fix(qq): resolve reply context before attachment downloads 2026-10-09 13:32:32 +08:00
GZY-SUPER-HACKER 634d0e9188 feat(qq): show the agent the message a user quoted
QQ's C2C/group events never carry `message_reference`; botpy models that field
because the object is shared with guild messages, but QQ never sends it here.
The quoted original arrives in `msg_elements`, linked from
`message_scene.ext` by `ref_msg_idx`, and neither field is parsed by botpy —
`BaseMessage.__slots__` also drops the raw payload, so the content is lost
before the channel can see it.

Capture the raw payload from the message constructor, resolve the quoted text
by matching `ref_msg_idx` against the element's `msg_idx`, and surface it as a
`[Reply to: ...]` prefix on the inbound content, mirroring the inbound reply
context Telegram already provides.

The capture is idempotent and degrades silently if the botpy shape differs;
`_quoted_content_for` prefers fields on the message object when a future botpy
exposes them, so the hook becomes dead weight rather than a correctness
dependency.
2026-10-09 13:32:32 +08:00
Xubin Ren 0afebd4747 fix(qq): keep inbound URL validation off the event loop
Add mixed-DNS, invalid-scheme, cancellation and partial-write coverage. Isolate media roots for activated QQ tests.
2026-09-15 13:49:49 +08:00
KDB 9d106bd44d test(qq): check SDK availability at the runtime module 2026-09-15 13:49:49 +08:00
chengyongru 462a0dfb0f refactor(channels): make built-in channels self-contained (#4908)
* refactor(channels): own setup and instance contracts

* refactor(channels): isolate management contracts

* refactor(channels): normalize activation contracts

* fix(channels): enforce management contracts

* refactor(channels): finish setup ownership migration

* fix(channels): harden management contracts

* fix(channels): enforce lazy loading and runtime ownership

* fix(feishu): make multi-instance startup idempotent

* fix(webui): render channel setup contracts cleanly

* fix(feishu): stop websocket clients cleanly

* fix(channels): enforce persistence and activation gates

* fix(channels): preserve global feature action scope

* fix(channels): apply defaults for single plugins

* fix(channels): enforce management contract boundaries

* refactor(feishu): remove identity helper indirection

* fix(channels): preserve management setup contracts

* refactor(channels): generalize instance settings UI

* refactor(channels): package channel plugins with web UI metadata

* refactor(channels): make built-ins self-contained packages

* test(channels): colocate tests with channel packages

* fix(dingtalk): use official brand icon

* feat(channels): colocate webui translations

* docs(channels): clarify plugin ownership

* test(exec): remove output wait race

* refactor(channels): unify plugin descriptors

* fix(channels): enforce descriptor-owned contracts

* refactor(channels): finish package-owned plugin setup

* refactor(channels): use repository-owned packages only

* fix(channels): self-describe dependencies and runtime state

* fix(channels): warn about legacy entry points
2026-07-19 23:30:49 +08:00