Repository navigation
fix(discord): channel edits persist applied forum tags - #194429
Conversation
|
🦞👀 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: needs maintainer review before merge. What this changesThis PR carries applied forum thread tags through Discord channel edits and preserves empty arrays so callers can clear tags. Example: Clear the Done and Automation tags from the Neon Goals TODOs forum thread with appliedTags: [].
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a confirmed Discord tag-editing bug that remains on current main, with no actionable findings; required current-head CI is still pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe message tool dispatches channel-edit requests to Discord's shared parameter reader, which prepares the payload that the REST adapter sends to Discord. flowchart LR
A[Message tool] --> B[Discord action adapter]
B --> C[Shared edit parameter reader]
C --> D[Discord guild action]
D --> E[Channel REST adapter]
E --> F[Discord thread tags]
Technical reviewBest possible solution: Land the existing shared-parser and REST-mapping repair after required current-head CI completes. Do we have a high-confidence way to reproduce the issue? Current-main source shows both missing forwarding steps, corroborated by the supplied base-versus-candidate Gateway request trace and the original affected-release report; this review ran no target code. Is this the best way to solve the issue? The patch repairs the existing owners directly, preserves omission versus explicit clearing, and adds no competing implementation or configuration surface. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e95289326a79. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +11, Tests -1. Total +10 across 7 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed November 10, 2026, 1:48 AM ET / 06:48 UTC (Revision 5). |
|
@clawsweeper re-review Fixed the snake_case empty-array finding in 106c442 and added redacted live Discord clear + independent readback + exact restore proof to the PR body. |
|
🦞👀 Re-review progress:
|
|
Not sure how to get this picked up for human review, but I hope it happens soon. I keep patching my Claw to support Kanban via forum thread tagging and it's wasting bunch of tokens. |
|
@clawsweeper re-review Added the executed base-red/head-green regression comparison requested in the latest review: #194429 (comment) |
|
🦞👀 Re-review progress:
|
|
Status: ready for maintainer merge. Automated review now rates this 🦞 diamond lobster (5/6) on readiness, proof, and patch quality, with no remaining findings and "Before merge: None".
The contributor account has only READ access to this repository, so it cannot merge or arm auto-merge. A maintainer with write access is needed to land it. Related issue: #36736. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Proof for aedf433: built Gateway on node:24.22.1 in secretless Docker, Requests the stand-in saw (run 1; run 2 identical), and the thread tags after the call: Main reports success for both tag edits but sends an empty PATCH, so the tags never change. The candidate sends |
|
Landed in baccc7e. Thanks @caseyjkey. Discord channel-edit now saves forum thread tags. |
|
Thank you! |
fix(discord): channel edits persist applied forum tags Discord channel-edit exposed appliedTags in its schema, but the parser, payload and REST adapter never carried it. The tool reported success while the forum thread's tags stayed unchanged. appliedTags is now forwarded as applied_tags. The shared readStringArrayParam gains an optional allowEmpty setting, off by default, so an explicit [] can clear tags; every existing caller keeps its current behavior. Evidence: a built Gateway on node:24.22.1 in secretless Docker, Discord pointed at a local stand-in that records requests and keeps forum-thread state, calls made through POST /tools/invoke with the message tool, two runs each. On main, channel-edit with appliedTags [t1, t2] and then [] reported success with an empty PATCH body and the tags never changed. With this change the PATCH carries applied_tags, the thread takes both tags, and [] clears them. An edit with only name and locked, an availableTags edit, thread-create with appliedTags [] and sticker with an empty stickerId behave the same on both. Details: openclaw#194429 (comment). Thanks @caseyjkey. Co-authored-by: Ayaan Zaidi <[email protected]>
…94429) Backport of baccc7e. Release adaptation: omit unrelated numeric test cleanup; carry explicit-empty parser and complete channel serialization plus focused regression. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit f1589c4f1784cf1aeef4c794a4bbe784f0b9aaac)
Related: #36736
What Problem This Solves
Fixes: Discord
channel-editreports success without changing forum or media thread tags whenappliedTagsis provided.User Impact
User impact: agents can replace or clear a Discord forum thread applied tags through
channel-edit, so Kanban status changes persist instead of silently no-oping.Why This Change Was Made
The action schema already exposes
appliedTags, but the Discord channel-edit parser, payload type, and REST adapter did not carry it to Discordapplied_tagsfield. This change wires the value through and deliberately preserves an explicit empty array for both camelCase and snake_case input so callers can clear every tag.Evidence
appliedTags,applied_tags, replacement, and clearing.openclaw/ci-gate.git diff --checkpasses.Live Discord behavior proof through the shipped action
Run at 2026-11-08T22:31:04Z. The script called the shipped Discord channel-edit action entry point,
handleDiscordAction, with the same action payload shape themessagetool sends, then independently read the thread from Discord after each PATCH. Tag names are shown; raw tag IDs, channel IDs, user IDs, and credentials are omitted.This proves both explicit clearing and non-empty replacement through the shipped action path against live Discord, and that the original card state is restored exactly afterward.
Base-red / head-green regression evidence
main): the channel-edit parser dropsappliedTagsand the REST payload omitsapplied_tags, so the PATCH reports success while Discord keeps the old tags. Reported upstream in Discord channel-edit does not pass appliedTags to API (forum post tags) #36736.appliedTags(including an explicit empty array for bothappliedTagsandapplied_tags), the REST body carriesapplied_tags, and the live run above shows the readback changing from[Done, Automation]to[]and back.