-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[feishu plugin] wiki spaceNode.list 分页不生效,只返回前20条记录 #37626
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossCan lose, corrupt, or silently drop user/session/config data.Can lose, corrupt, or silently drop user/session/config data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automationExclude from stale automation
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossCan lose, corrupt, or silently drop user/session/config data.Can lose, corrupt, or silently drop user/session/config data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automationExclude from stale automation
Type
Fields
Priority
None yet
问题描述
飞书插件的
feishu_wiki工具在调用nodesaction 时,无法获取完整的子节点列表。飞书 API 默认只返回前 20 条记录,即使添加了分页支持代码也无法正确获取所有页面。环境信息
复现步骤
```javascript
feishu_wiki({
action: "nodes",
space_id: "7457428970923032579",
parent_node_token: "DmkjwwgQQi8UlkkES2Oc25EdnZd"
})
// 只返回 20 条,实际有 50+ 条
```
已尝试的修复
我已修改 `wiki.ts` 添加了分页逻辑:
但修改后 Gateway 重启,API 仍然只返回 20 条记录,且返回结果中没有包含分页信息(如 `total`, `pages_fetched`),似乎代码修改没有生效。
期望行为
相关文件
补充
飞书 API 文档确认 `spaceNode.list` 支持 `page_size` 和 `page_token` 分页参数:
https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/wiki-v2/space-node/list