What happens
On opscope 2.15.0 the github-prs OPENED / DAY and MERGED / DAY rows show not counted on every pass, with count failed: GitHub returned 504 (opened) and 502 (merged) - "the search was too slow to serve". The PR list, review state, checks and age stats load normally.
Cause
count_query and created_query each send 30+ aliased search { issueCount } fields in one GraphQL request. The comments on Counts / Created record 32 merge aliases answering in 4.0-4.3s when they were written. GitHub's search is now much slower per alias, so a 30-alias request takes longer than the gateway's ~10s cutoff and is dropped, regardless of how small the scope is.
Measured on 2026-11-17 with the same query shape (<scope> is:pr is:merged merged:YYYY-MM-DD, one alias per day), from a personal token:
| Scope | Aliases in one request | Result |
|---|---|---|
| 6 owners (5 orgs + user) | 30 | ~11.0s, HTTP 502 |
| 1 org | 30 | ~11.0s, HTTP 502 |
| 1 user account | 30 | ~10.7s, HTTP 502 |
| 5 owners | 15 | 10.0s, ok (at the edge) |
| 5 owners | 10 | 6.3s, ok |
| 1 large org | 10 | 6.8s, ok |
Wall time scales with the number of aliases, not with the size of the scope, so narrowing sources or the owner list cannot work around it.
Suggested fix
Split each day-count request into batches of about 10 aliases (three requests for 30 days, plus the rolling 24h aliases in one of them), run them concurrently or back to back, and assemble the series only when every batch answered, keeping the existing rule that a missing day is never drawn as zero. Optionally make the batch size configurable, or shrink it automatically after a gateway timeout the same way list paging already falls back to a smaller page size.
Environment
opscope 2.15.0 via npx opscope@2.15.0 github-prs, macOS (Apple Silicon), classic token with repo and read:org.
Activity
4🔗 Related PRs
-
stealth-factory/opscope#658 - feat(github): share the identity, calendar and board totals across panes [open]
📝 Issue Planner
-
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.- Create Plan
🧪 Issue enrichment is currently in open beta.
-
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:issue_enrichment: auto_enrich: enabled: false
💬 Have feedback or questions? Drop into our discord!
OPS-299