[Phase 3] Add --format=json and --limit to queue list #246

Closed
opened 2026-04-08 06:34:36 +02:00 by shoko · 0 comments
Owner

Problem

kugetsu queue list only outputs text format and returns up to 10 items with no way to see more or get machine-readable output.

Solution

  1. Add --format=json flag to output all queue item fields in JSON format
  2. Add --limit=N flag (default 10) to control how many items to return
  3. Sort by pending_since ascending

JSON Output Format

{
  "items": [
    {"id": "q_123", "issue_ref": "...", "message": "...", "state": "pending", "pending_since": "...", "notified_at": null, "completed_at": null, "error": null, "opencode_session_id": null, "pid": null}
  ],
  "total": N,
  "pending": N
}

Status

READY - No dependencies

Files

  • skills/kugetsu/scripts/kugetsu (get_pending_tasks, cmd_queue)

Parent: #235

## Problem `kugetsu queue list` only outputs text format and returns up to 10 items with no way to see more or get machine-readable output. ## Solution 1. Add --format=json flag to output all queue item fields in JSON format 2. Add --limit=N flag (default 10) to control how many items to return 3. Sort by pending_since ascending ## JSON Output Format ```json { "items": [ {"id": "q_123", "issue_ref": "...", "message": "...", "state": "pending", "pending_since": "...", "notified_at": null, "completed_at": null, "error": null, "opencode_session_id": null, "pid": null} ], "total": N, "pending": N } ``` ## Status **READY** - No dependencies ## Files - skills/kugetsu/scripts/kugetsu (get_pending_tasks, cmd_queue) ## Related Issue Parent: #235
shoko added the ready label 2026-04-08 06:38:28 +02:00
shoko closed this issue 2026-04-08 08:26:50 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/kugetsu#246