Repository navigation
fix(slack): hide command failures in quiet progress - #145285
roboclaw-bot wants to merge 1 commit into
Conversation
Filter known intermediate command outcomes before Slack publishes progress rows. Keep approvals, blocked and unknown states, authored plans, detailed tool logs, final errors and the no-reply warning unchanged. Document the quiet-mode compatibility change. Worked on by: @Solvely-Colin Co-authored-by: Solvely-Colin <[email protected]>
|
🦞👀 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: blocked before merge. Reviewed September 11, 2026, 5:16 PM ET / 21:16 UTC. ClawSweeper reviewWhat this changesSlack quiet progress filters command-failure events before publishing cards or compact drafts, with corresponding documentation and regression coverage. Merge readiness⛔ Blocked before merge - 3 items remain This is a focused, useful Slack presentation change that current main does not implement. No introduced correctness defect was found, but suppressing previously visible failures changes a shipped quiet-mode contract and warrants an explicit maintainer choice. Priority: P2 Review scores
Verification
How this fits togetherSlack progress translates agent activity into native task cards, Block Kit cards, or temporary text drafts. The changed projection filters display events before those surfaces share compositor state; final replies use separate delivery paths. flowchart TD
A[Agent activity] --> B[Slack visibility policy]
C[Streaming preferences] --> B
B --> D[Shared progress compositor]
D --> E[Native task card]
D --> F[Block Kit or compact draft]
G[Final reply and run outcome] --> H[Final delivery and card completion]
Decision needed
Why: The patch deliberately changes behavior documented in v2026.9.4; source inspection can verify the implementation but cannot choose the preferred diagnostic visibility contract. Before merge
Agent review detailsSecurityNone. PR surfaceSource +53, Tests +34, Docs +7. Total +94 across 7 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use the existing Slack projection boundary for an approved quiet-mode policy, retaining detailed opt-in, approvals, and terminal error delivery. Do we have a high-confidence way to reproduce the issue? Yes, at source level: quiet composition retains nonzero command exits, and Slack turns them into persistent recovered tasks after successful completion. No live Slack reproduction was run in this review. Is this the best way to solve the issue? Yes architecturally: filtering structured events at the existing Slack projection hook covers all three renderers without changing other channels or adding an SDK API; acceptance of the changed default remains a product choice. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 24109cc97c2e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Worth noting that the same tool error messages appear during discord progress streaming and likely other channels too. (The difference is discord replaces the progress message with the final response when it's ready, so at least the bash exits don't stay permanently visible like they do in Slack because Slack appends the final response.) |
|
Closing as superseded by #145345, merged in 3bfac2f, with follow-up cleanup in #145420. The shared compositor now suppresses intermediate tool execution rows in quiet progress across channels, including Slack, Discord, and Telegram, while preserving approvals and terminal error delivery. That covers the recovered-command noise addressed by this Slack-only patch without adding a second channel-specific filter. Existing before/after evidence remains available in this PR. Retired at Colin’s request; no merge or branch deletion. |
Related: #140037, #92085
What Problem This Solves
Fixes an issue where users in shared Slack conversations would see a persistent list of recovered command failures after a successful answer when quiet progress was enabled. Turning off the ordinary tool log did not remove these rows from native task cards or the Block Kit fallback.
Why This Change Was Made
Filter known intermediate command-failure events at Slack's existing compositor event-projection boundary, before any card publishes them. Both command-output and command-bearing item events use this policy; native cards, Block Kit cards, and compact drafts consume the same filtered state. No new configuration, execution changes, transcript changes, or global error-suppression switch are introduced.
User Impact
progress.toolProgress: false, or its preview alias) retains authored progress, plans where supported, and approvals without a recovered-command log.toolProgress: trueremains unchanged. Existing compact/card selection is unchanged; usestyle: "card"to keep plan cards with explicittoolProgress: false.Evidence
Transport-boundary proof, not a live Slack screenshot. The real Slack dispatch, compositor, native task projection/reconciler and Block Kit renderer were exercised with provider transport doubles. Identical fixtures used six distinct failed commands (four exit 1, two exit 8), authored narration, two plan steps, an approval lifecycle, and then a successful/error/no-reply outcome. No retry was needed to produce the old recovered rows.
Baseline:
7932371ea5a864326078706b98975458a2310abb.Recovered: Bash — exit NtaskstoolProgress: trueRepresentative emitted native task update, repeated under six distinct call IDs before:
{"type":"task_update","id":"openclaw-attention-fail_0_39de6b49","title":"Recovered: Bash — exit 1","status":"complete"}After: no command task update is emitted for those six IDs. Plan and approval updates remain, followed by the delivered final answer. Suppression happens before publication because already-published native task rows cannot be removed.
Validation:
git diff --checkpassed across the recorded validation runs.No live Slack sends or authenticated Slack UI capture were performed. A browser-generated illustration was not substituted for live UI proof. Full synthetic payload captures are retained with the task evidence; the table and excerpt above are taken from those captures. The separate existing inference that eviction can label a quiet row “Recovered” is not changed here.
Worked on by: @Solvely-Colin