Repository navigation
fix(discord): honor maxLinesPerMessage for CLI sends - #120249
clawsweeper[bot] wants to merge 1 commit into
Conversation
|
Codex review: found issues before merge. Reviewed September 2, 2026, 12:50 PM ET / 16:50 UTC. ClawSweeper reviewWhat this changesThe PR carries configuration and selected-account context into outbound chunking so Discord CLI sends honor the configured Merge readinessThe PR still fixes the linked Discord CLI chunking bug, but it cannot merge cleanly with current main and leaves a public chunker-context contract undocumented. Rebase and repair it before exact-head review. Priority: P2 Review scores
Verification
How this fits togetherOutbound delivery converts CLI or agent payloads into channel-specific chunks before sending them. This change passes known configuration and account facts from the generic planner to Discord’s chunker. flowchart LR
A[CLI or agent payload] --> B[Outbound delivery planner]
B --> C[Chunker context]
C --> D[Discord line-limit resolution]
D --> E[Discord message send]
Decision needed
Why: The branch conflicts across every production seam and current main has material delivery changes that must be preserved; the existing human-review label requires maintainer handling. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +17, Tests +157. Total +174 across 9 files. View PR surface stats
Review metrics
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:
Copy recommended automerge instructionTechnical reviewBest possible solution: Reapply the narrow config/account propagation to current main, retain current delivery safeguards, and document the optional raw-adapter context and formatting precedence before exact-head review. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: current main splits through the generic chunker before Discord's selected-account configuration is resolved, reproducing the reported 17-line default path without executing a live send. Is this the best way to solve the issue? No as submitted for merge: the intended owner-boundary fix is appropriate, but the branch must be reconciled with current main and document its public adapter contract. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1623683f478b. 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)
|
|
🦞✅ Source: Why human review is needed: What the maintainer can do as a next step: I added |
|
Fresh reviewer signal from an OpenClaw 2026.9.1 cron/direct-delivery reproduction:
This is fresh before-fix evidence only; I did not apply this PR to the deployment. It supports retaining the existing owner-boundary design rather than opening a parallel fix. The least-noisy next step looks like rebasing this focused repair onto current |
|
Superseded by the merged Discord sender-owned repair in #137969: d6be5810d9edfcb606b89f23bccf03e94583694e. Both PRs address #91860: the durable planner splits at the implicit 17-line limit before the selected Discord account can apply its existing setting. The landed repair keeps that resolution with the Discord bot/webhook senders and preserves explicit overrides and legacy webhook callers without expanding the shared SDK chunker context. Paired HTTP-boundary proof and compatibility review: baseline has five intended split failures; the landed source passes all 19 boundary cases and 132 focused tests, with fresh CI green. Root/account/default/explicit limits, structured fallback and bound-thread webhooks are covered. The canonical issue is now closed by the merge. Closing this alternative implementation as superseded. A new report with a concrete durable/CLI or webhook configuration that still splits incorrectly on the landed source would warrant follow-up. |
Summary
maxLinesPerMessagein the Discord plugin before line-based splitting.Validation
git diff --check, andpnpm check:changed.Release note
Discord CLI message sends now honor the configured
maxLinesPerMessagebefore they are split.Fixes #91860