fix(feishu): paginate drive list/info to resolve files beyond first page#94042
fix(feishu): paginate drive list/info to resolve files beyond first page#94042xzh-icenter wants to merge 6 commits into
Conversation
- listFolder now accepts page_size and page_token params and returns has_more - getFileInfo now paginates through all pages when searching for a file by token - Added page_size and page_token to list action schema - Added folder_token to info action schema for scoped search - Added regression tests for pagination behavior Fixes openclaw#93928
|
Codex review: needs real behavior proof before merge. Reviewed June 20, 2026, 1:39 AM ET / 05:39 UTC. Summary PR surface: Source +34, Tests +197. Total +231 across 3 files. Reproducibility: yes. Current main and v2026.6.8 call 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:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land one Feishu-plugin-local pagination fix with cursor-aware list, page-draining info, aligned drive-skill guidance, and redacted live tenant proof or explicit maintainer proof override. Do we have a high-confidence way to reproduce the issue? Yes. Current main and v2026.6.8 call Is this the best way to solve the issue? Mostly yes. The plugin-local cursor wiring is the right layer, but the landing shape should also update bundled skill guidance, supply live proof or a maintainer override, and avoid landing both open candidate PRs. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3285a10c7f79. Label changesLabel justifications:
Evidence reviewedPR surface: Source +34, Tests +197. Total +231 across 3 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
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Closing this PR — the sibling candidate #94000 has been more actively maintained and already has maintainer engagement (vincentkoc assisted with rebase). Rather than duplicate review effort, I'll defer to that branch. Thanks to the reviewers for the detailed feedback on proof requirements. The Feishu pagination fix direction is clear, and #94000 looks close to landing. Fixes #93928 |
What Problem This Solves
The Feishu drive list/info endpoints only return the first page of results (100 items max), silently dropping files beyond that limit.
Summary
feishu_driveaction: inforeturnsFile not foundfor files past page 1, andaction: listcannot retrieve pages beyond the first — both ignore thehas_more/next_page_tokencursor the Lark API returns.listFolder()acceptspage_size/page_tokenparams;getFileInfo()paginates through all pages; schema exposes cursor fields.Closes #93928
Verification
Impact Assessment
Evidence
Behavior addressed: feishu_drive info must find files past the first page. list must support cursor-based pagination.
Environment tested: Node.js v22, branch fix/93928-drive-pagination-v3
Steps run after the patch:
Evidence after fix (console output):
Observed result: Cursor-based pagination added to listFolder and getFileInfo. Schema exposes page_size and page_token. 41 pagination-related code occurrences in drive.ts.
Not tested: Not tested against a live Feishu tenant.