You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
List commands silently return only the first page (e.g. cf workers list returns 10 of 46) #20
cf workers list is described as "List all Workers for an account." On an account with 46 Workers it returns 10, and nothing in the output indicates that the result is incomplete. The API reports result_info.total_count: 46, but cf neither fetches the remaining pages nor surfaces the pagination info.
--page / --per-page work (--per-page 50 returns all 46), so this is about the default behaviour. A silently truncated JSON array looks complete. A human can miss that, and an agent almost certainly will: asked "which Workers exist?", it will answer confidently with 10 of 46.
Reproduction
On an account with more than 10 Workers and more than 20 KV namespaces:
PR #447 exposes another consequence of dropping pagination metadata: callers cannot obtain the opaque tokens needed to request the next page or save a checkpoint.
cf email-domains changes loses result_info.next_cursor and result_info.has_more. Its documented polling/checkpoint flow requires both. Its required top-level platform data is also discarded by API-envelope unwrapping.
cf billing spend-policies activity list loses result_info.cursor, the opaque token for the next page.
The API client retains result_info for array responses, but formatOutput() prints only the array. A single-page output policy still needs to expose the continuation metadata so callers can paginate manually. An envelope-preservation fix also needs to consider top-level response fields such as platform, which are dropped before formatting.
Tracking these cases here and resolving the PR review thread in favor of this issue. Verified against PR commit c4737ec55b20c46e67a8273ef3ea50cc012230e9 and pinned OpenAPI revision 319dc756af2a642b3122b4db7e3b79ac1fbec7d8.
cf retains single-page JSON stdout and now exposes the API's non-empty result_info on stderr, including page counts, totals, and continuation cursors. Callers can use the endpoint's page/cursor flags to continue; --quiet intentionally suppresses this metadata notice.
The remaining follow-up about cf email-domains changes losing top-level platform data has been moved to #510. Closing this issue as completed for its original pagination visibility problem.
Activity
petebacondarwin commentedon Nov 1, 2026
PR #447 exposes another consequence of dropping pagination metadata: callers cannot obtain the opaque tokens needed to request the next page or save a checkpoint.
From the review thread:
cf email-domains changeslosesresult_info.next_cursorandresult_info.has_more. Its documented polling/checkpoint flow requires both. Its required top-levelplatformdata is also discarded by API-envelope unwrapping.cf billing spend-policies activity listlosesresult_info.cursor, the opaque token for the next page.The API client retains
result_infofor array responses, butformatOutput()prints only the array. A single-page output policy still needs to expose the continuation metadata so callers can paginate manually. An envelope-preservation fix also needs to consider top-level response fields such asplatform, which are dropped before formatting.Tracking these cases here and resolving the PR review thread in favor of this issue. Verified against PR commit
c4737ec55b20c46e67a8273ef3ea50cc012230e9and pinned OpenAPI revision319dc756af2a642b3122b4db7e3b79ac1fbec7d8.petebacondarwin commentedon Nov 4, 2026
Resolved by #478, merged as f3ebc1e.
cf retains single-page JSON stdout and now exposes the API's non-empty
result_infoon stderr, including page counts, totals, and continuation cursors. Callers can use the endpoint's page/cursor flags to continue;--quietintentionally suppresses this metadata notice.The remaining follow-up about
cf email-domains changeslosing top-levelplatformdata has been moved to #510. Closing this issue as completed for its original pagination visibility problem.