Commit Graph

20 Commits

Author SHA1 Message Date
Peter Steinberger
5fc41c5fc5 fix: enforce explicit mention gating across channels 2026-01-24 11:09:33 +00:00
Peter Steinberger
cf21b97e55 refactor: standardize channel logging 2026-01-23 23:34:30 +00:00
Peter Steinberger
4f5b87a4ee refactor: unify pending history helpers 2026-01-23 23:33:32 +00:00
Paul van Oorschot
3a4cdd3efd 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
Peter Steinberger
4a219c39bc refactor(channels): centralize match metadata 2026-01-21 18:21:19 +00:00
Peter Steinberger
bca39a6561 refactor: unify channel config matching and gating
Co-authored-by: thewilloftheshadow <thewilloftheshadow@users.noreply.github.com>
2026-01-18 01:24:00 +00:00
Peter Steinberger
2718e37986 fix: normalize gateway dev mode detection 2026-01-18 01:08:47 +00:00
Peter Steinberger
9ee54aea74 feat: add dm allowlist match metadata logs
Co-authored-by: thewilloftheshadow <thewilloftheshadow@users.noreply.github.com>
2026-01-18 00:14:44 +00:00
Peter Steinberger
2dc9f8bb27 feat: add channel match metadata logs
Co-authored-by: thewilloftheshadow <thewilloftheshadow@users.noreply.github.com>
2026-01-17 23:48:45 +00:00
Peter Steinberger
90fa8b1663 refactor(channels): share channel config matching
Co-authored-by: Codex <codex@openai.com>
2026-01-17 23:03:51 +00:00
Shadow
d42a6a837d Discord: inherit thread allowlists 2026-01-17 23:03:51 +00:00
Peter Steinberger
e7f8d047a2 style: run oxfmt 2026-01-17 08:00:05 +00:00
Peter Steinberger
ecd3c2a0ee fix(security): gate slash/control commands 2026-01-17 06:49:34 +00:00
Peter Steinberger
48c8063028 fix(security): gate slash commands by sender 2026-01-17 05:25:42 +00:00
Peter Steinberger
a3059cb8c2 fix: scope history injection to pending-only 2026-01-16 23:52:42 +00:00
Peter Steinberger
96a02aadbf chore: oxfmt 2026-01-16 22:33:47 +00:00
Peter Steinberger
b02d28499d fix: treat reply-to-bot as implicit mention across channels 2026-01-16 21:51:01 +00:00
Shadow
e1464499d7 Discord: fix allowlist gating. Closes #961 2026-01-15 11:53:13 -06:00
Peter Steinberger
9d28441c41 chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
2026-01-14 15:02:19 +00:00
Peter Steinberger
b74a102af7 refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00