agent-orchestrator
agent-orchestrator copied to clipboard
bug(cli): automation list silently stops after the first 50 definitions
ao automation list shows only the first 50 automations, with no warning in the plain output and no option to fetch the next page.
Repro
- Create 51 disabled automations.
- Run
ao automation listandao automation list --json. - Compare with
GET /api/v1/automations?limit=100.
The API returns all 51. The CLI returns 50 and exits successfully. JSON includes nextCursor: "NTA", but ao automation list --cursor NTA fails with unknown flag: --cursor. Calling the cursor API directly returns the missing entry.
The CLI should either follow pagination or expose it clearly. The list command currently makes one request without following the next cursor.
Test notes: Fedora 44, dd67f2d818. Tested with the real daemon and CLI. All 51 automations stayed disabled and were deleted afterward; none ran.
Assigned to @ApexYash11