Skip to content

feat(agent): 15-min timeout, remove single-run concurrency cap#251

Merged
saada merged 2 commits into
yetibot:masterfrom
saada:agent-limits
May 30, 2026
Merged

feat(agent): 15-min timeout, remove single-run concurrency cap#251
saada merged 2 commits into
yetibot:masterfrom
saada:agent-limits

Conversation

@saada

@saada saada commented May 30, 2026

Copy link
Copy Markdown
Member

What

  • Timeout: agent-timeout-ms default 300000 → 900000ms (15 min) (still overridable via [:gemini :agent :timeout-ms]).
  • Concurrency: removed the one-run-at-a-time Semaphore (run-permit) and the "🦴 grug already smashing one rock" busy reply. !agent requests now run concurrently with no cap.

Each run is still bounded by the kill-tree! wall-clock watchdog and isolated per-run /tmp scratch dirs, so a hung run self-terminates and runs don't share state.

Note

No concurrency limit means N simultaneous !agent calls spawn N Gemini (bun/node) + git-clone trees. On a small host that can over-subscribe CPU; the box was resized to 16GB so OOM is unlikely, but heavy parallelism on 2 cores will be slow.

Bump the agent watchdog default to 900000ms (15 min) and drop the
one-run-at-a-time Semaphore, so requests run concurrently instead of being
turned away with a busy message. Each run is still bounded by the kill-tree!
watchdog and isolated per-run scratch dirs.
@saada saada requested a review from devth as a code owner May 30, 2026 17:43
Reflect the removed single-run concurrency cap and the 900000ms default.
@saada saada merged commit 99e8383 into yetibot:master May 30, 2026
1 check passed
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.

1 participant