Merge pull request #68 from fsolla/cursor/pool-eligibility-triage-df16

fix(agent-pool): fila elegível não zera por falta de `state` no JSON
This commit is contained in:
Francisco Solla 2026-08-01 00:24:42 -03:00 committed by GitHub
commit 009bcb732c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -38,8 +38,9 @@ const openReady = ghJson([
'ready',
'--limit',
'200',
// Include `state` for parity with the pool queue (isAutonomousClaimable).
'--json',
'number,title,body,labels,createdAt',
'number,title,body,labels,createdAt,state',
])
// Queue builder lives in agent-github.mjs (shared with the agent pool —

View file

@ -105,8 +105,9 @@ const loadClaimQueue = () =>
'ready',
'--limit',
'200',
// `state` is required: isAutonomousClaimable rejects missing/non-OPEN as not-open.
'--json',
'number,title,body,labels,createdAt',
'number,title,body,labels,createdAt,state',
]),
issuesById(),
)