Repository navigation
feat(slack): add compact commentary progress - #126480
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 20, 2026, 5:53 PM ET / 21:53 UTC. ClawSweeper reviewWhat this changesAdds an opt-in Slack Merge readinessNo blocking correctness finding remains: the prior shared-compositor regression is fixed by keeping plan suppression in Slack compact mode. This adds a public Slack configuration contract, so it remains open for maintainer product acceptance and exact-head CI. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe Slack plugin translates agent progress callbacks into Slack cards, drafts, and final messages. This adds a Slack-only choice between existing card presentation and an editable compact draft while preserving normal final-delivery fallbacks. flowchart LR
A[Agent progress callbacks] --> B[Slack progress runtime]
B --> C{Configured style}
C -->|Card| D[Native or Block Kit card]
C -->|Compact| E[Editable commentary draft]
D --> F[Slack message delivery]
E --> F
F --> G[Final edit or safe fallback]
Decision needed
Why: The patch is technically bounded, but it adds a new persisted operator-facing mode rather than repairing an established behavior contract. Before merge
Agent review detailsSecurityNone. PR surfaceSource +40, Tests +196, Docs +24, Generated 0. Total +260 across 16 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Accept compact as a Slack-only opt-in, retain card mode when the setting is absent, and preserve the existing safe final-delivery fallbacks. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this is an opt-in feature, and the contributor supplied a real Slack after-behavior trace for the requested flow. Is this the best way to solve the issue? Yes — the best implementation boundary is Slack-local suppression for compact mode while the shared compositor continues to render plans independently of tool-line visibility. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 784a2287815c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Live Slack E2E proofRan on 2026-08-20 at 12:17 America/Los_Angeles against the original implementation commit Effective progress configuration: {
"mode": "progress",
"nativeTransport": false,
"progress": {
"style": "compact",
"label": false,
"maxLines": 1,
"commentary": true,
"toolProgress": false
}
}The test prompt required a brief commentary update, three separate tool calls, and an exact final marker. External polling of Slack observed:
This verifies the live behavior requested by the PR: commentary-only progress with no label/tool rows, followed by in-place replacement with the final answer. The PR subsequently added stronger commentary-only suppression and regression coverage; its current head when this proof was attached is |
fecacc8 to
f22df38
Compare
Review finding resolution
Focused proof
The changed-file gate passed its core typechecks, formatter, guards, contract tests, dead-export scans, and boundary checks, then stopped at the unchanged repository error The existing live Slack proof remains applicable because this follow-up changes only where plan suppression is owned; compact commentary and final edit-in-place behavior are unchanged: #126480 (comment) |
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* feat(slack): add compact progress style * chore(slack): protect compact progress contract * chore(slack): clarify compact progress comment * chore(slack): document compact task card behavior * chore(slack): document compact draft card behavior * chore(slack): document compact progress config contract * fix(slack): enforce compact commentary-only progress * chore(slack): strengthen compact style guard * fix(slack): type compact progress config * fix(slack): scope compact plan suppression --------- Co-authored-by: Sarah Fortune <[email protected]>
Closes #126477
What Problem This Solves
Slack progress mode currently selects either native task cards or a Block Kit session card. Both surfaces add structured labels, rows, icons, and timing metadata, so operators cannot choose a quiet presentation that shows only assistant commentary. The Block Kit fallback also sends the final answer as a separate message instead of replacing the progress message.
Why This Change Was Made
This adds a Slack-specific
channels.slack.streaming.progress.stylesetting with"card"as the backward-compatible default and"compact"as an opt-in. Compact style bypasses both card renderers and reuses Slack's existing editable text-preview finalization path, so eligible final text replaces the commentary message in place. Existing safe fallbacks remain unchanged for media, errors, oversized or split payloads, custom outbound identity, and edit failures.The Slack runtime reads the setting through the typed
SlackAccountConfigcontract. The generic progress rendering surface stays unchanged because this presentation choice is specific to Slack's native and Block Kit card alternatives.User Impact
Slack operators can configure tool progress as italic commentary only, without a commentary label, bullets, emoji, tool rows, or elapsed time:
The default card behavior is unchanged when
styleis omitted.Evidence
chat.postMessage, a second commentary update viachat.updateon the same timestamp, and the final answer via anotherchat.updateon that same message.node scripts/run-vitest.mjs extensions/slack/src/delivery-trace.test.ts extensions/slack/src/monitor/message-handler/dispatch.preview-fallback.test.ts extensions/slack/src/config-schema.test.ts src/config/schema.test.ts src/config/types.slack.test.ts src/plugin-sdk/channel-config-ui-hints.test.ts— 269 passed across three shards../node_modules/.bin/oxfmt --check ...and./node_modules/.bin/oxlint ...on the changed TypeScript files — passed../.agents/skills/autoreview/scripts/autoreview --mode local— clean, no accepted/actionable findings.extensions/acpx/src/service.ts:TS2353: 'elicitationModes' does not exist in type 'OpenClawAcpxRuntimeOptions'. That file is unchanged by this PR.AI-assisted: Codex implemented and validated this change; I reviewed the behavior and understand the implementation.