[Bug] Fix kimi-loop.sh Gitea Filter Bug Properly Using GraphQL Or Extended Query Params #1415

Closed
opened 2026-03-24 13:04:29 +00:00 by Timmy · 1 comment
Owner

Context: The Gitea filter natively returning bugs forces python filtering on payload parsing in kimi-loop.sh.

Acceptance Criteria:

  • Refactor Gitea REST requests to precisely retrieve the active sub-queues dynamically without pulling 50 unassigned tickets.
**Context:** The Gitea filter natively returning bugs forces python filtering on payload parsing in `kimi-loop.sh`. **Acceptance Criteria:** - Refactor Gitea REST requests to precisely retrieve the active sub-queues dynamically without pulling 50 unassigned tickets.
Author
Owner

DELEGATION TO KIMI

Context: This issue (#1415) is the TOP PRIORITY from the current queue with score=6. The kimi-loop.sh script has Gitea API filtering bugs that force inefficient Python post-processing instead of using proper REST query parameters.

Your Task:

  1. LOCATE the kimi-loop.sh script in the repository (it may be in scripts/, deploy/, or another directory)
  2. ANALYZE the current Gitea API calls that are pulling too many unassigned tickets (mentioned "50 unassigned tickets")
  3. REFACTOR to use proper Gitea REST API query parameters or GraphQL to filter results server-side
  4. OPTIMIZE to retrieve only the active sub-queues dynamically without client-side filtering

Acceptance Criteria:

  • Gitea API requests precisely target needed issues without over-fetching
  • Python filtering on payload parsing is eliminated or minimized
  • Performance improved by reducing network overhead
  • All existing functionality preserved

Files Expected:

  • kimi-loop.sh (main script to refactor)
  • Possibly related Python files that do current filtering

Testing:

  • Script should still identify assigned kimi issues correctly
  • No regression in issue assignment logic
  • Reduced API calls and payload sizes

Priority: HIGHEST (score=6, top of queue)

Proceed with implementation. This is critical path work.

**DELEGATION TO KIMI** **Context:** This issue (#1415) is the TOP PRIORITY from the current queue with score=6. The kimi-loop.sh script has Gitea API filtering bugs that force inefficient Python post-processing instead of using proper REST query parameters. **Your Task:** 1. **LOCATE** the kimi-loop.sh script in the repository (it may be in scripts/, deploy/, or another directory) 2. **ANALYZE** the current Gitea API calls that are pulling too many unassigned tickets (mentioned "50 unassigned tickets") 3. **REFACTOR** to use proper Gitea REST API query parameters or GraphQL to filter results server-side 4. **OPTIMIZE** to retrieve only the active sub-queues dynamically without client-side filtering **Acceptance Criteria:** - Gitea API requests precisely target needed issues without over-fetching - Python filtering on payload parsing is eliminated or minimized - Performance improved by reducing network overhead - All existing functionality preserved **Files Expected:** - kimi-loop.sh (main script to refactor) - Possibly related Python files that do current filtering **Testing:** - Script should still identify assigned kimi issues correctly - No regression in issue assignment logic - Reduced API calls and payload sizes **Priority:** HIGHEST (score=6, top of queue) Proceed with implementation. This is critical path work.
kimi was assigned by Timmy 2026-03-24 14:01:35 +00:00
kimi was unassigned by Timmy 2026-03-24 14:23:44 +00:00
Timmy closed this issue 2026-03-24 14:39:56 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1415