Repository navigation
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Miniswen keeps ruby_llm's default 300 s request timeout. Some models answer in one long turn. When a turn takes longer than that, the call times out, Miniswen's retry middleware sends the same request again, and it times out again until the retries or the step limit run out. The trial then ends as
agent_error(Faraday::TimeoutError: Net::ReadTimeout), even though the model would have answered.What we measured running the 46-task bench against the direct Gemini API (Lemans 1.6.0):
gemini/gemini-4-carbon#highonms-greenfield-helpdesktimed out at 300 s on the same turn 7–10 times in two separate trials. One trial ended asagent_error; the other got stuck again later.agent.result.1.json(an 18K-token prompt) once, with a 900 s timeout. It answered after 627 s: 28K output tokens, a 130 KBbashtool call writing the app in one go, for $0.31.This adds an optional per-agent timeout:
Config::Agent#request_timeoutis parsed likeexec_timeout. It'snilby default, so ruby_llm's 300 s stays in force.Miniswen::Agent.new(request_timeout:)resolves its provider withRubyLLM.context { it.request_timeout = ... }.config, so the global ruby_llm config is untouched and concurrent trials don't interfere.miniswen --request-timeout SECONDS, whichminiswen-installedpasses through when the profile sets it.agent_configasrequest_timeout_seconds, and documented in thebench.ymltemplate.Tests: config parsing (set and default), the provider receiving the timeout while the global config stays unchanged, and
miniswen-installedpassing--request-timeout.bundle exec rake testpasses (347 runs, 0 failures) andbundle exec rubocopis clean.