diff --git a/CHANGELOG.md b/CHANGELOG.md index a525084be..3b1628c86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -143,7 +143,7 @@ - Auto-reply: align `/think` default display with model reasoning defaults. (#751) — thanks @gabriel-trigo. - Auto-reply: flush block reply buffers on tool boundaries. (#750) — thanks @sebslight. - Auto-reply: allow sender fallback for command authorization when `SenderId` is empty (WhatsApp self-chat). (#755) — thanks @juanpablodlc. -- Auto-reply: treat whitespace-only sender ids as missing for command authorization (WhatsApp self-chat). +- Auto-reply: treat whitespace-only sender ids as missing for command authorization (WhatsApp self-chat). (#766) — thanks @steipete. - Heartbeat: refresh prompt text for updated defaults. - Agents/Tools: use PowerShell on Windows to capture system utility output. (#748) — thanks @myfunc. - Docker: tolerate unset optional env vars in docker-setup.sh under strict mode. (#725) — thanks @petradonka. diff --git a/src/auto-reply/reply.ts b/src/auto-reply/reply.ts index 4e59b05e9..15a43db62 100644 --- a/src/auto-reply/reply.ts +++ b/src/auto-reply/reply.ts @@ -606,7 +606,9 @@ export async function getReplyFromConfig( return `${head}${cleanedTail}`; })(); - cleanedBody = stripInlineStatus(cleanedBody).cleaned; + if (allowStatusDirective) { + cleanedBody = stripInlineStatus(cleanedBody).cleaned; + } sessionCtx.Body = cleanedBody; sessionCtx.BodyStripped = cleanedBody;