Skip to content

fix(channels): hide intermediate tool failures in quiet progress - #145345

Merged
steipete merged 2 commits into
mainfrom
codex/quiet-progress-tool-errors
Sep 11, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/quiet-progress-tool-errors

Conversation

@steipete

@steipete steipete commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Closes #140037

What Problem This Solves

Fixes an issue where users saw failed shell commands and repeated “Recovered: Bash — exit …” rows in otherwise successful channel responses, even with tool progress disabled. Quiet progress treated every intermediate failure as user-facing attention, so diagnostic rows could also displace authored plan steps.

Why This Change Was Made

The shared progress compositor now admits approval requests, but not individual tool execution rows, when progress is quiet. Slack no longer creates separate failed-command attention rows for quiet native cards, and the obsolete quiet-failure recovery path is removed. Explicit toolProgress: true retains the diagnostic tool log; terminal task errors keep their existing delivery path. This uses the existing setting without adding configuration or changing schemas.

Maintainer decision: existing quiet configurations intentionally receive fewer diagnostic rows. This is the requested visibility change; the explicit tool log remains available, and no configuration migration is needed.

User Impact

Default and explicitly quiet progress keeps authored narration, plans, and approvals readable across channels. Intermediate tool failures no longer make successful answers look broken. Operators who want the full tool log can still enable it. Documentation and generated configuration help describe the same behavior.

Reported by @stemkat100 and @joncursi.

Evidence

  • Reproduced before the production fix: all three Slack dispatch regressions failed on outgoing Bash, exit 1/exit 8, and Recovered: rows; eight shared-compositor regression cases also failed on failure retention or forced startup.
  • After the fix: 727 focused tests passed across the shared compositor/lifecycle, Slack native and Block Kit cards, Slack dispatch/compact previews, Telegram rendering/dispatch, Discord, Matrix, Mattermost, Teams, and native subagent progress. Slack regressions inspect every stream start/append/stop payload and preserve both successful and error final delivery; approval coverage remains green.
  • node scripts/check-changed.mjs passed, including core/plugin production and test type checks, targeted lint, SDK boundaries, generated metadata, and repository guards. The configuration documentation hash was regenerated from the updated help; configuration counts are unchanged.
  • Six changed documentation pages passed the MDX check; git diff --check passed.
  • Independent reviews of the production fix and the downstream test updates found no actionable P0–P2 issues.
  • The first CI run exposed six downstream test files that still expected quiet failure rows. Those contracts now cover quiet suppression and explicit diagnostic visibility. The Mattermost fixture now checks observations after monitor completion so an assertion failure reports directly instead of being swallowed until timeout.
  • Production example before the fix. Live Slack/Telegram sessions and native before/after screenshots were not captured. The existing protected hosted Telegram proof route cannot express this PR’s progress-mode failed-tool fixture, and the local authenticated broker CLI is unavailable. The accepted evidence for this presentation-only change is the transport-payload and renderer boundary coverage above; there is no live UI or upgrade claim. Telegram transport calls, credentials, configuration formats, and stored state are unchanged.

@clawsweeper

clawsweeper Bot commented Sep 11, 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 docs Improvements or additions to documentation channel: matrix Channel integration: matrix channel: slack Channel integration: slack channel: telegram Channel integration: telegram size: M maintainer Maintainer-authored PR labels Sep 11, 2026
Keep authored plans, progress text, approvals, and terminal task errors visible while quiet/default progress omits individual failed-tool and nonzero-exit rows. Preserve explicit tool-log diagnostics and remove obsolete quiet failure recovery handling.

Fixes #140037. Reported by @stemkat100 and @joncursi. Validated with 359 focused tests, changed checks, and independent review.
@steipete
steipete force-pushed the codex/quiet-progress-tool-errors branch from 7d8ff0d to 6c7e0e5 Compare September 11, 2026 22:22
@steipete
steipete marked this pull request as ready for review September 11, 2026 22:23
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 11, 2026, 6:47 PM ET / 22:47 UTC (Revision 2).

ClawSweeper review

What this changes

Quiet channel progress hides intermediate tool failures while preserving approvals, authored progress, terminal errors, and explicitly enabled tool diagnostics.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains useful: current main and the latest release retain the reported failure rows. No actionable correctness defect was found, and the updated body explicitly resolves the earlier presentation-policy concern.

Priority: P2
Reviewed head: bd21523fb977f0b245710490fb4805b9b5e8510d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused shared-owner implementation with meaningful boundary regressions and an explicitly accepted presentation tradeoff.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored PR explicitly accepts transport-payload and renderer boundary coverage for this presentation change and documents the unavailable Telegram fixture route. Those checks exercise compositor filtering, Slack dispatch, and Telegram rendering, but are not live after-fix proof; the prior capture request has an explicit recorded disposition.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored PR explicitly accepts transport-payload and renderer boundary coverage for this presentation change and documents the unavailable Telegram fixture route. Those checks exercise compositor filtering, Slack dispatch, and Telegram rendering, but are not live after-fix proof; the prior capture request has an explicit recorded disposition.
Evidence reviewed 10 items Current main still exposes failure rows: Fetched main explicitly retains attention lines when quiet progress is enabled, so the central requested behavior remains absent.
Latest release retains the same policy: The v2026.9.4 compositor also admits failure attention in quiet mode. Its source was successfully inspected through GitHub after the local release-blob read failed.
Shared visibility owner: Quiet-mode admission now stores approval events but omits tool events; authored commentary, reasoning, and plans retain separate paths. Final-delivery lifecycle guards remain intact.
Findings None None.
Security None None.

How this fits together

The shared progress compositor turns agent activity into temporary channel status messages. Channel renderers consume its snapshots, while final answers and terminal errors use separate delivery paths.

flowchart TD
  A[Agent activity] --> B[Shared progress compositor]
  C[Existing tool progress setting] --> B
  B --> D[Plans and approvals]
  B --> E[Optional tool diagnostics]
  D --> F[Channel progress messages]
  E --> F
  A --> G[Final answer and error delivery]
Loading

Before merge

  • Resolve merge risk (P1) - Existing quiet configurations and third-party compositor consumers receive fewer diagnostic rows after upgrade; that tradeoff is explicitly accepted, but live Telegram and external-renderer behavior were not demonstrated.
Agent review details

Security

None.

PR surface

Source -31, Tests -2, Docs +7, Generated 0. Total -26 across 23 files.

View PR surface stats
Area Files Added Removed Net
Source 4 12 43 -31
Tests 11 197 199 -2
Docs 6 28 21 +7
Config 0 0 0 0
Generated 2 18 18 0
Other 0 0 0 0
Total 23 255 281 -26

Review metrics

Metric Value Why it matters
Configuration surface 0 new settings; existing quiet-mode behavior changes The approved presentation change reuses toolProgress without changing stored configuration formats.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #140037
Summary: This PR addresses the canonical quiet-progress report; the separate Slack proposal covers only part of that behavior.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Honor the recorded visibility decision (recommended)
    Accept the explicitly documented reduction in quiet-mode diagnostics while preserving the existing tool-log opt-in and boundary coverage.

Technical review

Best possible solution:

Keep visibility policy in the shared compositor, with the documented tool-log opt-in preserving diagnostics and final-error delivery remaining independent.

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

Yes, at the source level: a nonzero command exit bypasses quiet-mode filtering on current main and v2026.9.4. No runtime reproduction was executed in this review.

Is this the best way to solve the issue?

Yes. The approved visibility-policy adjustment belongs in the existing shared owner, and avoids a competing channel-specific filter or another configuration switch.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 98ac734316fd.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: Recoverable tool failures create misleading progress output without preventing successful answers.
  • merge-risk: 🚨 compatibility: The public compositor intentionally changes quiet-mode snapshots consumed by existing configurations and plugin renderers.
  • 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 maintainer-authored PR explicitly accepts transport-payload and renderer boundary coverage for this presentation change and documents the unavailable Telegram fixture route. Those checks exercise compositor filtering, Slack dispatch, and Telegram rendering, but are not live after-fix proof; the prior capture request has an explicit recorded disposition.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. The change affects visible Telegram progress rows, although the body records acceptance of boundary coverage and the unavailable live fixture.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: 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 (1 earlier review cycle)
  • reviewed 2026-09-11T22:30:13.090Z sha 6c7e0e5 :: blocked before merge. :: none

Keep explicit diagnostic, approval, plan, and terminal-error coverage while requiring quiet progress to omit intermediate failures across downstream adapters. Assert Mattermost observations after monitor shutdown so a failure cannot be swallowed until timeout.
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 11, 2026
@steipete
steipete merged commit 3bfac2f into main Sep 11, 2026
191 of 193 checks passed
@steipete
steipete deleted the codex/quiet-progress-tool-errors branch September 11, 2026 23:04
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 12, 2026
Keep visibility in the compositor and remove redundant mode flags from internal layout helpers. Separate Slack attention-title formatting from native approval task identity construction, avoiding discarded hashes and task objects in Block Kit rendering.

Preserve public SDK and output contracts. Remove one duplicate test left after native start/update builder unification. Related: #145345, #140037.
steipete added a commit that referenced this pull request Sep 12, 2026
Keep visibility in the compositor and remove redundant mode flags from internal layout helpers. Separate Slack attention-title formatting from native approval task identity construction, avoiding discarded hashes and task objects in Block Kit rendering.

Preserve public SDK and output contracts. Remove one duplicate test left after native start/update builder unification. Related: #145345, #140037.
steipete added a commit that referenced this pull request Sep 12, 2026
Keep visibility in the compositor and remove redundant mode flags from internal layout helpers. Separate Slack attention-title formatting from native approval task identity construction, avoiding discarded hashes and task objects in Block Kit rendering.

Preserve public SDK and output contracts. Remove one duplicate test left after native start/update builder unification. Related: #145345, #140037.
steipete added a commit that referenced this pull request Sep 12, 2026
* refactor(channels): simplify progress rendering ownership

Keep visibility in the compositor and remove redundant mode flags from internal layout helpers. Separate Slack attention-title formatting from native approval task identity construction, avoiding discarded hashes and task objects in Block Kit rendering.

Preserve public SDK and output contracts. Remove one duplicate test left after native start/update builder unification. Related: #145345, #140037.

* fix(ui): let the popover own initial picker focus

WebAwesome already focuses the autofocus input before the opening animation. Remove the duplicate after-show focus that stole focus from a newly opened cloud configuration card. Replace the handler-only unit expectation with a deterministic browser regression that controls the actual animation and preserves initial focus, cloud focus, and machine selection.
steipete added a commit that referenced this pull request Sep 12, 2026
#145377)

* refactor(channels): simplify progress rendering ownership

Keep visibility in the compositor and remove redundant mode flags from internal layout helpers. Separate Slack attention-title formatting from native approval task identity construction, avoiding discarded hashes and task objects in Block Kit rendering.

Preserve public SDK and output contracts. Remove one duplicate test left after native start/update builder unification. Related: #145345, #140037.

* fix(ui): let the popover own initial picker focus

WebAwesome already focuses the autofocus input before the opening animation. Remove the duplicate after-show focus that stole focus from a newly opened cloud configuration card. Replace the handler-only unit expectation with a deterministic browser regression that controls the actual animation and preserves initial focus, cloud focus, and machine selection.

* feat(radius): add native model provider and browser sign-in

Support Radius organization API keys and device OAuth, discover account-visible models and tiered prices, and stream native Pi messages through the provider plugin contract. Add setup docs and meaningful auth, catalog, and tool-stream coverage. Regenerate the standard plugin config inventory for the new provider.

* refactor(radius): satisfy provider validation guards

Require captured OAuth and model requests in strict test types. Project optional stream fields directly while preserving validation of supplied values. Focused tests and independent review pass.

* fix(radius): accept live fractional OAuth polling intervals

Radius device authorization advertises interval=0.1 seconds. Accept finite positive fractional intervals and round milliseconds upward; retain expiry and timer bounds. The regression failed against the original parser and all 20 OAuth tests now pass. Live pairing reaches browser authorization.

* fix(radius): publish native model routes and resolve cold starts

Declare pi-messages in the shared API data contract and emit it from authenticated Radius catalogs before registry validation. Resolve cold-start models through the existing provider hook using the same account catalog and pinned auth profile. Remove late normalization hooks and cover real registry deserialization, schema admission, and account-scoped resolution. Live authorization and catalog discovery pass; inference reaches Radius and reports the account billing gate.

* build(radius): integrate plugin publication and documentation metadata

Document the plugin package, exclude its external dist tree from the core npm package, and update extension label routing and the exact release inventory. Regenerate the plugin inventory/reference pages and brand glossary entries. Publication/build-selection and labeler coverage tests pass.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
…nclaw#145345)

* fix(channels): hide intermediate tool failures in quiet progress

Keep authored plans, progress text, approvals, and terminal task errors visible while quiet/default progress omits individual failed-tool and nonzero-exit rows. Preserve explicit tool-log diagnostics and remove obsolete quiet failure recovery handling.

Fixes openclaw#140037. Reported by @stemkat100 and @joncursi. Validated with 359 focused tests, changed checks, and independent review.

* test(channels): align quiet failure visibility coverage

Keep explicit diagnostic, approval, plan, and terminal-error coverage while requiring quiet progress to omit intermediate failures across downstream adapters. Assert Mattermost observations after monitor shutdown so a failure cannot be swallowed until timeout.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
…145420)

* refactor(channels): simplify progress rendering ownership

Keep visibility in the compositor and remove redundant mode flags from internal layout helpers. Separate Slack attention-title formatting from native approval task identity construction, avoiding discarded hashes and task objects in Block Kit rendering.

Preserve public SDK and output contracts. Remove one duplicate test left after native start/update builder unification. Related: openclaw#145345, openclaw#140037.

* fix(ui): let the popover own initial picker focus

WebAwesome already focuses the autofocus input before the opening animation. Remove the duplicate after-show focus that stole focus from a newly opened cloud configuration card. Replace the handler-only unit expectation with a deterministic browser regression that controls the actual animation and preserves initial focus, cloud focus, and machine selection.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
openclaw#145377)

* refactor(channels): simplify progress rendering ownership

Keep visibility in the compositor and remove redundant mode flags from internal layout helpers. Separate Slack attention-title formatting from native approval task identity construction, avoiding discarded hashes and task objects in Block Kit rendering.

Preserve public SDK and output contracts. Remove one duplicate test left after native start/update builder unification. Related: openclaw#145345, openclaw#140037.

* fix(ui): let the popover own initial picker focus

WebAwesome already focuses the autofocus input before the opening animation. Remove the duplicate after-show focus that stole focus from a newly opened cloud configuration card. Replace the handler-only unit expectation with a deterministic browser regression that controls the actual animation and preserves initial focus, cloud focus, and machine selection.

* feat(radius): add native model provider and browser sign-in

Support Radius organization API keys and device OAuth, discover account-visible models and tiered prices, and stream native Pi messages through the provider plugin contract. Add setup docs and meaningful auth, catalog, and tool-stream coverage. Regenerate the standard plugin config inventory for the new provider.

* refactor(radius): satisfy provider validation guards

Require captured OAuth and model requests in strict test types. Project optional stream fields directly while preserving validation of supplied values. Focused tests and independent review pass.

* fix(radius): accept live fractional OAuth polling intervals

Radius device authorization advertises interval=0.1 seconds. Accept finite positive fractional intervals and round milliseconds upward; retain expiry and timer bounds. The regression failed against the original parser and all 20 OAuth tests now pass. Live pairing reaches browser authorization.

* fix(radius): publish native model routes and resolve cold starts

Declare pi-messages in the shared API data contract and emit it from authenticated Radius catalogs before registry validation. Resolve cold-start models through the existing provider hook using the same account catalog and pinned auth profile. Remove late normalization hooks and cover real registry deserialization, schema admission, and account-scoped resolution. Live authorization and catalog discovery pass; inference reaches Radius and reports the account billing gate.

* build(radius): integrate plugin publication and documentation metadata

Document the plugin package, exclude its external dist tree from the core npm package, and update extension label routing and the exact release inventory. Regenerate the plugin inventory/reference pages and brand glossary entries. Publication/build-selection and labeler coverage tests pass.
pash-openai added a commit that referenced this pull request Sep 17, 2026
…ranch (#150472)

* fix(channels): hide intermediate tool failures in quiet progress (#145345)

* fix(channels): hide intermediate tool failures in quiet progress

Keep authored plans, progress text, approvals, and terminal task errors visible while quiet/default progress omits individual failed-tool and nonzero-exit rows. Preserve explicit tool-log diagnostics and remove obsolete quiet failure recovery handling.

Fixes #140037. Reported by @stemkat100 and @joncursi. Validated with 359 focused tests, changed checks, and independent review.

* test(channels): align quiet failure visibility coverage

Keep explicit diagnostic, approval, plan, and terminal-error coverage while requiring quiet progress to omit intermediate failures across downstream adapters. Assert Mattermost observations after monitor shutdown so a failure cannot be swallowed until timeout.

(cherry picked from commit 3bfac2f)

* fix(channels): keep deeper queued messages alive through long turns (#133248)

The contributor’s original description follows. Historical heads, scope and open decisions in this section refer to that implementation; the reviewed current implementation, compatibility decision and proof are recorded in the maintainer update below.

Closes #133245.

Related: #127950. This supersedes the current-main-incompatible queue-owned approach in #125385 while preserving today's canonical timeout retry disposition.

A durably claimed channel message can wait behind another follow-up turn for longer than the five-minute claim-to-adoption watchdog. Existing liveness renewal covers queue-head active-run admission checks, but not an ingress-backed lifecycle waiting deeper in the follow-up queue. The claim can therefore be retired before the message reaches the model.

The follow-up queue now owns periodic deferred heartbeats for the exact ingress lifecycle while it remains in pending items, in-flight delivery, summary sources, or compacted summary elisions.

Ingress supplies a cadence derived from one third of its adoption-stall timeout. Debounce, Plugin SDK fan-in, and channel lifecycle wrappers preserve the shortest applicable cadence. Queue ownership triggers an immediate renewal, then periodic renewal; it stops after successful adoption, completion, ownership loss, or callback failure. A rejected adoption callback keeps renewal alive for the supported retry path.

The existing watchdog and canonical timeout retry policy remain unchanged, so silent handlers and orphaned claims still recover normally.

Messages accepted by durable channel ingress remain adoptable while they wait behind long-running work instead of silently disappearing before model execution. No setting or migration is required.

SDK documentation polish (2026-09-10, head `76097fef9397a04c10637e06dfaf64ebb6ca104a`): the public channel SDK guide now documents forwarding both heartbeat fields, the shortest-positive-finite fan-in cadence, renewal termination, and compatibility when older wrappers omit the optional cadence. The documentation-only addition passed changed-page formatting, MDX sanity, and `git diff --check`; production code and the previously tested runtime head below are unchanged. Current-head hosted CI has completed successfully; the final exact-head ClawSweeper review accepts the implementation and proof, leaving only SDK-owner acceptance of the documented contract.

Refreshed on 2026-09-08 for exact head `57c4faff0ed7bb2d9b4fd308aa46b19ae4095e61`, rebased onto `1ff45cad5ae`.

- Preserved upstream's ingress-monitor type extraction and gateway-suspension repair; the optional cadence field follows its new type owner.
- Repaired the retry integration fixture: after real enqueue and initial renewal, only the abandoned message's heartbeat callback fails. The real watchdog then recovers it. Retry delivery, healthy sibling cleanup, and true duplicate assertions remain intact; no production behavior or timeout changed for this repair.
- 102 focused tests pass: dispatch ingress retry, queue in-flight/dedupe, ingress lifecycle/watchdog, Plugin SDK fan-in, Discord queue handling, and Slack handler.
- Changed-file gates pass: core/core-test/extension typechecks, formatting, changed core/extension lint, SDK boundaries/exports, dead-export scans, and repository guards.
- Fresh independent source review found no actionable P0–P2 defects. The standalone autoreview CLI failed at startup without a verdict and is not counted as review coverage.
- Current-head CI run [34520397963](https://github.com/openclaw/openclaw/actions/runs/34520397963) completed successfully. The earlier startup subprocess timeout is historical, not a current failing gate. Exact-head ClawSweeper review (September 10, 20:00 UTC) reports no actionable correctness or proof findings; explicit SDK-owner acceptance remains required before merge.
- Existing regressions cover immediate renewal after late handoff, periodic deeper-queue renewal, stopping after owner loss, and continuing across a rejected adoption callback.

Exact-head durable-ingress boundary proof used isolated SQLite with the production ingress drain/lifecycle binder, follow-up queue, and canonical adoption helper. The model callback was synthetic; this is not live Telegram or Discord transport proof. No production Gateway, channel state, or configuration was touched. Temporary state and queue ownership were cleaned up.

```json
{
  "schema": "openclaw.pr133248.durable-ingress-proof.v1",
  "exactHead": "57c4faff0ed7bb2d9b4fd308aa46b19ae4095e61",
  "setup": {
    "durableStore": "isolated OpenClaw SQLite state",
    "executor": "production follow-up queue with synthetic model callback",
    "transportLifecycle": "production ingress drain lifecycle",
    "adoptionStallTimeoutMs": 180
  },
  "queuedBehindLongTurn": {
    "heldMs": 620,
    "formerDeadlineCrossed": true,
    "heartbeatCount": 11,
    "claimStillOwnedAtCheckpoint": [
      "queued-event"
    ],
    "retryRowsAtCheckpoint": 0,
    "failedRowsAtCheckpoint": 0,
    "executionCount": 1,
    "duplicateAfterAdoption": "completed"
  },
  "orphanRecovery": {
    "status": "released-for-retry",
    "attempts": 1,
    "lastErrorContainsHandlerTimeout": true
  },
  "productionTouched": false
}
```

Owner acceptance:
- Intended behavior: accepted messages remain adoptable while their exact lifecycle is owned by the queue; ownerless claims retain canonical timeout recovery.
- Boundary: one optional cadence field propagated through existing shared lifecycle and channel wrappers; no configuration, schema, or migration change.
- Maintainer decision remains open: accept the additive public Plugin SDK lifecycle field and its queue-owned cadence semantics. Bot review is not that acceptance.
- Rollback: revert the renewal fix and its companion retry-fixture adjustment.
- Scope: 23 files, +273/-2. The width is required lifecycle forwarding; renewal policy stays in the queue and ingress drain.

AI-assisted.

---

Messages accepted while a long reply is running can expire in the follow-up queue and consume a retry. The reproduction confirmed expiry and retry; all three messages eventually arrived. It did not reproduce the older permanent-loss report in #133245.

The queue starts one heartbeat when it accepts a lifecycle and stops it on adoption, completion, cancellation, or callback failure. Heartbeats no longer scan queue collections or copy the in-flight set. Ingress remains responsible for the watchdog and retry settlement, and a heartbeat cannot undo the watchdog pause during adoption finalization.

Ingress derives the cadence from its adoption timeout. The optional lifecycle metadata remains necessary because wrappers rebuild callbacks and combine abort signals, losing the original timeout. No channel setting, schema, migration, dependency, or protocol change is added.

The simplification removes 110 lines net from the initial implementation plus main merge. Total production growth is 40 lines. Existing lifecycle types are reused, and the queue cases share the existing lifecycle test fixtures.

- Real Gateway and Discord: three marked messages on one route, with a queued reply held for 330 seconds. Main expired the third claim after 300.004 seconds. This head retained the same claim at 322.257 seconds with zero attempts; replies arrived once, in order, at 17.804, 349.201, and 350.223 seconds.
- Real SQLite/drain/binder/queue controls: explicit abandonment releases the claim; callback failure stops renewal and lets the watchdog retry without model execution.
- 191 core owner/sibling tests and 190 channel tests passed. All five new regression cases failed on plain main for the intended reasons.
- The local preflight passed core/extension type-aware lint, production and test types, script types, and protocol checks in an isolated checkout of this head.
- External consumers compiled and ran against published 2026.9.4 and this head, including omitted metadata, forwarding, optional return fields, and asynchronous abandonment.

Shared ingress binding, batching, reply dispatch, and the Feishu, Slack, Telegram, and Twitch wrappers preserve the source cadence. The fan-in uses the shortest valid cadence. Legacy wrappers that omit the optional field retain their existing head-only heartbeat behavior. Adoption, queue clearing, overflow, cancellation, summaries, and drain replacement retain or finish the same lifecycle owner.

Closes #133245.

Original implementation and report by @PollyBot13 (#133245). The contributor's commits and authorship are retained.

AI-assisted.

Co-authored-by: Ayaan Zaidi <[email protected]>
(cherry picked from commit dba4da1)

* fix(slack): join deferred replay settlement on shutdown (#150073)

Recheck cancellation before message preparation after replay claims and lazy pipeline imports, releasing every acquired claim on failure. Keep deferred reply settlement owned through ingress stop and settle failed routed deliveries through the existing failure lifecycle without rejecting successful publication.

(cherry picked from commit 82d4d1c)

* Restore Slack’s quiet preamble previews (#150407)

* Restore Slack’s quiet preamble previews

* Keep quiet preambles visible without admitting tool telemetry

(cherry picked from commit a90b969)

* fix(slack): retry temporary authorization failures (#150457)

(cherry picked from commit edc1fa8)

* Regenerate release metadata with its pinned schema generator

---------

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

Labels

channel: matrix Channel integration: matrix channel: slack Channel integration: slack channel: telegram Channel integration: telegram docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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: M 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.

[Bug]: Telegram progress mode exposes failed tool rows when toolProgress is false

1 participant