fix: gate inline /status stripping

This commit is contained in:
Peter Steinberger
2026-01-13 01:20:52 +00:00
parent 2111d0c653
commit 4f1c6e76fd
2 changed files with 4 additions and 2 deletions

View File

@@ -143,7 +143,7 @@
- Auto-reply: align `/think` default display with model reasoning defaults. (#751) — thanks @gabriel-trigo. - 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: 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: 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. - Heartbeat: refresh prompt text for updated defaults.
- Agents/Tools: use PowerShell on Windows to capture system utility output. (#748) — thanks @myfunc. - 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. - Docker: tolerate unset optional env vars in docker-setup.sh under strict mode. (#725) — thanks @petradonka.

View File

@@ -606,7 +606,9 @@ export async function getReplyFromConfig(
return `${head}${cleanedTail}`; return `${head}${cleanedTail}`;
})(); })();
cleanedBody = stripInlineStatus(cleanedBody).cleaned; if (allowStatusDirective) {
cleanedBody = stripInlineStatus(cleanedBody).cleaned;
}
sessionCtx.Body = cleanedBody; sessionCtx.Body = cleanedBody;
sessionCtx.BodyStripped = cleanedBody; sessionCtx.BodyStripped = cleanedBody;