Repository navigation
Conversation
OpenClaw aborts a model request when the endpoint is idle for its stream-idle watchdog window (DEFAULT_LLM_IDLE_TIMEOUT_MS = 120s). Under high concurrency or with slow / self-hosted endpoints this fails legitimate-but-slow generations with [llm-idle-timeout]. Add openclaw_provider_timeout_seconds to the PinchBench agent config. It maps to OpenClaw models.providers.<id>.timeoutSeconds, which governs the request timeout and the stream-idle watchdog and (unlike agents.defaults.timeoutSeconds) is not clamped back to 120s. Applied without rebuilding the image: instance mode injects it into the in-container lib_agent.py before run_task.sh; direct_exec writes it into the generated openclaw.json. README documents the knob + usage. Co-Authored-By: Claude Opus 4.8 <[email protected]> Signed-off-by: Haran Kumar Shiv Kumar <[email protected]>
Signed-off-by: Anna Warno <[email protected]>
Signed-off-by: Anna Warno <[email protected]>
Signed-off-by: Anna Warno <[email protected]>
Signed-off-by: Anna Warno <[email protected]>
Contributor
|
LGTM |
Contributor
|
Validated end-to-end that this works in both execution modes (built the image from this branch, ran a task through nemo-gym's docker Sandbox-API instance path and the apptainer
The single baked 🤖 via Claude Code |
Signed-off-by: Anna Warno <[email protected]>
Contributor
Author
|
Superseded by DCO-clean replacement: #2211 The original branch cannot be force-pushed under repository rules, so the replacement PR was created from a rebuilt branch with DCO trailers on all commits. |
AWarno
added a commit
that referenced
this pull request
Jul 31, 2026
Replacement for #2193 because the original branch cannot be force-pushed under the repository rules, and one commit in that history was missing DCO. This branch is rebuilt on current `main` with the same PinchBench timeout changes and DCO trailers on all commits. Notes: - Adds/keeps `openclaw_provider_timeout_seconds` for PinchBench. - Keeps the OpenClaw agent timeout ceiling fix. - Updates the baked PinchBench patch hunk counts. - DCO-clean commit range: all commits include `Signed-off-by`. --------- Signed-off-by: Haran Kumar Shiv Kumar <[email protected]> Signed-off-by: Anna Warno <[email protected]> Co-authored-by: Haran Kumar Shiv Kumar <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
OlegSudakov
pushed a commit
to OlegSudakov/Gym
that referenced
this pull request
Aug 7, 2026
…-NeMo#2211) Replacement for NVIDIA-NeMo#2193 because the original branch cannot be force-pushed under the repository rules, and one commit in that history was missing DCO. This branch is rebuilt on current `main` with the same PinchBench timeout changes and DCO trailers on all commits. Notes: - Adds/keeps `openclaw_provider_timeout_seconds` for PinchBench. - Keeps the OpenClaw agent timeout ceiling fix. - Updates the baked PinchBench patch hunk counts. - DCO-clean commit range: all commits include `Signed-off-by`. --------- Signed-off-by: Haran Kumar Shiv Kumar <[email protected]> Signed-off-by: Anna Warno <[email protected]> Co-authored-by: Haran Kumar Shiv Kumar <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
This branch was previously deployed
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
Clean fix for PinchBench/OpenClaw LLM idle timeout handling.
This PR keeps OpenClaw's original provider timeout default at 120s, and adds the minimal Gym config surface needed for EFB runs to explicitly raise it, e.g. 4h.
Changes
openclaw_provider_timeout_secondsto the PinchBench agent config.PINCHBENCH_PROVIDER_TIMEOUT_SECONDSinto the per-task sandbox environment only when it is set.120seconds when the env var is unset.task_timeout_s=14400.No runtime
sedinjection and no direct image patching inapp.py; the timeout is owned by the baked PinchBench patch and controlled through env/config.Validation
Built the PinchBench Docker image from this branch:
Verified the baked patch default inside the image:
Ran local PinchBench validation with a fake OpenAI-compatible streaming endpoint that delays 2s before the first streamed token: