Repository navigation
fix(discord): demote expected description truncation logs - #126824
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 20, 2026, 4:07 PM ET / 20:07 UTC. ClawSweeper reviewWhat this changesChanges successful Discord native-command description truncation logs from warning to debug level and adds focused assertions for command, option, and localized descriptions. Merge readinessNo blocking findings. Current main still logs successful Discord description normalization as a warning, while this focused owner-boundary patch preserves payload behavior and moves only that expected diagnostic to debug; keep the maintainer-owned PR open for normal exact-head CI and merge handling. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe Discord plugin turns shared command metadata into Discord-native commands, applies the transport’s description limit, and then deploys the resulting catalog. This change affects only the diagnostic emitted during that normalization step. flowchart LR
A[Shared command descriptions] --> B[Discord command builder]
B --> C[UTF-16-safe normalization]
C --> D[Debug diagnostic]
C --> E[Native command payload]
E --> F[Discord deployment]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +15. Total +15 across 2 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: Keep the logging classification at the Discord transport boundary, preserve the existing truncation and payload behavior, and merge after exact-head validation completes. Do we have a high-confidence way to reproduce the issue? Yes. Current main’s normalization helper emits the warning for over-limit retained descriptions, and the focused test constructs command, option, and localization inputs that take that path. Is this the best way to solve the issue? Yes. Changing the diagnostic classification at the Discord-owned normalization boundary is narrower and safer than shortening shared descriptions or changing deployment behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a4901b629101. 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
|
|
Land-ready proof for exact head
|
|
Merged via squash.
|
Closes #126817
What Problem This Solves
Fixes an issue where Discord logged required, successful native-command description truncation as a warning for every oversized retained command on each account start.
Why This Change Was Made
Discord still applies the same 100-character, UTF-16-safe transport normalization to command, option, and localized descriptions. The owner now records that expected adaptation at debug level; invalid-command and deployment failures remain warnings/errors. Shared descriptions stay rich for help, model routing, and sibling channels.
User Impact
Operators no longer receive warning floods for successful Discord catalog construction, so genuine command deployment problems remain visible. Native command payloads and menus are unchanged.
Evidence
AI-assisted: implementation and review used Codex, with maintainer inspection of Discord's installed contract, shared skill metadata ownership, sibling transport limits, production logs, history, and tests.