Skip to content

Increase process timeout from 5s to 15s for agent version checks#256

Merged
subsy merged 3 commits intomainfrom
claude/investigate-issue-239-ErpHX
Feb 3, 2026
Merged

Increase process timeout from 5s to 15s for agent version checks#256
subsy merged 3 commits intomainfrom
claude/investigate-issue-239-ErpHX

Conversation

@subsy
Copy link
Copy Markdown
Owner

@subsy subsy commented Feb 3, 2026

Summary

Increased the timeout duration for agent process version checks from 5 seconds to 15 seconds across all agent plugins. This change provides more time for slower systems or environments to complete version detection without premature timeout failures.

Changes

  • Updated timeout in findCommandPath() in base agent plugin (5s → 15s)
  • Updated timeout in BaseAgentPlugin.checkVersion() (5s → 15s)
  • Updated timeout in ClaudeAgentPlugin.checkVersion() (5s → 15s)
  • Updated timeout in CodexAgentPlugin.checkVersion() (5s → 15s)
  • Updated timeout in GeminiAgentPlugin.checkVersion() (5s → 15s)
  • Updated timeout in KiroAgentPlugin.checkVersion() (5s → 15s)
  • Updated timeout in OpenCodeAgentPlugin.checkVersion() (5s → 15s)

Rationale

The 5-second timeout was too aggressive for certain environments, potentially causing false negatives when detecting available agents. Increasing to 15 seconds provides a more reasonable grace period while still maintaining responsiveness for truly unavailable agents.

https://claude.ai/code/session_01T4PgaBiMhwnWNwx7xuej4G

Summary by CodeRabbit

  • Performance & Reliability
    • Increased timeout durations for agent initialisation and CLI version detection from 5s to 15s across several built-in agents, giving more time for agent processes to respond and reducing false timeout failures on slower systems or networks.

On Windows, spawning gemini.cmd through shell adds significant overhead
due to cmd.exe parsing the .cmd wrapper and Node.js cold start time.
The previous 5-second timeout was too aggressive, causing false
"Timeout waiting for --version" errors on slower systems.

Fixes #239

https://claude.ai/code/session_01T4PgaBiMhwnWNwx7xuej4G
Extends the timeout increase from gemini to all agents and the base
findCommandPath function. On Windows, spawning CLI tools through shell
adds overhead that can exceed 5 seconds on slower systems.

Files updated:
- base.ts: findCommandPath() and BaseAgentPlugin.detect()
- claude.ts, codex.ts, kiro.ts, opencode.ts: runVersion()

Fixes #239

https://claude.ai/code/session_01T4PgaBiMhwnWNwx7xuej4G
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ralph-tui Ready Ready Preview, Comment Feb 3, 2026 0:52am

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 3, 2026

Walkthrough

Timeouts for spawned CLI processes and command-path detection were increased from 5000ms to 15000ms across the base agent and several builtin agent plugins (Claude, Codex, Gemini, Kiro, OpenCode). No API signatures were changed.

Changes

Cohort / File(s) Summary
Base Agent Configuration
src/plugins/agents/base.ts
Increased timeouts from 5000ms to 15000ms in findCommandPath and detect flows that kill spawned processes on timeout.
Builtin Agent Plugins
src/plugins/agents/builtin/claude.ts, src/plugins/agents/builtin/codex.ts, src/plugins/agents/builtin/gemini.ts, src/plugins/agents/builtin/kiro.ts, src/plugins/agents/builtin/opencode.ts
Increased --version CLI invocation timeout from 5000ms to 15000ms in each plugin's runVersion/version-detect logic.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: increasing process timeouts from 5s to 15s for agent version checks, which is the core focus across all modified files.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch claude/investigate-issue-239-ErpHX

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 3, 2026

Codecov Report

❌ Patch coverage is 36.36364% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 45.70%. Comparing base (3735f7e) to head (ee81c4f).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/plugins/agents/base.ts 50.00% 2 Missing ⚠️
src/plugins/agents/builtin/claude.ts 50.00% 1 Missing ⚠️
src/plugins/agents/builtin/codex.ts 0.00% 1 Missing ⚠️
src/plugins/agents/builtin/gemini.ts 0.00% 1 Missing ⚠️
src/plugins/agents/builtin/kiro.ts 0.00% 1 Missing ⚠️
src/plugins/agents/builtin/opencode.ts 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #256   +/-   ##
=======================================
  Coverage   45.70%   45.70%           
=======================================
  Files          91       91           
  Lines       27442    27442           
=======================================
  Hits        12542    12542           
  Misses      14900    14900           
Files with missing lines Coverage Δ
src/plugins/agents/builtin/claude.ts 54.82% <50.00%> (ø)
src/plugins/agents/builtin/codex.ts 48.87% <0.00%> (ø)
src/plugins/agents/builtin/gemini.ts 46.52% <0.00%> (ø)
src/plugins/agents/builtin/kiro.ts 64.42% <0.00%> (ø)
src/plugins/agents/builtin/opencode.ts 73.05% <50.00%> (ø)
src/plugins/agents/base.ts 64.74% <50.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@subsy subsy merged commit a0fc5af into main Feb 3, 2026
8 of 9 checks passed
@subsy subsy deleted the claude/investigate-issue-239-ErpHX branch February 3, 2026 12:54
sakaman pushed a commit to sakaman/ralph-tui that referenced this pull request Feb 15, 2026
…ErpHX

Increase process timeout from 5s to 15s for agent version checks
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