Repository navigation
Description
Summary
NemoClaw's managed Deep Agents provider resolver appears to drop model-specific request parameters required by Nemotron coding-agent workloads. In particular, extra_body.chat_template_kwargs.force_nonempty_content = true is present in the sandbox model configuration but is absent from the resolved model constructor settings used by the managed dcode launcher.
This produces intermittent newline-only completions with finish_reason: stop. The managed process exits normally, so callers cannot distinguish the blank completion from a useful response without validating the persisted thread.
Environment
- NemoClaw:
0.0.90, officiallkgcommitacfa2613c7a645ae1bff21914f25d824e5fbcf62 - OpenShell:
0.0.85 - Deep Agents Code:
0.1.34 - Model:
nvidia/nemotron-3-ultra-550b-a55b - Host: Apple Silicon macOS with Docker Desktop
No provider credential is included in this report or the linked reproduction.
Reproduction
- Onboard a managed NemoClaw sandbox with the Nemotron model above.
- Configure the model with
extra_body.chat_template_kwargs.force_nonempty_content = true, as recommended by the NVIDIA model guidance for coding agents. - Launch the supported managed Deep Agents Code path through
dcode. - Inspect the resolved provider/model constructor settings and the persisted response.
- Repeat a bounded research prompt several times.
Observed on the pinned tuple:
- The sandbox configuration retains
force_nonempty_content = true. - NemoClaw's hardened provider-argument resolver supplies the managed inference URL, synthetic credential, and
use_responses_api = false, but not the configuredextra_bodyparameters. - The managed launcher disables
--model-params, so the missing setting cannot be restored through the supported CLI surface. - Multiple requests persisted content containing only a newline while reporting
finish_reason: stop. - A separate attempt also surfaced provider capacity exhaustion; that condition is distinct from the blank successful completions.
A public, sanitized reproduction and compatibility record is available at:
joelrlh/open-agent-system@cf15848
Expected behavior
The managed provider resolver should preserve reviewed model-specific parameters from the sandbox configuration, or explicitly inject the required Nemotron parameter. The managed launcher can continue to reject arbitrary command-line model overrides.
Suggested acceptance criteria
- The resolved constructor for this model contains
extra_body.chat_template_kwargs.force_nonempty_content = true. - The fix does not expose the real provider credential to the sandbox or repository workspace.
- Invalid or unsupported provider parameters still fail closed.
- A regression test covers parameter preservation through the hardened managed resolver.
- A bounded repeated managed
dcoderun produces non-empty content without relying on repository-side retries.
Activity
joelrlh commentedon Jul 23, 2026
Repository-side fail-closed trace hardening and regression tests are now under review in joelrlh/open-agent-system#2. That PR detects and suppresses blank or malformed managed runs; it does not replace the requested NemoClaw parameter-preservation fix.
wscurran commentedon Jul 23, 2026
✨ Thanks for the detailed report. The reproduction steps and environment are clear. Maintainers will investigate the provider resolver parameter handling for the managed dcode launcher.
fix(dcode): supply the Ultra template argument from the managed resolver
vyncint commentedon Jul 24, 2026
Opened #7463 with the NemoClaw-side fix. Root cause matches your investigation: the hardened
_get_provider_kwargsoverride inpatch-managed-deepagents-code.pynever reads the mutableconfig.tomlparams table — and on the managed image that table is the only path by which theextra_bodyentry written bygenerate-config.tscould reach the model constructor, so the parameter was dropped on every managed run.The fix derives
chat_template_kwargs.force_nonempty_contentfrom a language-local Ultra ID set inside the patched resolver itself, the same pattern as itsuse_responses_apihandling.--model-paramsand the TOML params table stay rejected, so a model name can enable exactly this reviewed argument and nothing else. A focused patch test (test/langchain-deepagents-code-managed-model-params.test.ts) fails without the change and passes with it; the patcher is also registered in the Ultra model ID drift test.test(dcode): prove the installed Ultra resolver in the live check
fix(dcode): supply the Ultra template argument from the managed resol…