openclaw-vainplex/src/discord/monitor
Paul van Oorschot 7d0a0ae3ba
fix(discord): autoThread ack reactions + exec approval null handling (#1511)
* fix(discord): gate autoThread by thread owner

* fix(discord): ack bot-owned autoThreads

* fix(discord): ack mentions in open channels

- Ack reactions in bot-owned autoThreads
- Ack reactions in open channels (no mention required)
- DRY: Pass pre-computed isAutoThreadOwnedByBot to avoid redundant checks
- Consolidate ack logic with explanatory comment

* fix: allow null values in exec.approval.request schema

The ExecApprovalRequestParamsSchema was rejecting null values for optional
fields like resolvedPath, but the calling code in bash-tools.exec.ts passes
null. This caused intermittent 'invalid exec.approval.request params'
validation errors.

Fix: Accept Type.Union([Type.String(), Type.Null()]) for all optional string
fields in the schema. Update test to reflect new behavior.

* fix: align discord ack reactions with mention gating (#1511) (thanks @pvoo)

---------

Co-authored-by: Wimmie <wimmie@tameson.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-01-23 20:01:15 +00:00
..
allow-list.ts fix(discord): autoThread ack reactions + exec approval null handling (#1511) 2026-01-23 20:01:15 +00:00
format.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
listeners.ts fix: unblock discord listener concurrency 2026-01-20 19:30:32 +00:00
message-handler.inbound-contract.test.ts style: oxfmt format 2026-01-17 05:48:56 +00:00
message-handler.preflight.ts fix(discord): autoThread ack reactions + exec approval null handling (#1511) 2026-01-23 20:01:15 +00:00
message-handler.preflight.types.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
message-handler.process.test.ts fix(discord): autoThread ack reactions + exec approval null handling (#1511) 2026-01-23 20:01:15 +00:00
message-handler.process.ts fix: add per-channel markdown table conversion (#1495) (thanks @odysseus0) 2026-01-23 18:39:25 +00:00
message-handler.ts feat(whatsapp): add debounceMs for batching rapid messages (#971) 2026-01-15 23:07:19 +00:00
message-utils.ts fix(discord): autoThread ack reactions + exec approval null handling (#1511) 2026-01-23 20:01:15 +00:00
native-command.ts fix: normalize gateway dev mode detection 2026-01-18 01:08:47 +00:00
provider.ts fix: avoid discord gateway abort crash 2026-01-20 19:33:08 +00:00
reply-context.ts feat: make inbound envelopes configurable 2026-01-18 18:50:37 +00:00
reply-delivery.ts fix: add per-channel markdown table conversion (#1495) (thanks @odysseus0) 2026-01-23 18:39:25 +00:00
system-events.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
threading.test.ts refactor: prune legacy group prefixes 2026-01-17 08:47:25 +00:00
threading.ts fix(discord): autoThread ack reactions + exec approval null handling (#1511) 2026-01-23 20:01:15 +00:00
typing.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00