fix(feishu): folder listings can continue after first page#101249
fix(feishu): folder listings can continue after first page#101249zhangguiping-xydt wants to merge 1 commit into
Conversation
|
Codex review: needs changes before merge. Reviewed July 6, 2026, 11:44 PM ET / 03:44 UTC. Summary PR surface: Source +16, Tests +73. Total +89 across 3 files. Reproducibility: yes. Current main returns Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Update the bundled Feishu Drive skill to document cursor continuation, then land this narrow list fix only while keeping #93928 open for the remaining Do we have a high-confidence way to reproduce the issue? Yes. Current main returns Is this the best way to solve the issue? Mostly yes for the narrow Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 780ca1d25315. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +16, Tests +73. Total +89 across 3 files. View PR surface stats
Acceptance criteria:
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
|
50793d2 to
86e81df
Compare
86e81df to
85d20d1
Compare
|
Landed the cleaned, current-main version in #101572 as commit Your original folder-pagination implementation and contributor credit are preserved in the co-authored landing commit. The original branch was 159 main commits / 903 files behind, and the repo-native maintainer sync repeatedly timed out while trying to carry that oversized rebase, so the safe path was a clean replacement containing only the intended Feishu files. Thank you @zhangguiping-xydt for the implementation and Gateway-level proof. |
What Problem This Solves
Fixes an issue where users listing a Feishu Drive folder could receive
next_page_tokenin the response but could not request the next page because thefeishu_drivelist action did not accept pagination inputs.Why This Change Was Made
The list action now exposes
page_tokenandpage_sizein its tool schema and forwards those values, along with any folder token, to Feishu Drive's file listing API. This keeps the existing list response shape, remains scoped to manual folder list continuation, and does not change other Drive actions.User Impact
Users can continue Feishu Drive folder listings by passing the returned
next_page_tokenaspage_token, and can optionally setpage_sizefor the folder listing request.Evidence
Reviewer-visible runtime proof through the real OpenClaw gateway HTTP surface:
daily_fix run-validation --name runtime-proof-feishu-drive-pagination -- runtime-proof-feishu-drive-pagination/run-proof.shObserved SDK-boundary requests after invoking
feishu_drivevia/tools/invoke:Key assertions from
runtime-proof-summary.json:Focused regression proof:
node scripts/run-vitest.mjs run extensions/feishu/src/drive.test.ts -t "lists a folder continuation page"Full Feishu Drive test file:
node scripts/run-vitest.mjs run extensions/feishu/src/drive.test.tsExtension test typecheck:
pnpm tsgo:test:extensions