Repository navigation
Conversation
Signed-off-by: Rudy Celekli <[email protected]>
Signed-off-by: Rudy Celekli <[email protected]>
Signed-off-by: Rudy Celekli <[email protected]>
Signed-off-by: Rudy Celekli <[email protected]>
Signed-off-by: Rudy Celekli <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 4:46 PM ET / 20:46 UTC (Revision 4). ClawSweeper reviewWhat this changesThe Feishu plugin preserves redacted API error codes, messages, and request log IDs in rejected tool results, with document and Drive regression coverage. Merge readiness✅ Ready for maintainer review This PR remains useful: current main and the latest release still lose diagnostics from rejected Feishu SDK requests. The focused repair has credible production-boundary proof, and no blocking defect was found. Priority: P2 Review scores
Verification
How this fits togetherFeishu document and Drive tools send requests through the Lark SDK. Their shared error handler turns rejected requests into structured tool results and fenced text for the agent. flowchart LR
A[Document or Drive tool] --> B[Lark SDK request]
B --> C[Rejected API response]
C --> D[Select diagnostic fields]
D --> E[Redact sensitive text]
E --> F[Structured error and fenced agent text]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +25, Tests +189. Total +214 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one shared Feishu error handler that exposes safe vendor diagnostics while preserving redaction, fencing, and ordinary error behavior. Do we have a high-confidence way to reproduce the issue? Yes, from source: a rejected SDK Error carrying response.data reaches a current-main handler that formats only the generic error message. The linked before/after harness exercises that failure through the production document tool and real SDK HTTP client. Is this the best way to solve the issue? Yes. Reusing the existing Feishu formatter with a restricted field projection is a narrow repair that avoids another diagnostic implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b1697e2ae8f6. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
|
Merged via squash.
|
14 upstream commits. openclaw#166818 removes low-value tests across several areas, including seven Feishu test files. In extensions/feishu/src/send.test.ts it deletes the test that checked a send works without the Feishu runtime text helpers and moves that condition into beforeEach for every test in the file. This branch had changed one line in that deleted test, adding the accountId the send now passes to resolveMarkdownTableMode, so the two sides conflicted. The merge follows upstream's pruning and takes upstream's send.test.ts. The accountId forwarding is still covered by this branch's send.markdown-tables.test.ts, which checks the posted text for a named account and for the channel default rather than the arguments of a mock. openclaw#166599 changes extensions/feishu/src/tool-result.ts and adds tests, and merged without conflict. Every Feishu file this merge changes is identical to upstream/main, and every other file is the same as the previous branch head. Upstream did not change the config baseline in this range. The merge took upstream's generated files and regenerated all three from this merge with build:docker in a separate detached checkout. Counts are core 2495, channel 3876 and plugin 4527, the same as the previous branch head, and every hash matches it. The generated metadata differs from upstream/main only by the two Feishu markdown.tables entries. The three generated-file checks pass there. Feishu: 102 files and 1502 tests in the extension project, 17 files and 217 tests in the database-workers project, all passing. The drop from 1523 and 218 is the tests openclaw#166818 removed less the ones openclaw#166599 added. The forwarder test and the routing guards pass, 503 tests. tsgo:core, tsgo:extensions, tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines, assertion-safety, database-worker, test-timeout-race and test-mock-exports ratchets against upstream/main, oxlint with unused-directive errors and oxfmt on the 42 changed code files all pass.
…law#166599) * test(feishu): reproduce document diagnostic loss through SDK Signed-off-by: Rudy Celekli <[email protected]> * fix(feishu): preserve safe document API rejection diagnostics Signed-off-by: Rudy Celekli <[email protected]> * test(feishu): require retained Drive error diagnostics Signed-off-by: Rudy Celekli <[email protected]> * test(feishu): forward native SDK HTTP generics correctly Signed-off-by: Rudy Celekli <[email protected]> * test(feishu): use contextual SDK request typing Signed-off-by: Rudy Celekli <[email protected]> --------- Signed-off-by: Rudy Celekli <[email protected]>
Related: #132481
What Problem This Solves
Fixes: Rejected Feishu document requests hide API diagnostics behind generic HTTP errors.
User Impact
Operators now see business error codes, messages and request log IDs.
Why This Change Was Made
Request credentials stay excluded; ordinary errors retain their result shape.
Evidence