Skip to content

Commit 5a490d5

Browse files
author
Tao Zhang
committed
refactor: add APEX_WAKE_MENTIONS env-var support to wake filter default
1 parent 7dbf15c commit 5a490d5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/bridge.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,12 @@ const DEFAULT_WAKE_FILTER: WakeFilter = {
390390
wake_on_all: true,
391391
dm_wakes: true,
392392
require_mention: false,
393-
mentions: [AGENT_UID],
393+
mentions: [
394+
AGENT_UID,
395+
...(process.env.APEX_WAKE_MENTIONS
396+
? process.env.APEX_WAKE_MENTIONS.split(",").map((s) => s.trim()).filter(Boolean)
397+
: []),
398+
],
394399
contains: [],
395400
regex: [],
396401
ignored_from_uids: [AGENT_UID],

0 commit comments

Comments
 (0)