openclaw-vainplex/src/gateway/server-methods
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
..
agent-job.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent.ts refactor: centralize control ui avatar helpers 2026-01-22 23:41:36 +00:00
agents.ts feat(tui): add agent picker and agents list rpc 2026-01-09 01:05:10 +01:00
channels.ts refactor: centralize channel ui metadata 2026-01-20 13:11:49 +00:00
chat.ts fix: handle gateway slash command replies in TUI 2026-01-23 19:48:22 +00:00
config.ts fix: enforce plugin config schemas (#1272) (thanks @thewilloftheshadow) 2026-01-20 11:03:17 +00:00
connect.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
cron.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
devices.ts feat: wire role-scoped device creds 2026-01-20 13:04:19 +00:00
exec-approval.test.ts fix(discord): autoThread ack reactions + exec approval null handling (#1511) 2026-01-23 20:01:15 +00:00
exec-approval.ts fix: prevent exec approval resolve race 2026-01-22 07:01:27 +00:00
exec-approvals.ts refactor: remove bridge protocol 2026-01-19 10:08:29 +00:00
health.ts refactor: centralize account bindings + health probes 2026-01-17 01:19:43 +00:00
logs.test.ts fix: align rolling logs to local time 2026-01-22 07:02:52 +00:00
logs.ts fix: align rolling logs to local time 2026-01-22 07:02:52 +00:00
models.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
nodes.helpers.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
nodes.ts feat: show node PATH and bootstrap node host env 2026-01-21 11:06:56 +00:00
send.test.ts fix: sync protocol outputs 2026-01-18 08:58:41 +00:00
send.ts refactor: migrate messaging plugins to sdk 2026-01-18 08:54:00 +00:00
sessions.ts feat: add sessions preview rpc and menu prewarm 2026-01-22 10:21:50 +00:00
skills.ts fix: enforce ws3 roles + node allowlist 2026-01-20 09:24:01 +00:00
system.ts feat: enrich presence with roles 2026-01-20 13:04:20 +00:00
talk.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
types.ts feat: wire role-scoped device creds 2026-01-20 13:04:19 +00:00
update.ts refactor: normalize cli command hints 2026-01-20 07:43:00 +00:00
usage.ts fix: cache usage cost summary 2026-01-22 08:51:22 +00:00
voicewake.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
web.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
wizard.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00