Skip to content

Align per-user and per-issue rate limits#148

Merged
DimaBir merged 3 commits intodimabir/github_bot_respond_wikifrom
copilot/sub-pr-144-yet-again
Feb 11, 2026
Merged

Align per-user and per-issue rate limits#148
DimaBir merged 3 commits intodimabir/github_bot_respond_wikifrom
copilot/sub-pr-144-yet-again

Conversation

Copy link

Copilot AI commented Feb 11, 2026

The rate limits were misconfigured: a user opening 3 issues could trigger 12 bot responses (3 issues × 4 responses), exceeding the 10-per-user-per-hour limit and causing mid-conversation failures.

Changes:

  • Increased RATE_LIMIT_PER_USER_PER_HOUR from 10 to 12 to accommodate 3 concurrent issues
  • Replaced hardcoded limit (3) in security.js with configurable MAX_BOT_RESPONSES parameter (4)
  • Fixed truthy check to handle maxBotResponses = 0 edge case

Rate limit design:

  • Per-issue: 4 responses max
  • Per-user-per-hour: 12 responses max
  • Supports: 3 issues × 4 responses, 4 issues × 3 responses, etc.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Update issue assistant workflow based on review feedback Align per-user and per-issue rate limits Feb 11, 2026
Copilot AI requested a review from DimaBir February 11, 2026 07:14
@DimaBir DimaBir marked this pull request as ready for review February 11, 2026 07:18
@DimaBir DimaBir merged commit 0e8b1b9 into dimabir/github_bot_respond_wiki Feb 11, 2026
1 check passed
@DimaBir DimaBir deleted the copilot/sub-pr-144-yet-again branch February 11, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants