[PR #5192] [CLOSED] chore: improve claude-issue-bot limits, tooling, and concurrency #5815

Closed
opened 2026-11-02 04:04:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5192
Author: @rqzbeh
Created: 6/10/2026
Status: ❌ Closed

Base: main ← Head: feature/claude-bot-improvements


📝 Commits (1)

  • 80a0e9c chore: improve claude-issue-bot limits, tooling, and concurrency

📊 Changes

1 file changed (+21 additions, -10 deletions)

View changed files

📝 .github/workflows/claude-issue-bot.yml (+21 -10)

📄 Description

What this PR does

Improves the reliability and capability of the .github/workflows/claude-issue-bot.yml GitHub Actions workflow.

Improvements made:

  1. Concurrency Control: Added concurrency blocks to both the handle-issue and mention jobs. If a user spam-clicks submit or mentions the bot multiple times in a row, GitHub Actions will now automatically cancel the older pending runs and only execute the latest one. This prevents race conditions where the bot replies multiple times to the same context simultaneously.
  2. Action Timeouts: Added timeout-minutes: 15 to the jobs. By default, an ubuntu-latest runner can hang for up to 6 hours if an AI agent enters an infinite loop or gets stuck processing. This hard limit protects GitHub Actions quota and token usage.
  3. Turn Limits Increased: Following the recommendation, --max-turns has been bumped from 90 to 120 for new issues, and 70 to 90 for mentions. This gives the bot more breathing room to dig deep into complex codebases and find the root cause without timing out mid-thought.
  4. Git CLI Access (Bash(git:*)): Added git:* to the allowedTools array, and set fetch-depth: 0 in the actions/checkout step. The bot's prompt specifically tells it to "check the latest release and recent history". Without the git tool allowed in the sandbox, the bot was unable to run commands like git blame, git log, or git show, heavily handicapping its ability to investigate historical regressions or see if a bug was recently patched. It now has the permissions to actually follow its own prompt.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/5192 **Author:** [@rqzbeh](https://github.com/rqzbeh) **Created:** 6/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/claude-bot-improvements` --- ### 📝 Commits (1) - [`80a0e9c`](https://github.com/MHSanaei/3x-ui/commit/80a0e9c3ba28d11701276bdfaa340149eec1bd1a) chore: improve claude-issue-bot limits, tooling, and concurrency ### 📊 Changes **1 file changed** (+21 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/claude-issue-bot.yml` (+21 -10) </details> ### 📄 Description ### What this PR does Improves the reliability and capability of the `.github/workflows/claude-issue-bot.yml` GitHub Actions workflow. ### Improvements made: 1. **Concurrency Control:** Added `concurrency` blocks to both the `handle-issue` and `mention` jobs. If a user spam-clicks submit or mentions the bot multiple times in a row, GitHub Actions will now automatically cancel the older pending runs and only execute the latest one. This prevents race conditions where the bot replies multiple times to the same context simultaneously. 2. **Action Timeouts:** Added `timeout-minutes: 15` to the jobs. By default, an `ubuntu-latest` runner can hang for up to 6 hours if an AI agent enters an infinite loop or gets stuck processing. This hard limit protects GitHub Actions quota and token usage. 3. **Turn Limits Increased:** Following the recommendation, `--max-turns` has been bumped from 90 to 120 for new issues, and 70 to 90 for mentions. This gives the bot more breathing room to dig deep into complex codebases and find the root cause without timing out mid-thought. 4. **Git CLI Access (`Bash(git:*)`):** Added `git:*` to the `allowedTools` array, and set `fetch-depth: 0` in the `actions/checkout` step. The bot's prompt specifically tells it to "check the latest release and recent history". Without the `git` tool allowed in the sandbox, the bot was unable to run commands like `git blame`, `git log`, or `git show`, heavily handicapping its ability to investigate historical regressions or see if a bug was recently patched. It now has the permissions to actually follow its own prompt. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:04:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5815
No description provided.