Skip to content

Agent merge consumes all user API call in about 45 min monitoring 10 PRs #6169

Backlog

Description

@kuisathaverat

The Agent Merge feature is useful, but it consumes too many GitHub API calls. After about 45 minutes, it can use up all of a user’s API calls while monitoring 10 pull requests.

Session visibility and bulk disablement are tracked separately:


Field Value
App version 1.5.0
OS macOS 26.7.3
Theme GitHub
Path /chat
Tenure Week 28

Activity

  1. changed the title [-]Agent merge consumes all API call in 45min monitoring 10 PRs[/-] [+]Agent merge consumes all user API call in about 45 min monitoring 10 PRs[/+] on Nov 25, 2026
  2. added
    intake-done
    and removed on Nov 25, 2026
  3. github-app-releaser commented on Nov 25, 2026

    @github-app-releaser

    Please keep this issue focused on Agent Merge exhausting API calls while monitoring 10 PRs, and file separate enhancement issues for seeing which/how many sessions have Agent Merge enabled and for disabling it across multiple sessions at once. These are independently actionable problems and need separate issues so each can be investigated and tracked independently.

  4. added
    needs more info
    on Nov 25, 2026
  5. kuisathaverat commented on Nov 25, 2026

    @kuisathaverat
    Author

    Agent Merge API usage report

    Window analyzed: 2026-11-25, 12:00–12:48 UTC.

    Active monitoring

    • 2 active PR sync resources
    • 8 PRs with Agent Merge enabled
    • 428 PR snapshot refresh events during the 48-minute window
    • 53.5 refreshes per PR on average
    • Approximately one refresh every 54 seconds per PR

    Refresh distribution:

    Refresh count PR count
    51 1
    52 2
    53 1
    55 4

    The workspace PR sync resources alternated between 10-second and 60-second polling intervals. The 428 count represents snapshot refresh events, not the exact number of GitHub API calls; each refresh may trigger multiple GraphQL or REST requests.

    Quota exhaustion

    The first clear quota-exhaustion message appeared shortly after 12:48 UTC, followed by concentrated failures across PR previews, checks, conversations, review metadata, and branch-linked stack queries.

    • 65 quota-related entries were found in the 12:00–12:50 UTC window
    • 22 at 12:48 UTC
    • 43 at 12:49 UTC

    The first failure was:

    API rate limit already exceeded for user ID 123456

    This analysis shows that each monitored PR can receive roughly 53 refresh events over 48 minutes, with additional API work for each refresh. A shared/adaptive polling or caching improvement should reduce duplicate work without weakening merge-state correctness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    intake-doneneeds more info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions