openclaw/src/discord/monitor
Lalit Singh 01d76e4799
feat(routing): add thread parent binding inheritance for Discord (#3892)
* feat(routing): add thread parent binding inheritance for Discord

When a Discord thread message doesn't match a direct peer binding,
now checks if the parent channel has a binding and uses that agent.

This enables multi-agent setups where threads inherit their parent
channel's agent binding automatically.

Changes:
- Add parentPeer parameter to ResolveAgentRouteInput
- Add binding.peer.parent match type
- Resolve thread parent early in Discord preflight
- Pass parentPeer to resolveAgentRoute for threads

Fixes thread routing in Discord multi-agent configurations where
threads were incorrectly routed to the default agent instead of
inheriting from their parent channel's binding.

* ci: trigger fresh macOS runners

* Discord: inherit thread bindings in reactions

* fix: add changelog for thread parent binding (#3892) (thanks @aerolalit)

---------

Co-authored-by: Lalit Singh <lalit@clawd.bot>
Co-authored-by: OSS Agent <oss-agent@clawdbot.ai>
Co-authored-by: Shadow <shadow@clawd.bot>
2026-01-31 20:30:45 -06:00
..
allow-list.ts Discord: add PluralKit sender identity resolver (#5838) 2026-01-31 19:50:06 -06:00
exec-approvals.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
exec-approvals.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
format.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
listeners.ts feat(routing): add thread parent binding inheritance for Discord (#3892) 2026-01-31 20:30:45 -06:00
message-handler.inbound-contract.test.ts fix: Failing tests due to import sorting. 2026-02-01 11:05:46 +09:00
message-handler.preflight.ts feat(routing): add thread parent binding inheritance for Discord (#3892) 2026-01-31 20:30:45 -06:00
message-handler.preflight.types.ts Discord: fix PK sender identity context 2026-01-31 20:20:17 -06:00
message-handler.process.test.ts fix: Failing tests due to import sorting. 2026-02-01 11:05:46 +09:00
message-handler.process.ts Discord: fix PK sender identity context 2026-01-31 20:20:17 -06:00
message-handler.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
message-utils.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
native-command.ts feat(routing): add thread parent binding inheritance for Discord (#3892) 2026-01-31 20:30:45 -06:00
presence-cache.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
presence-cache.ts feat(discord): add configurable privileged Gateway Intents (GuildPresences, GuildMembers) (#2266) 2026-01-26 10:39:54 -06:00
provider.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
reply-context.ts Discord: add PluralKit sender identity resolver (#5838) 2026-01-31 19:50:06 -06:00
reply-delivery.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
sender-identity.ts fix: Failing tests due to import sorting. 2026-02-01 11:05:46 +09:00
system-events.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
threading.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
threading.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
typing.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00