agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

bug(cli): automation list silently stops after the first 50 definitions

Open codebanditssss opened this issue 1 month ago • 1 comments

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

  1. Create 51 disabled automations.
  2. Run ao automation list and ao automation list --json.
  3. 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.

codebanditssss avatar Oct 06 '26 18:10 codebanditssss

Assigned to @ApexYash11

Rishet11 avatar Oct 06 '26 19:10 Rishet11