Repository navigation
fix(mini-swe-agent): honor the tool timeout - #3273
Merged
Merged
Conversation
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Mini-SWE-agent now honors the configured tool timeout and reports repeated format errors as trace format violations. The changes are confined to this harness's rollout execution and reporting, with no evident broader operational or data exposure. You can add or adjust custom eligibility rules. Learn more. |
samsja
previously approved these changes
Nov 25, 2026
hallerite
dismissed stale reviews from macroscopeapp[bot] and samsja
via
November 25, 2026 00:47
1a53615
hallerite
force-pushed
the
codex/mini-swe-tool-timeout
branch
from
November 25, 2026 00:47
1f2ed91 to
1a53615
Compare
mikasenghaas
approved these changes
Nov 25, 2026
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.
Summary
environment.timeoutfromharness.tool_timeout, rounding up to whole seconds.Validation
mainpassed with 318 passed and 19 skipped. Ruff andtypassed.environments/web_search_interception/README.mdonmain.Note
Medium Risk
Changes rollout timeout behavior and how failed agent runs are classified; affects evaluation outcomes but not auth or persistence.
Overview
The mini-swe-agent harness now passes
environment.timeoutasceil(tool_timeout)instead of a fixed 86400 seconds, so per-command timeouts align with the harness rollout limit and long-running bash calls surface as tool errors the agent can recover from.The staged program runs
app(standalone_mode=False), forwards integer return values as process exit codes, and exits with code 98 when the agent ends onRepeatedFormatError. The harness injects that constant into the script and overrides_check_resultto calltrace.stop("format_violation")on that exit code instead of treating the run as a normal completion.Reviewed by Cursor Bugbot for commit 1a53615. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix mini-SWE-agent harness to honor configured tool timeout
MiniSWEAgentHarness.launchwith the configured tool timeout rounded up to a whole second viaceil(harness.py)MiniSWEAgentHarness._check_resultstops traces with reasonformat_violationwhen the result has exit code 98; other codes go to the superclass checkerextra.exit_statusofRepeatedFormatError, and exits with integer values returned by the CLIformat_violationMacroscope summarized 1a53615.