[claude] feat: enforce 3-issue cap on Kimi delegation (#1304) #1310
Reference in New Issue
Block a user
Delete Branch "claude/issue-1304"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1304
What changed
KIMI_MAX_ACTIVE_ISSUES = 3constant tokimi_delegation.py_count_active_kimi_issues()helper that queries Gitea for openkimi-readyissuescreate_kimi_research_issue()now checks the active count before creating a new issue; returns a descriptive error ifcount >= 3Why
Without this guard, the delegation loop could create an unbounded number of concurrent Kimi issues (the bug report noted 19 simultaneously). The cap prevents queue pollution and ensures Kimi can actually complete work before more is assigned.