Skip to content

Cherry-pick: Discord adapter fixes #675

@alexey-pelykh

Description

@alexey-pelykh

Context

Upstream OpenClaw commits fixing Discord adapter: thread lifecycle, slash commands,
attachment handling, voice channels, DM routing, forum post support.

26 commits from upstream scan window 501-1000.

Upstream Commits

Hash Subject
a7929abad Discord: thread bindings idle + max-age lifecycle (openclaw#27845) (thanks @osolmaz)
39a45121d fix(discord,slack): add SSRF policy for media downloads in proxy environments (openclaw#25475)
5056b6438 fix(discord): harden reconnect recovery and preserve message delivery
50e2674df fix(discord): unify dm command auth gating
881ac6200 test(discord): stabilize model picker timeout assertions
75596e937 refactor(discord): unify DM command auth handling
a62d55b28 test(discord): cover DM command decision flow
0c0f55692 fix(discord): unify reconnect watchdog and land openclaw#31025/openclaw#30530
427437429 Tests: type Discord gateway lifecycle wait mock
c80f34f0e test(discord): type gateway stop mock params
a95c8077e test(discord): type gateway stop mock params
e7cd4bf1b refactor(web): split trusted and strict web tool fetch paths
60330e011 fix(discord): log ignored messages from non-allowlisted channels
7f4d1b753 fix(discord): support applied_tags parameter for forum thread creation
4b2e35ab9 fix(discord): add token-based fallback for application ID resolution
3efd190ac test(discord): add unit tests for parseApplicationIdFromToken
8629b996a fix(discord): restrict token fallback to transport/timeout errors only
a25a73e70 discord: expose EventQueue listenerTimeout as configurable option (fixes openclaw#24458)
0a67033fe fix(discord): keep attachment metadata when media fetch is blocked
25b731c34 fix: harden discord media fallback regressions (openclaw#28906) (thanks @Sid-Qin)
9aba8422c fix(discord): accept cid in agent component interactions
e95f96f77 fix(discord): guard cid decode to avoid URIError
c14c17403 style: oxfmt for agent-components
c869ca4bb fix: harden discord agent cid parsing (openclaw#29013) (thanks @Jacky1n7)
6210d2e23 fix(discord): prevent wildcard component registration collisions
efd303dbc fix: normalize Discord wildcard sentinel parsing (openclaw#29459) (thanks @Sid-Qin)

Adaptation Notes

  • Discord extension in extensions/discord/ — KEEP layer
  • Community contributions included — preserve Co-authored-by trailers

Metadata

Metadata

Assignees

No one assigned

    Labels

    cherry-pickCherry-pick from upstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions