Skip to content

fix(feishu): preserve accepted document-comment delivery identity - #128284

Merged
steipete merged 1 commit into
mainfrom
codex/feishu-comment-receipt-owner-20260823
Aug 23, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/feishu-comment-receipt-owner-20260823

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes incorrect Feishu document-comment delivery receipts when a reply is delivered by creating a new document comment instead.

Why This Change Was Made

The Feishu document delivery owner explicitly reports whether it replied to a comment or created a new comment. The regular comment dispatcher already selects the accepted platform message ID from that delivery mode, but the outbound adapter independently preferred any reply ID even when a new comment was actually accepted. Preserve the real accepted comment identity at the outbound producer and in its delivery-progress callback.

User Impact

Feishu document comments now keep the correct message identity for delivery tracking, deduplication, retries, and follow-up actions when document restrictions require creating a new comment.

Evidence

  • Extended the existing real outbound comment fixture; before the production fix it deterministically failed with expected comment_msg but actual reply_from_add_comment.
  • Verified both the returned message ID and the delivery progress callback use the actual accepted comment ID.
  • node scripts/run-vitest.mjs extensions/feishu/src/outbound.test.ts extensions/feishu/src/comment-dispatcher.test.ts — 125 tests passed across both owner and sibling paths.
  • Targeted formatting, extension lint, and git diff --check passed.
  • Independent structured Codex review found no actionable issues.
  • Production delta: +1/-3 lines (net -2); no provider API, configuration, plugin SDK, Gateway protocol, or persistence-schema change.

@clawsweeper

clawsweeper Bot commented Aug 23, 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: feishu Channel integration: feishu size: XS maintainer Maintainer-authored PR labels Aug 23, 2026
@steipete
steipete marked this pull request as ready for review August 23, 2026 16:38
@steipete
steipete merged commit 8deb910 into main Aug 23, 2026
167 checks passed
@steipete
steipete deleted the codex/feishu-comment-receipt-owner-20260823 branch August 23, 2026 16:48
@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: feishu Channel integration: feishu maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant