Skip to content

Commit 2161b46

Browse files
authored
fix(feishu): support native interactive card payload sends (#72667)
* fix(feishu): support native interactive card payload sends * fix(clownfish): address review for ghcrawl-156608-autonomous-smoke (1) * fix(feishu): harden native card payload rendering
1 parent c567819 commit 2161b46

4 files changed

Lines changed: 820 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ Docs: https://docs.openclaw.ai
167167
- Mattermost: keep direct-message replies top-level by suppressing reply roots for DM delivery while preserving channel and group thread roots, and derive inbound chat kind from the trusted channel lookup instead of the websocket event channel type. Carries forward #60115, #55186, #72305, and #72659; refs #59758, #59981, #59791, and #57565. Thanks @vincentkoc, @jwchmodx, and @hnykda.
168168
- Docker: pre-create `/home/node/.openclaw` with node ownership and private permissions so first-run Docker Compose named volumes no longer fail startup with EACCES. (#48072, #63959; fixes #61279) Thanks @timoxue and @jeanibarz.
169169
- CLI/Gateway: treat local restart probe policy closes for connect, exact `device required`, pairing, and auth failures as Gateway reachability proof without accepting empty, broad standalone token/password/scope/role, or pair-substring 1008 close reasons. Fixes #48771; carries forward #48801; related #63491. Thanks @MarsDoge and @genoooool.
170+
- Feishu: send outgoing interactive reply payloads as native cards with clickable buttons while preserving text, media, and document-comment fallbacks. Fixes #13175 and #58298; carries forward #47891. Thanks @Horacehxw.
170171
- Process/Windows: decode command stdout and stderr from raw bytes with console-codepage awareness, while preserving valid UTF-8 output and multibyte characters split across chunks. Fixes #50519. Thanks @iready, @kevinten10, @zhangyongjie1997, @knightplat-blip, @heiqishi666, and @slepybear.
171172
- Bonjour/Windows: hide the bundled mDNS advertiser's Windows ARP shell probe so Gateway startup no longer flashes command-prompt windows. Fixes #70238. Thanks @alexandre-leng, @PratikRai0101, @infinitypacific, and @tomerpeled.
172173
- Agents/bootstrap: dedupe hook-injected bootstrap context files by workspace-relative path and store normalized resolved paths so duplicate relative and absolute hook paths no longer depend on the process cwd. (#59344; fixes #59319; related #56721, #56725, and #57587) Thanks @koen666.

‎extensions/feishu/src/channel.ts‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,26 @@ export const feishuPlugin: ChannelPlugin<ResolvedFeishuAccount, FeishuProbeResul
12831283
chunker: chunkTextForOutbound,
12841284
chunkerMode: "markdown",
12851285
textChunkLimit: 4000,
1286+
presentationCapabilities: {
1287+
supported: true,
1288+
buttons: true,
1289+
selects: false,
1290+
context: true,
1291+
divider: true,
1292+
},
1293+
renderPresentation: async (ctx) => {
1294+
const runtime = await loadFeishuChannelRuntime();
1295+
const renderPresentation = runtime.feishuOutbound.renderPresentation;
1296+
return renderPresentation ? await renderPresentation(ctx) : null;
1297+
},
1298+
sendPayload: async (ctx) => {
1299+
const runtime = await loadFeishuChannelRuntime();
1300+
const sendPayload = runtime.feishuOutbound.sendPayload;
1301+
if (!sendPayload) {
1302+
throw new Error("Feishu payload sending is not available.");
1303+
}
1304+
return await sendPayload(ctx);
1305+
},
12861306
...createRuntimeOutboundDelegates({
12871307
getRuntime: loadFeishuChannelRuntime,
12881308
sendText: { resolve: (runtime) => runtime.feishuOutbound.sendText },

0 commit comments

Comments
 (0)