fix: tighten group elevated targeting

This commit is contained in:
Peter Steinberger committed 2026-01-08 22:57:18 +01:00
1 parent cda2025c49
commit 014667e00b
32 files changed
+338 -57

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ export async function initSessionState(params: {
// web inbox before we get here. They prevented reset triggers like "/new"
// from matching, so strip structural wrappers when checking for resets.
const strippedForReset = isGroup
? stripMentions(triggerBodyNormalized, ctx, cfg)
? stripMentions(triggerBodyNormalized, ctx, cfg, agentId)
: triggerBodyNormalized;
for (const trigger of resetTriggers) {
if (!trigger) continue;