openclaw/src
Mitch McAlister f534ea9906 fix: prevent reasoning text leak through handleMessageEnd fallback
When enforceFinalTag is active (Google providers), stripBlockTags
correctly returns empty for text without <final> tags. However, the
handleMessageEnd fallback recovered raw text, bypassing this protection
and leaking internal reasoning (e.g. "**Applying single-bot mention
rule**NO_REPLY") to Discord.

Guard the fallback with enforceFinalTag check: if the provider is
supposed to use <final> tags and none were seen, the text is treated
as leaked reasoning and suppressed.

Also harden stripSilentToken regex to allow bold markdown (**) as
separator before NO_REPLY, matching the pattern Gemini Flash Lite
produces.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 20:32:01 +00:00
..
acp refactor: dedupe agent and reply runtimes 2026-03-02 19:57:33 +00:00
agents fix: prevent reasoning text leak through handleMessageEnd fallback 2026-03-02 20:32:01 +00:00
auto-reply fix: prevent reasoning text leak through handleMessageEnd fallback 2026-03-02 20:32:01 +00:00
browser refactor: dedupe agent and reply runtimes 2026-03-02 19:57:33 +00:00
canvas-host refactor(agents): centralize tool display definitions 2026-03-02 12:13:45 +00:00
channels refactor: dedupe channel and gateway surfaces 2026-03-02 19:57:33 +00:00
cli refactor: dedupe cli config cron and install flows 2026-03-02 19:57:33 +00:00
commands refactor: dedupe cli config cron and install flows 2026-03-02 19:57:33 +00:00
compat
config perf(config): skip redundant schema and session-store work 2026-03-02 20:19:10 +00:00
cron perf(cron): cache schedule evaluators and stagger offsets 2026-03-02 20:19:10 +00:00
daemon refactor: dedupe cli config cron and install flows 2026-03-02 19:57:33 +00:00
discord refactor: dedupe channel and gateway surfaces 2026-03-02 19:57:33 +00:00
docs
gateway Gateway: suppress NO_REPLY lead-fragment chat leaks 2026-03-02 20:27:49 +00:00
hooks refactor: dedupe cli config cron and install flows 2026-03-02 19:57:33 +00:00
i18n fix(ci): resolve i18n typing and generated-policy drift 2026-03-02 04:29:18 +00:00
imessage refactor: dedupe channel and gateway surfaces 2026-03-02 19:57:33 +00:00
infra refactor: dedupe cli config cron and install flows 2026-03-02 19:57:33 +00:00
line refactor: dedupe channel and gateway surfaces 2026-03-02 19:57:33 +00:00
link-understanding
logging fix: resolve rebase conflict markers 2026-03-02 19:57:33 +00:00
markdown refactor: split telegram delivery and unify media/frontmatter/i18n pipelines 2026-03-02 04:14:06 +00:00
media refactor(net): unify proxy env checks and guarded fetch modes 2026-03-02 16:24:26 +00:00
media-understanding refactor(shared): dedupe protocol schema typing and session/media helpers 2026-03-02 19:57:33 +00:00
memory perf(config): skip redundant schema and session-store work 2026-03-02 20:19:10 +00:00
node-host refactor: dedupe agent and reply runtimes 2026-03-02 19:57:33 +00:00
pairing fix(pairing): handle missing accountId in allowFrom reads (#31369) 2026-03-01 23:24:33 -08:00
plugin-sdk refactor: dedupe channel and gateway surfaces 2026-03-02 19:57:33 +00:00
plugins fix: restore helper imports and plugin hook test exports 2026-03-02 19:57:33 +00:00
process refactor: dedupe cli config cron and install flows 2026-03-02 19:57:33 +00:00
providers refactor: dedupe agent and reply runtimes 2026-03-02 19:57:33 +00:00
routing perf(routing): cache normalized agent-id lookups 2026-03-02 20:19:10 +00:00
scripts
secrets refactor: dedupe cli config cron and install flows 2026-03-02 19:57:33 +00:00
security perf(security): cache scanner directory walks 2026-03-02 20:19:10 +00:00
sessions test(integration): dedupe messaging, secrets, and plugin test suites 2026-03-02 07:13:11 +00:00
shared refactor: dedupe cli config cron and install flows 2026-03-02 19:57:33 +00:00
signal fix(signal): land #31138 syncMessage presence filtering (@Sid-Qin) 2026-03-02 03:28:25 +00:00
slack perf(slack): memoize allow-from and mention paths 2026-03-02 20:19:10 +00:00
telegram refactor: dedupe channel and gateway surfaces 2026-03-02 19:57:33 +00:00
terminal refactor: dedupe channel and gateway surfaces 2026-03-02 19:57:33 +00:00
test-helpers
test-utils test(perf): increase guardrail scan read concurrency 2026-03-02 19:34:04 +00:00
tts refactor: dedupe channel and gateway surfaces 2026-03-02 19:57:33 +00:00
tui fix(tui): honor explicit gateway auth for url overrides 2026-03-02 19:48:02 +00:00
types
utils fix(agents): add forward-compat fallback for google-gemini-cli gemini-3.1-pro/flash-preview (#26570) 2026-02-26 18:39:13 -05:00
web refactor: dedupe channel and gateway surfaces 2026-03-02 19:57:33 +00:00
whatsapp
wizard fix(security): harden sms.send dangerous-node defaults 2026-03-02 16:06:52 +00:00
channel-web.ts
docker-image-digests.test.ts
docker-setup.e2e.test.ts feat(docker): add opt-in sandbox support for Docker deployments (#29974) 2026-03-01 23:06:10 -08:00
dockerfile.test.ts fix(docker): harden /app/extensions permissions to 755 (#30191) 2026-03-01 15:45:21 -08:00
entry.ts CLI: add root --help fast path and lazy channel option resolution (#30975) 2026-03-01 14:23:46 -08:00
extensionAPI.ts
globals.ts
index.ts
logger.test.ts
logger.ts refactor: dedupe agent and reply runtimes 2026-03-02 19:57:33 +00:00
logging.ts
polls.test.ts
polls.ts
runtime.ts
utils.test.ts
utils.ts
version.test.ts refactor: centralize delivery/path/media/version lifecycle 2026-03-02 04:04:36 +00:00
version.ts refactor: centralize delivery/path/media/version lifecycle 2026-03-02 04:04:36 +00:00