Skip to content

fix(discord): honor explicit names for new forum posts - #129294

Merged
steipete merged 1 commit into
mainfrom
codex/qa-discord-forum-thread-name
Aug 25, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-discord-forum-thread-name

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users sending a message with an explicit thread name to a Discord forum or media channel would receive a post titled after the message content instead of the requested name. The same issue affected media messages expressed as classic Discord component payloads.

Why This Change Was Made

Discord automatically creates a child thread when a message is sent to a forum or media parent. The send owner already records that child thread in its delivery receipt, but both message-action rename paths inspected the original parent and incorrectly concluded that it was not a thread. Rename the authoritative delivered child thread when the receipt identifies one, preserving the original destination for existing threads, direct messages, and senders without a thread receipt.

User Impact

Explicit thread names now apply to newly created Discord forum and media posts for both ordinary messages and classic component-with-media sends. Existing thread renames, unsupported interactive forum components, direct-message warnings, voice sends, disabled channel management, and partial-delivery warnings keep their existing behavior.

Evidence

  • Tests-first regression reproduced four failures before the fix: ordinary forum, ordinary media, classic-component forum, and classic-component media sends each inspected parent P1 instead of delivered thread T1.
  • Focused Discord action, forum-thread producer, outbound adapter, and component suites: 4 files, 278 tests passed.
  • Existing component suite separately verifies that truly interactive components remain rejected for forum parents.
  • Formatter, targeted oxlint, max-lines ratchet, and assertion-safety ratchet pass.
  • Independent source/dependency review and fresh authenticated structured Codex review report no actionable findings.
  • Production: +2/-2, net 0. Tests: +49/-0.
  • Live Discord proof was not run because no disposable authenticated forum/media channel was available; owner-boundary RED→GREEN coverage and the existing Discord REST producer/component suites exercise the exact changed paths.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord size: S maintainer Maintainer-authored PR labels Aug 25, 2026
@steipete
steipete marked this pull request as ready for review August 25, 2026 11:53
@steipete
steipete merged commit 05a3b2a into main Aug 25, 2026
172 checks passed
@steipete
steipete deleted the codex/qa-discord-forum-thread-name branch August 25, 2026 12:01
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant