Repository navigation
fix(feishu): preserve unavailable controls in message cards - #130641
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 27, 2026 03:14
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 27, 2026
This was referenced Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #130640
What Problem This Solves
Fixes an issue where Feishu recipients lose unsupported button labels when the message also contains text or another native control, and where buttons marked disabled remain interactive.
Why This Change Was Made
The Feishu renderer now handles each control through its existing native encoding or literal label fallback. The same Feishu-owned fallback projection preserves rejected-target filtering and literal labels when card limits require text delivery, while document comments retain their plain-text encoding. The obsolete all-or-nothing fallback and an unreachable legacy card branch are removed.
The connected TTS boundary materializes presentation fallback before audio delivery and records whether the presentation itself adds visible content. This preserves controls without replaying already-delivered prose for empty structural presentations. The existing reply-anchor, audio, and delivery-callback flow stays intact. No public SDK, configuration, protocol, persistence, or typing/comment-lifecycle changes.
Current filtering/encoding lines trace to #86588, the native presentation-button repair merged on May 25, 2026 as 170e0aa. That PR and squash commit were authored/merged by
clawsweeper[bot], with source contribution credited to @NianJiuZst and automerge requested by @Takhoffman. The predecessor renderer already used the filtering pattern; this is not a claim that #86588 introduced a newly observed release regression. No last-known-good release is claimed.User Impact
Unavailable controls remain visible as labels; disabled controls stay non-interactive. Safe navigation and explicit commands remain usable, while opaque callback values and rejected targets stay out of fallback text. Oversized cards preserve their readable content, including when accompanied by speech audio.
Evidence
AI-assisted repair with independent source verification and clean authenticated Codex review. Production: +113/-114 (net -1); tests: +284/-31; docs: +1/-1.
Verified commit:
bd70d3a5644e8f135c91921d143979f52ffad23a; the ordinary commit hook preserved the exact reviewed patch.ff58f4a23408cae24a639dce0d20bea996a83af054e35a54f6a6caa8977bed0b.typefield instead of spreading that block. Final-source native Gateway verification is recorded separately.{ "surface": "actual built Gateway message.action and real Feishu SDK", "externalService": "local mock Feishu HTTP", "verdict": "pass", "cases": 18, "successfulActionReceipts": 18, "messageRequests": 34, "routes": ["send", "thread-reply"] }This is not live Feishu SaaS/UI or clicked-action proof. TTS is native outbound integration proof, not part of the Gateway wire fixture. Earlier fixture activation and chunk-boundary assertion corrections were harness fixes, not product bugs.
Named follow-ups, not fixed or counted here: generic core adaptation may flatten controls before the Feishu owner sees them; literal-label behavior in select fallback remains a separate unverified hypothesis.