Repository navigation
fix(feishu): DM replies fail with error 230101 - #109637
Conversation
79a7416 to
0e0cc16
Compare
|
Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 7:01 PM ET / 23:01 UTC. Summary PR surface: Source +3, Tests +33. Total +36 across 2 files. Reproducibility: no. high-confidence live after-fix reproduction is available in this review. The source path and focused regression clearly reproduce the incorrect dispatcher target, while the linked report supplies credible live before-fix API evidence. Review metrics: none identified. Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Obtain a redacted after-fix Feishu DM transcript, terminal output, or runtime log from this exact head that shows successful delivery through the inbound Do we have a high-confidence way to reproduce the issue? No high-confidence live after-fix reproduction is available in this review. The source path and focused regression clearly reproduce the incorrect dispatcher target, while the linked report supplies credible live before-fix API evidence. Is this the best way to solve the issue? Yes, conditionally: targeting the inbound real Feishu conversation is the narrowest repair because it leaves sender identity, policy, sessions, proactive sends, and synthetic-event handling unchanged; live API proof is still needed to confirm the Feishu contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 781913025b6f. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +3, Tests +33. Total +36 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (9 earlier review cycles; latest 8 shown)
|
cd89cfe to
22a26e4
Compare
22a26e4 to
38c456a
Compare
8d2429c to
3430a5e
Compare
3430a5e to
0be0f0d
Compare
✅ Real-environment verificationTest environment: Windows 11 · OpenClaw 2026.7.1 · Feishu tenant (Chinese domain) Before the fix: After applying the patch:
Result: DM replies are now delivered successfully through the existing conversation chat_id. The bot responds to direct messages without error 230101. Files patched: Verdict: This fix works correctly in a real Feishu environment. DM replies no longer fail with 230101 when dispatched through the conversation chat_id. |
|
@clawsweeper re-review Real-environment proof has been added in the comment above. Successful DM reply delivery verified on a live Feishu tenant after applying this patch. |
|
Merged via squash.
|
* origin/main: (224 commits) fix(memory): preserve Windows session ownership (openclaw#115851) fix(compaction): drop context-engine fallback on codex ownership skip (openclaw#114155) (openclaw#115666) fix(msteams): ignore blank certificate settings (openclaw#109112) fix(usage): guard malformed DeepSeek payloads (openclaw#110785) docs(agents): reword imported review rules in repo voice docs(agents): add context-budget, tool-description, cache-invalidation, and review-premise rules docs(agents): mock-gateway proof satisfies gate without discouraging live proof docs(agents): add vitest in-flight edit rule and mock-gateway proof recipe docs(agents): restructure root AGENTS.md around product doctrine and deduped policy fix(codex): keep completed answers over audit gaps (openclaw#115849) test(cli): isolate unknown-command process validation (openclaw#115848) fix(memory-host-sdk): resolve stable execPath for worker fork to survive Homebrew Node upgrades (openclaw#99318) feat(ui): add composer capability menu (openclaw#115800) fix(synology-chat): stop fabricating send message ids (openclaw#110770) fix(feishu): reply to direct messages by chat id (openclaw#109637) fix(acp): attach error listener to spawned ACP agent process (openclaw#109529) fix(sessions): deliver agent announcements to direct message sessions (openclaw#115811) fix(nextcloud-talk): reject reactions for disabled or unconfigured accounts (openclaw#112675) refactor(ui): move Agent Defaults entry from the sidebar into the Agents page (openclaw#115836) feat(gateway): push session PR indicators to subscribed clients (openclaw#115643) ... # Conflicts: # src/agents/apply-patch.ts # src/agents/sandbox/fs-bridge-mutation-helper.ts
* origin/main: docs(agents): reword imported review rules in repo voice docs(agents): add context-budget, tool-description, cache-invalidation, and review-premise rules docs(agents): mock-gateway proof satisfies gate without discouraging live proof docs(agents): add vitest in-flight edit rule and mock-gateway proof recipe docs(agents): restructure root AGENTS.md around product doctrine and deduped policy fix(codex): keep completed answers over audit gaps (openclaw#115849) test(cli): isolate unknown-command process validation (openclaw#115848) fix(memory-host-sdk): resolve stable execPath for worker fork to survive Homebrew Node upgrades (openclaw#99318) feat(ui): add composer capability menu (openclaw#115800) fix(synology-chat): stop fabricating send message ids (openclaw#110770) fix(feishu): reply to direct messages by chat id (openclaw#109637) fix(acp): attach error listener to spawned ACP agent process (openclaw#109529) fix(sessions): deliver agent announcements to direct message sessions (openclaw#115811) fix(nextcloud-talk): reject reactions for disabled or unconfigured accounts (openclaw#112675) refactor(ui): move Agent Defaults entry from the sidebar into the Agents page (openclaw#115836) feat(gateway): push session PR indicators to subscribed clients (openclaw#115643) fix(setup): make Gemini recovery actionable (openclaw#115835) fix(terminal-core): prevent String.replace $ pattern injection in display-string (openclaw#111398) refactor(channels): share ingress retention defaults (openclaw#115824) fix(nostr): profile imports vary on timestamp ties (openclaw#111798)
Co-authored-by: Peter Steinberger <[email protected]>
* origin/main: docs(agents): reword imported review rules in repo voice docs(agents): add context-budget, tool-description, cache-invalidation, and review-premise rules docs(agents): mock-gateway proof satisfies gate without discouraging live proof docs(agents): add vitest in-flight edit rule and mock-gateway proof recipe docs(agents): restructure root AGENTS.md around product doctrine and deduped policy fix(codex): keep completed answers over audit gaps (openclaw#115849) test(cli): isolate unknown-command process validation (openclaw#115848) fix(memory-host-sdk): resolve stable execPath for worker fork to survive Homebrew Node upgrades (openclaw#99318) feat(ui): add composer capability menu (openclaw#115800) fix(synology-chat): stop fabricating send message ids (openclaw#110770) fix(feishu): reply to direct messages by chat id (openclaw#109637) fix(acp): attach error listener to spawned ACP agent process (openclaw#109529) fix(sessions): deliver agent announcements to direct message sessions (openclaw#115811) fix(nextcloud-talk): reject reactions for disabled or unconfigured accounts (openclaw#112675) refactor(ui): move Agent Defaults entry from the sidebar into the Agents page (openclaw#115836) feat(gateway): push session PR indicators to subscribed clients (openclaw#115643) fix(setup): make Gemini recovery actionable (openclaw#115835) fix(terminal-core): prevent String.replace $ pattern injection in display-string (openclaw#111398) refactor(channels): share ingress retention defaults (openclaw#115824) fix(nostr): profile imports vary on timestamp ties (openclaw#111798)
Closes #109409
What Problem This Solves
Feishu can reject a bot reply sent to a direct-message sender's
open_idwithHTTP 400 and provider error 230101, even though delivering the same reply to the
existing inbound direct-message conversation succeeds. The agent completes its
response but the user sees nothing.
Why This Change Was Made
Route the reply dispatcher for a real inbound
oc_conversation to thatconversation's
chat_id. Preserve the sender'sopen_idfor authorization,session identity, ACP routing, the persisted last route, and proactive messages.
Synthetic menu and card-action events without a real conversation retain their
original sender-target fallback. Update both the normal and active-broadcast
dispatcher paths without replacing current-main broadcast settlement.
This follows Feishu's send-message API
and the official Node SDK inbound-event example,
which responds to
im.message.receive_v1using itsmessage.chat_idandreceive_id_type: "chat_id".User Impact
Feishu users receive direct-message text, cards, media, and streaming replies
through the established conversation. Group replies, thread reply metadata,
synthetic events, proactive messages, sender-scoped session history, and
multi-account token isolation keep their existing behavior.
Evidence
Exact contributor head:
bf8fcc63582c9172397532deebd613563d01125a.Original contributor commit
0be0f0dbb84d0e6c2e56a078e249fc9c0915ecb1is the refresh merge's firstparent. The current-main integration is its second parent; the original fork
branch was fast-forwarded without rewriting or force-pushing contributor
history.
Remote provider: Blacksmith Testbox
tbx_01kypp3xxcmdhd2dr5vfkssq6d.The committed HTTP regression executes production
sendMessageFeishu,sendCardFeishu,sendMediaFeishu,resolveFeishuSendTarget,createFeishuClient, the installed@larksuiteoapi/[email protected], and itsreal Axios transport against a real local HTTP server. It verifies:
Authorization: Beareron every message and upload.chat_idtext, interactive-card, and uploaded-imagedelivery.
The contributor's original bot regression separately proves that an actual
inbound direct-message conversation selects
chat:oc_dmwhile persisted routeidentity remains
user:ou_sender_1; syntheticp2p:events retain theirsender-scoped target. Current-main broadcast regression coverage also passes.
Fresh
gpt-5.6-solextra-high-effort structured review returned no actionablefindings (
patch is correct, confidence 0.93). Targeted formatting andgit diff --checkpassed. The same remote Testbox independently completed theentire
pnpm check:changedextension-production and extension-test typecheck,lint, formatting, dependency, plugin-boundary, and storage/import-cycle guards
with authoritative
exitCode: 0. Exact-head GitHub CI run30443791840
completed successfully.
Real behavior proof
targeted at
open_id; its existingchat_idis deliverable.Axios requests, a real authenticated local HTTP provider, and remote Linux
Testbox.
code: 230101from thesender-open-ID request.
requests return HTTP 200; group, thread, account, proactive, and error controls
pass.
local provider is real HTTP and official SDK transport, not a claim of a live
third-party tenant.
Disclosure: AI was used to understand the codebase and review the fix.