Repository navigation
fix: suppress truncated silent replies across channels - #170190
Conversation
Heartbeat streaming already hides partial silent-reply tokens through isSilentReplyPrefixText, but final heartbeat classification only recognized the complete NO_REPLY token. A model that stops mid-token (for example Gemini emitting NO_R) delivered the fragment to the configured channel. Apply the same prefix rule when classifying the final so truncated fragments are treated like canonical NO_REPLY, including honoring showOk. Closes openclaw#170158
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR suppresses token-only uppercase NO_REPLY fragments across final-reply delivery while preserving heartbeat acknowledgements and attachments. Example: A scheduled Telegram heartbeat returns NO_R with showOk disabled.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 1 item remains Keep this PR open: it fixes a current silent-token delivery bug at the shared owner, and no actionable introduced code defect was found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe shared auto-reply classifier receives model text and identifies silent control payloads before ordinary reply normalization and heartbeat delivery policy select channel output. flowchart TD
A[Model final reply] --> B[Shared silent classifier]
B --> C[Ordinary reply normalization]
B --> D[Heartbeat delivery policy]
C --> E[Channel delivery]
D --> E
D --> F[Quiet completion or acknowledgement]
Technical reviewBest possible solution: Use the shared silent-payload classifier for truncated controls while retaining meaningful replies, attachments, configured acknowledgements, and existing routing. Do we have a high-confidence way to reproduce the issue? Current-main source shows that a successful heartbeat returning NO_R with a valid destination and visible alerts reaches delivery; no target code was executed. Is this the best way to solve the issue? The shared classifier is the appropriate owner, and the bounded uppercase fragment check avoids suppressing final NO, ordinary prose, or custom-token prefixes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cd6dbfa6ab2a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +5, Tests +44, Docs +3. Total +52 across 6 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 13, 2026, 3:20 AM ET / 07:20 UTC (Revision 2). |
Recognize uppercase NO_ fragments in the canonical final-payload predicate, preserving ordinary final text, custom tokens, attachments, and configured heartbeat acknowledgments. Remove the heartbeat-only wrapper and retain the contributor regressions. Merge origin/main to preserve current speech payload handling. Related: openclaw#170158 Co-authored-by: Muhammet Ali Aydın <[email protected]>
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* commit '7ae69497bec4d9c37f170f046a3cbbf954ff19a7': (6238 commits) refactor(ui): replace Systems filters with native menu (#170786) fix(browser): browser open honors timeoutMs for its opening navigation (#170053) refactor: deslop old Apple shared/macOS and Control UI code (#170823) perf(memory): reuse pooled origin readers (#170795) fix(crabbox): preserve project snapshots across runtime updates (#170780) fix: prevent chat image loading from shifting messages (#170819) refactor(ui): use native menus for Secret Store actions (#170663) fix(gateway): keep chat metadata available during model reloads (#170805) fix: preserve diagnostics for unresponsive state lease heartbeats (#170835) fix(test): prepare runtime config for corpus revision proof test: give credential fixtures database ownership perf(auth): unblock session writes during health preparation (#170807) fix(ci): use smaller runners for selected Gateway client tests (#170821) fix: use same-commit plugins in development macOS builds (#170776) perf(github): share cached reads across sessions and searches (#170825) fix(projects): keep listings stable during unrelated session changes (#170824) fix(update): update repair fails after Doctor completes on busy macOS hosts (#170779) fix(heartbeat): suppress truncated NO_REPLY finals such as NO_R (#170190) perf(sessions): reduce read transaction overhead (#170745) refactor: simplify older plugin and package lifecycles (#170800) ...
|
Thanks @steipete for reviewing, extending the fix, and landing this! |
…claw#170190) Suppress truncated uppercase NO_REPLY fragments at the shared final-payload sentinel owner, including heartbeat final delivery, while preserving showOk acknowledgements, attachments, custom silent tokens, and ordinary text such as NO. Related: openclaw#170158 Exact-head CI run 38360173748 passed all selected Node tests, typechecks, lint, docs, and security checks. Landed under the authorized inherited-failure exception: UI shards 115172726135 and 115172726249 match scheduled-main run 38359584345 jobs 115170476315 and 115170476361 (screenshot, position-rail, and reply-attribution timeouts); aggregate 115175200075 is downstream. Live Telegram proof was intentionally not run under the maintainer proof policy. Co-authored-by: Muhammet Ali Aydın <[email protected]>
* feat(qa): report scorecard evidence gaps Distinguish catalog coverage, recorded attempts, and qualified evidence without changing scores or release gates. Include the canonical compatibility migration-status correction from ec1fb60. Co-authored-by: Patrick Erichsen <[email protected]> * chore(qa): drop compatibility backport already on main Keep the QA evidence-gap change scoped to its 13 paths. The canonical compatibility correction ec1fb60 and later refinements are already on main; restore the six branch preimages so the merge consumes that upstream owner state. * chore(qa): integrate canonical worker settlement fixes * commit '7ae69497bec4d9c37f170f046a3cbbf954ff19a7': (6238 commits) refactor(ui): replace Systems filters with native menu (#170786) fix(browser): browser open honors timeoutMs for its opening navigation (#170053) refactor: deslop old Apple shared/macOS and Control UI code (#170823) perf(memory): reuse pooled origin readers (#170795) fix(crabbox): preserve project snapshots across runtime updates (#170780) fix: prevent chat image loading from shifting messages (#170819) refactor(ui): use native menus for Secret Store actions (#170663) fix(gateway): keep chat metadata available during model reloads (#170805) fix: preserve diagnostics for unresponsive state lease heartbeats (#170835) fix(test): prepare runtime config for corpus revision proof test: give credential fixtures database ownership perf(auth): unblock session writes during health preparation (#170807) fix(ci): use smaller runners for selected Gateway client tests (#170821) fix: use same-commit plugins in development macOS builds (#170776) perf(github): share cached reads across sessions and searches (#170825) fix(projects): keep listings stable during unrelated session changes (#170824) fix(update): update repair fails after Doctor completes on busy macOS hosts (#170779) fix(heartbeat): suppress truncated NO_REPLY finals such as NO_R (#170190) perf(sessions): reduce read transaction overhead (#170745) refactor: simplify older plugin and package lifecycles (#170800) ... * fix(gateway): preserve safe previews and no-op bindings Clear only the matching pending binding operation after an authoritative unchanged settlement, preserving committed and unknown invalidation fences. Include the canonical managed-media preview correction from 47ba0ae. Co-authored-by: Peter Steinberger <[email protected]> * merge(main): reconcile QA reporting with frozen main * test(gateway): verify retained route authority after binding settlement Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
* feat(qa): report scorecard evidence gaps Distinguish catalog coverage, recorded attempts, and qualified evidence without changing scores or release gates. Include the canonical compatibility migration-status correction from 3f6d26f. Co-authored-by: Patrick Erichsen <[email protected]> * chore(qa): drop compatibility backport already on main Keep the QA evidence-gap change scoped to its 13 paths. The canonical compatibility correction 3f6d26f and later refinements are already on main; restore the six branch preimages so the merge consumes that upstream owner state. * chore(qa): integrate canonical worker settlement fixes * commit '4ae87487b6eca95ac58a2f18de0e742b240772eb': (6238 commits) refactor(ui): replace Systems filters with native menu (openclaw#170786) fix(browser): browser open honors timeoutMs for its opening navigation (openclaw#170053) refactor: deslop old Apple shared/macOS and Control UI code (openclaw#170823) perf(memory): reuse pooled origin readers (openclaw#170795) fix(crabbox): preserve project snapshots across runtime updates (openclaw#170780) fix: prevent chat image loading from shifting messages (openclaw#170819) refactor(ui): use native menus for Secret Store actions (openclaw#170663) fix(gateway): keep chat metadata available during model reloads (openclaw#170805) fix: preserve diagnostics for unresponsive state lease heartbeats (openclaw#170835) fix(test): prepare runtime config for corpus revision proof test: give credential fixtures database ownership perf(auth): unblock session writes during health preparation (openclaw#170807) fix(ci): use smaller runners for selected Gateway client tests (openclaw#170821) fix: use same-commit plugins in development macOS builds (openclaw#170776) perf(github): share cached reads across sessions and searches (openclaw#170825) fix(projects): keep listings stable during unrelated session changes (openclaw#170824) fix(update): update repair fails after Doctor completes on busy macOS hosts (openclaw#170779) fix(heartbeat): suppress truncated NO_REPLY finals such as NO_R (openclaw#170190) perf(sessions): reduce read transaction overhead (openclaw#170745) refactor: simplify older plugin and package lifecycles (openclaw#170800) ... * fix(gateway): preserve safe previews and no-op bindings Clear only the matching pending binding operation after an authoritative unchanged settlement, preserving committed and unknown invalidation fences. Include the canonical managed-media preview correction from f3260b9. Co-authored-by: Peter Steinberger <[email protected]> * merge(main): reconcile QA reporting with frozen main * test(gateway): verify retained route authority after binding settlement Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
Related: #170158
What Problem This Solves
Fixes stray
NO_Rmessages reaching chat when a model stops before completing theNO_REPLYsentinel, including final heartbeat replies.User Impact
Token-only uppercase fragments from
NO_throughNO_REPLstay quiet across channels. Scheduled heartbeats still sendHEARTBEAT_OKwhenshowOkis enabled. Ordinary alerts, media attachments, custom silent tokens, and legitimate final text such asNO,No issues found, orNO_R alertkeep their existing final-normalization behavior. No configuration or migration is required.The issue's separate cross-account routing allegation remains unverified and is outside this change; this PR does not close the entire report. The original contributor commit contains a closing reference; the landing squash message should use the current
Relatedreference instead.Why This Change Was Made
Current main's streaming prefix matcher holds incomplete sentinels, but its shared final-payload predicate recognizes only complete tokens. Heartbeat normalization therefore delivers a final
NO_Ras alert text. The fix belongs inisSilentReplyPayloadText, which is already consumed by final reply normalization and both heartbeat silence decisions. The heartbeat-only wrapper has been removed.Final fragments must include the underscore. Streaming can temporarily hold
NO, but a completedNOcan be a legitimate answer and must not gain a new silence classification. Custom tokens retain their existing final matching rules. The existing heartbeat acknowledgement decision continues to honorshowOk; event relays retain unconditional silence.Original fix by @maliv2; maintainer cleanup moves recognition to the shared sentinel owner, preserves ordinary final text, and adds attachment coverage. Compared the overlapping fix by @glenn-agent in #170650; its
NO_Rsuppression case is already covered here, while this branch also preservesshowOk. No unique implementation from that branch was copied, and the other PR remains open for coordinator follow-up.Evidence
PR CI is the test gate under the maintainer's October 13 proof policy. Live Gateway/Telegram proof, Crabbox/Testbox leases, local tests, negative controls, and local typechecks were intentionally skipped. No contributor runtime code was executed on the maintainer host.
Regression coverage for CI:
tokens.test.ts:recognizes a truncated final silent token,preserves ordinary final text, andkeeps custom silent tokens exact in final payloads.normalize-reply.heartbeat.test.ts:suppresses truncated silent finals while preserving attached media, exercising the common channel-normalization boundary.heartbeat-runner.ack-token-heartbeat-acks.test.ts:applies delivery policy to truncated NO_REPLY finalandapplies delivery policy to truncated NO_REPLY acknowledgement, retaining the contributor's Telegram suppression andshowOkcases. The existing table covers ordinary alert delivery.The positive fragment cases would deliver or classify as nonsilent on the original source; this was confirmed by source and history, without executing a negative control. History commit
2a404095754f2673dcdac8d982cc5ec997db3f02establishes the configured acknowledgement contract preserved here.Changed-file
oxfmt --checkandgit diff --checkpassed. Core changed-fileoxlintpassed (4 files, 231 rules, zero diagnostics, 1.33 seconds) using the current configuration with only its untouchedui/**/*.tsxoverride omitted because the prepared dependency tree lackseslint-plugin-solid; all core/test rules were retained. No dependency install was performed.Codex autoreview:
scoped-clean, no actionable P0–P2 findings, including an independent branch review with the complete token helper and heartbeat, generic normalization, and streaming consumers. Deslop removed the heartbeat-specific predicate and its duplicated policy. Exact-head CI run 38360173748 completed for02aa37b9d701bb5d0ae8870eac6b560c24c4f4b5: 42 jobs passed, 27 were skipped by the planner, and two inherited UI jobs plus the aggregate gate failed. Every selected Node test lane, production/test typecheck, lint, documentation, and source-contract check passed. The run elapsed 552 seconds; individual regression-case timings were not reported separately. CI covers the regression tests plus the repository's planned test, lint, and typecheck lanes; local test wall time is intentionally unmeasured under the proof policy.Production: +6/-1 (net +5); tests: +44/-0; docs: +3/-0 against the merged main snapshot. The small production increase extends the canonical predicate; deleting unrelated code to fund it would expand the scope. The contributor's production wrapper is fully removed.
ClawSweeper review handling: the valid
showOkP2 from #170650 is preserved by using the same shared predicate in both existing heartbeat decisions. The partial-issue scope is recorded withRelated. Proof-only requests are superseded by the maintainer policy: PR CI is the proof.Inherited CI failures
Every failure below also occurs in the latest scheduled main run 38359584345, head
0348a2526c561d8ccce61bfd23931024a6b8f13e. Compared complete job logs and exact test names, lines, and timeout signatures; no rerun was requested.chat-collapsed-reply-reveal.e2e.test.ts:177, “reveals the deep earlier message in standalone work after replying through transcript search”:page.screenshottimeout, 30,000 mschat-position-rail.e2e.test.ts:17, “tracks reader position and keyboard jumps” in dark and light modes: test timeout, 120,000 mschat-reply-preview-recovery.e2e.test.ts:186, “refreshes the page-carried original after reconnect and keeps source navigation working”: reply-attributionlocator.clicktimeout, 30,000 msThese tests use a mocked Gateway and ordinary fixture text; this PR changes no UI production code. The aggregate
openclaw/ci-gateremains red because of these inherited failures. Landing must use the repository's inherited-failure workflow; this preparation does not merge or bypass the gate.