Skip to content

fix: suppress false reply-failure warnings after stopping queued input - #154872

Merged
roboclaw-bot merged 7 commits into
openclaw:mainfrom
VACInc:fix/abort-cutoff-reply-completion
Sep 21, 2026
Merged

roboclaw-bot merged 7 commits into
openclaw:mainfrom
VACInc:fix/abort-cutoff-reply-completion

Conversation

@VACInc

@VACInc VACInc commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes a misleading missing-reply warning after a stop acknowledgment when older queued input is replayed.

User Impact

Canceled queued messages remain silent. Newer messages still receive the existing missing-reply fallback when needed. No configuration change or migration is required.

Why This Change Was Made

The abort-cutoff owner records intentional cancellation through the existing blocked-completion contract, preserving the configured reply expectation. Five regression cases exercise the real inline owner and dispatch finalizer.

The PR now changes only the repair and its regression file. Ancillary fixture corrections are maintained upstream in #154995, #155028, and #155111; duplicate PR changes were removed through a signed linear fixup. All published contributor ancestry is preserved.

Original production contribution by @VACInc.

Work sessions

Evidence

Merged as 3fbca4b968bfa0248fcbe0506a8e33b904f8c4d8 on 2026-09-21 at 23:25:24 UTC. Exact-head CI is green, and ClawSweeper is ready with no findings.

  • Independent autoreview through P3 is scoped-clean. No hostile behavior identified in the reviewed changes.
  • The prior 06eb1c4 CI run exposed a mainline package-manager guard defect. Current main fixed it in 1497878e0bc6; the signed linear refresh forced a new merge-ref run and restored the branch tree exactly, so the PR diff remains the same two files.
  • Isolated main-context proof: all 31 selected checks passed, plus 92 abort/sibling tests across four files (42.63 s wall) and 57 upstream failure-owner tests across five files (85.39 s wall). Final diff and source-integrity checks passed. The published fixup composes with main cf42a5c to exactly that tested tree, 284fefc99bdc.
  • Regression controls cover older/equal IDs, older timestamps, and newer input. Reverting only the production fix reproduced the false warning in all three canceled-input cases while both newer controls passed.
  • Original regression cost: 35.48 s cold one-worker wall; original hosted test-body cost: 0.388 s total for five cases. Cold compilation/imports dominate.
Retained failures and limitations

Prior hosted CI failed approval readiness and publication-handoff cases. Main now owns the approval readiness/lifetime corrections. The handoff's historical lifecycle-busy cause and earlier SQLite child-process deadline failures remain unproven; passing focused replay is not claimed as a new production fix or a waived red gate.

The superseded recovery fixture candidate passed 20 admission runs and three original groups, with existing skips retained. Its approval proof passed 20 standalone runs but failed its first broader group; two groups were unrun. These are historical results, not green evidence for the new head.

Contributor execution used secretless AWS isolation. No deployment or live Telegram E2E is claimed; the regression proves the shared-runtime boundary. This fixes the false warning, not background-reply delivery.

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 21, 2026
@roboclaw-bot roboclaw-bot self-assigned this Sep 21, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 7:20 PM ET / 23:20 UTC (Revision 9).

ClawSweeper review

What this changes

The PR suppresses missing-reply warnings for queued messages canceled by a stop cutoff and adds five regression cases that preserve warnings for newer input.

Merge readiness

✅ Ready for maintainer review

The repair remains useful on current main, and no introduced correctness or security defect was found. The prior signed-publication blocker is resolved; ordinary CI and merge gates remain separate.

Likely related people: obviyus and steipete are routing candidates based on related merged work; specific ownership attribution remains unverified.

Priority: P2
Reviewed head: 408882b0d63309ad89858fd8504d16943a9e8c5e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with meaningful regression controls and no actionable introduced defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its regression exercises the real inline owner and finalizer with fixture transport; reported before/after results support cancellation settlement but do not establish live Telegram behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its regression exercises the real inline owner and finalizer with fixture transport; reported before/after results support cancellation settlement but do not establish live Telegram behavior.
Evidence reviewed 8 items Pinned introduced change: The merge-base-to-head diff contains only the abort-cutoff completion repair and its regression file. The repair preserves the existing expectation and records blocked completion only after the unchanged cutoff predicate selects cancellation.
Existing finalization contract: Finalization recognizes blocked completion, excludes it from missing-reply fallback eligibility, and returns deliberateSilentTerminalReply. Dispatch passes its invocation-specific state to the resolver, and the production caller passes options into the inline owner.
Current main still needs the repair: At fetched main, the matching cutoff branch still cleans up typing and returns undefined without recording blocked completion. The completion helper and finalizer have no differences from the reviewed head. This is an OpenClaw-owned completion contract; no dependency-specific Codex behavior determines the change.
Findings None None.
Security None None.

How this fits together

OpenClaw’s shared reply pipeline receives channel messages and checks whether a previous stop canceled them. Reply finalization then decides whether silence is intentional or a missing-reply warning should be delivered.

flowchart TD
  A[Incoming queued message] --> B[Existing stop cutoff]
  B --> C{Message canceled?}
  C -->|Yes| D[Record blocked completion]
  C -->|No| E[Continue normal reply]
  D --> F[Reply finalizer]
  E --> F
  F --> G[Intentional silence or required reply fallback]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +10, Tests +133. Total +143 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 10 0 +10
Tests 1 133 0 +133
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 143 0 +143

Review metrics

Metric Value Why it matters
Regression coverage and cost 3 canceled-input cases; 2 newer-input controls; reported 0.388 s combined CI test-body time The controls guard against suppressing legitimate warnings, while the reported 35.48 s cold wall time is dominated by setup and imports.

Technical review

Best possible solution:

Keep cancellation settlement with the existing cutoff owner and preserve normal missing-reply recovery for input that survives the cutoff.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: replay input at or before a stored stop cutoff through reply dispatch; main returns no reply without recording intentional cancellation, allowing the finalizer’s missing-reply fallback. The supplied regression reports this failure, but this review did not execute it.

Is this the best way to solve the issue?

Yes. Recording the existing blocked outcome at the cancellation owner is a narrow repair that preserves reply expectations and leaves newer-input behavior intact.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8acbd853756a.

Labels

Label justifications:

  • P2: This fixes misleading warnings after intentional cancellation without changing message eligibility, configuration, or persisted data.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its regression exercises the real inline owner and finalizer with fixture transport; reported before/after results support cancellation settlement but do not establish live Telegram behavior.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. Suppressing a false chat warning after stopping queued input is observable Telegram behavior; the existing proof-routing label is appropriate, and live Telegram completion is not claimed.

Evidence

What I checked:

  • Pinned introduced change: The merge-base-to-head diff contains only the abort-cutoff completion repair and its regression file. The repair preserves the existing expectation and records blocked completion only after the unchanged cutoff predicate selects cancellation. (src/auto-reply/reply/get-reply-inline-actions.ts:282, 408882b0d633)
  • Existing finalization contract: Finalization recognizes blocked completion, excludes it from missing-reply fallback eligibility, and returns deliberateSilentTerminalReply. Dispatch passes its invocation-specific state to the resolver, and the production caller passes options into the inline owner. (src/auto-reply/reply/dispatch-from-config.finalize.ts:379, 408882b0d633)
  • Current main still needs the repair: At fetched main, the matching cutoff branch still cleans up typing and returns undefined without recording blocked completion. The completion helper and finalizer have no differences from the reviewed head. This is an OpenClaw-owned completion contract; no dependency-specific Codex behavior determines the change. (src/auto-reply/reply/get-reply-inline-actions.ts:280, 8acbd853756a)
  • Latest release comparison: The v2026.9.5 source also returns undefined at the cutoff without this completion recording. This confirms the proposed repair is absent from that release; it does not independently establish the full warning behavior on that release. (src/auto-reply/reply/get-reply-inline-actions.ts:279, ec9c1a13db89)
  • Regression scope and execution evidence: The five cases exercise the production inline owner and dispatch finalizer for older/equal message IDs, an older timestamp, and two newer-input controls. The captured PR body reports that reverting the production fix fails all three canceled cases while preserving both controls, plus 92 abort/sibling tests and 57 upstream failure-owner tests. These are reported isolated boundary tests, not live transport proof; this read-only review did not execute them. (src/auto-reply/reply/dispatch-from-config.abort-cutoff.test.ts:25, 408882b0d633)
  • Prior review blocker resolved: GitHub verifies the signed 06eb1c4 fixup and records the previously reviewed 00dc237 head as its parent. The two retained repair files are unchanged between that earlier reviewed head and the current head. Live PR metadata confirms the published head remains 408882b and is mergeable, though its merge state is blocked. (06eb1c467631)

Likely related people:

  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (8 earlier review cycles)
  • reviewed 2026-09-21T13:29:16.078Z sha ba7d37c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T13:54:22.779Z sha d63e3e3 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T14:14:54.528Z sha d63e3e3 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T16:20:19.176Z sha d7ed384 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T16:51:35.278Z sha d7ed384 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T18:07:09.170Z sha 00dc237 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T18:48:52.416Z sha 00dc237 :: blocked before merge. :: none
  • reviewed 2026-09-21T22:23:50.501Z sha 00dc237 :: needs changes before merge. :: none

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

The follow-up at d63e3e3e71fa5f72dd2ce6ed8f78d1179bbec5c7 preserves the original production fix and adds real dispatch/inline-owner regression coverage. All five new cases pass; restoring pre-fix production code reproduces the exact false warning in the three canceled-input cases while both newer-message controls still pass. The regression and sibling suites pass 88 tests; independent autoreview through P3 is clean. The PR body now contains the current evidence and test cost. Hosted CI is attached to the current head and is still pending—not claimed green.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added the proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. label Sep 21, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

The current-head review is clear, and I have considered the proof: telegram-e2e guidance. For this bounded shared-runtime change, I am retaining the real inline-owner/dispatch-finalizer regression rather than adding live Telegram E2E. No Telegram adapter, external API, cutoff matching, authorization, or persistence contract changes. The regression reproduces the exact false warning with pre-fix production code, suppresses it after the fix, and preserves both newer-message controls; 88 focused/sibling tests and the selected changed-file checks pass.

This follows the repository testing guide’s proportional boundary-proof route for changes without a new external API contract. The PR explicitly does not claim live Telegram delivery or deployment validation. I am leaving the proof-routing label intact rather than presenting it as completed live evidence. The enforced CI gate remains required and is still being watched on the exact published head.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

The published head is now d7ed384e8da1e7e2e41b62a49bde22ef97ab62f4. The production abort-cutoff fix is unchanged. A reproduced CI fixture defect is repaired by moving three existing recovery exhaustion cases to the broker-backed admission suite, waiting for real completion/request signals, and joining scheduler cleanup. No timeout values, production recovery behavior, baselines, or behavioral assertions were weakened.

The complete candidate is independently scoped-clean through P3. The recovery suite passed 20/20 standalone runs and three original-group replays including the destination suite; selected checks, corrected lint, formatting, and final diff checks pass. The historical SQLite timeout remains documented as unexplained—not claimed fixed by passing replays. New-head hosted CI is running and remains mandatory before merge. The PR body contains current scope, evidence, and measured costs.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@roboclaw-bot roboclaw-bot reopened this Sep 21, 2026
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: L and removed size: S labels Sep 21, 2026
Observe actual accepted responses and requested delivery instead of premature polling. Join request owners during teardown and retain authorization and terminal-delivery assertions. Extract the existing forwarding fixture without growing the over-cap server-methods suite.

Co-authored-by: VACInc <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Sep 21, 2026
Restore ancillary fixture files to the PR base before integrating main. Upstream commits 5406706, e43f515, 5fbcdaa, dbb4025 and ff26aae now own the readiness and cleanup corrections. Preserve the original abort-cutoff repair and its dispatch regression.

Co-authored-by: VACInc <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot removed gateway Gateway runtime agents Agent runtime and tooling size: L labels Sep 21, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

The publication/conflict item is addressed in signed head 06eb1c4676319c7bf7b74cb5beca3d990463cbd9. GitHub verifies the commit; its parent is the previous published head 00dc237b9751d8ad57f4e116d41c8fd923872658, preserving all contributor ancestry. The PR is mergeable and now contains only the abort-cutoff repair and five-case regression. Upstream fixture fixes are no longer duplicated.

The supported native linear-fixup route did not require a new signer or any unsigned override. It composes with the tested main snapshot to the exact reviewed tree; all 31 selected checks and 149 focused tests passed, and P3 autoreview is scoped-clean. The body records the historical failures and live-proof limits, contributor credit, and work-session links.

Current-head CI run 35662972304 and the already-running ClawSweeper review remain pending; no merge-ready or green-CI claim is made yet.

roboclaw-bot and others added 2 commits September 21, 2026 15:50
Carry the exact current-main word-boundary repair so a fresh merge-ref CI run includes the fixed package-manager guard. This creates no net PR diff against main.

Co-authored-by: VACInc <[email protected]>
Restore the PR branch file after forcing a fresh merge-ref run. Current main already contains the package-manager guard repair, so the final PR diff remains limited to the abort-cutoff fix and regression.

Co-authored-by: VACInc <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Exact-head review run 35664994403 failed before review at the lease-claim boundary after four control-plane HTTP 500/503 responses. The published head remains 408882b0d63309ad89858fd8504d16943a9e8c5e; no source changed.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Exact-head review run 35665851482 reached the review worker but failed during lease finalization after control-plane timeouts and HTTP 500 responses. Exact-head CI is now green. The published head remains 408882b0d63309ad89858fd8504d16943a9e8c5e; no source changed.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) September 21, 2026 23:25
@roboclaw-bot
roboclaw-bot merged commit 3fbca4b into openclaw:main Sep 21, 2026
201 of 203 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
openclaw#154872)

* fix: suppress missing-reply warnings for stopped queued messages [skip ci]

* test: cover stopped queued input through reply finalization

Co-authored-by: VACInc <[email protected]>

* test: await recovery admission before asserting exhaustion

Co-authored-by: VACInc <[email protected]>

* test: await approval fixture response boundaries

Observe actual accepted responses and requested delivery instead of premature polling. Join request owners during teardown and retain authorization and terminal-delivery assertions. Extract the existing forwarding fixture without growing the over-cap server-methods suite.

Co-authored-by: VACInc <[email protected]>

* test: defer approval and recovery fixtures to upstream fixes

Restore ancillary fixture files to the PR base before integrating main. Upstream commits 540bb03, 8d32dd5, 08b3470, e209fe4 and 24f7888 now own the readiness and cleanup corrections. Preserve the original abort-cutoff repair and its dispatch regression.

Co-authored-by: VACInc <[email protected]>

* test: sync mainline pnpm version guard

Carry the exact current-main word-boundary repair so a fresh merge-ref CI run includes the fixed package-manager guard. This creates no net PR diff against main.

Co-authored-by: VACInc <[email protected]>

* test: leave pnpm version guard owned by main

Restore the PR branch file after forcing a fresh merge-ref run. Current main already contains the package-manager guard repair, so the final PR diff remains limited to the abort-cutoff fix and regression.

Co-authored-by: VACInc <[email protected]>

---------

Co-authored-by: VACInc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants