Repository navigation
Description
Description
In a managed LangChain Deep Agents Code sandbox with the auto-approval capability set to thread-opt-in, enabling Auto for the thread works for the action that triggered the prompt, but the first classifier-backed decision afterwards is denied with "classifier unavailable: configured classifier model openai:gpt-5.6-luna failed (OpenAIModelNotFoundError)" and the TUI falls back to a manual approval dialog. The sandbox was onboarded on NVIDIA endpoints (nemotron-3-super-120b), so the classifier targets a model that the managed inference route cannot serve, and Auto mode never auto-approves anything.
Platform scope: Reproduced on Ubuntu 24.04 x86_64 only; other platforms not tested.
Regression: Unknown - earlier versions not tested for this sequence.
OpenShell issue: No - the denial is printed by the Deep Agents Code runtime inside the sandbox.
Environment
Device: Ubuntu 24.04 x86_64 GPU server
OS: Ubuntu 24.04, Linux 6.17.0-23-generic
Architecture: x86_64
Node.js: v22.23.2
npm: 10.9.8
Docker: Docker version 29.5.2
OpenShell CLI: openshell 0.0.116
NemoClaw: nemoclaw v0.0.134
OpenClaw: N/A - LangChain Deep Agents Code v0.1.71 workload
Steps to Reproduce
- Onboard a Deep Agents Code sandbox non-interactively on NVIDIA endpoints with model
nvidia/nemotron-3-super-120b-a12b. - Enable the capability and confirm it:
nemoclaw {sandbox} rebuild --yes --dcode-auto-approval thread-opt-in nemo-deepagents {sandbox} status # prints "DCode auto-approval capability: thread-opt-in" - Connect to the sandbox and start the TUI with
dcode -a {profile}. The status bar shows "manual". - Ask the agent to run one shell command (for example: use shell exactly once to run
printf verifiedinto a file under/sandbox, then reply DONE). - At the "Enable Auto for this thread (a)" prompt press
a, then Enter to keep Auto. The command runs, the reply arrives, and the status bar shows "auto". - Run
/clear, then ask the agent to run one more shell command the same way.
Expected Result
The documentation for Deep Agents Code auto-approval says "Enable Auto for this thread" gives classifier-backed Auto mode and that the native approval state is preserved across /clear. The second shell command should therefore be auto-approved by the classifier and complete without a manual prompt, using the managed inference route the sandbox was onboarded with.
Actual Result
The command is denied and escalated to a manual dialog:
execute("printf verified > /sandbox/.marker")
Error
$ printf verified > /sandbox/.marker
Auto denied [classifier unavailable]: configured classifier model openai:gpt-5.6-luna failed
(OpenAIModelNotFoundError)
Auto couldn't confidently approve this action, so it needs your review. Auto will continue afterward.
>>> execute Requires Approval <<<
printf verified > /sandbox/.marker
Auto human fallback: this action needs your review.
1. Approve (y) 2. Switch to Manual (a) 3. Reject (n)
The same denial is printed twice (the runtime retried once). The status bar never returns to "auto" for that turn. The sandbox has no OpenAI provider configured; its only inference route is the managed NVIDIA endpoint, so a classifier that requires openai:gpt-5.6-luna can never succeed in this sandbox.
Logs
DCode auto-approval capability: thread-opt-in
[TUI transcript, abbreviated]
dcode -a {profile}
manual ~/
(prompt) Use shell exactly once to run: printf verified > /sandbox/.marker-initial ... reply exactly INITIAL_DONE.
Enable Auto for this thread (a) -> a, Enter
INITIAL_DONE
auto ~/
/clear
Started new thread
(prompt) Use shell exactly once to run: printf verified > /sandbox/.marker-clear ... reply exactly CLEAR_DONE.
execute("printf verified > /sandbox/.marker-clear")
Error
Auto denied [classifier unavailable]: configured classifier model openai:gpt-5.6-luna failed
(OpenAIModelNotFoundError)
execute("printf verified > /sandbox/.marker-clear")
Error
Auto denied [classifier unavailable]: configured classifier model openai:gpt-5.6-luna failed
(OpenAIModelNotFoundError)
Auto couldn't confidently approve this action, so it needs your review. Auto will continue afterward.
>>> execute Requires Approval <<<
Activity
chengjiew commentedon Oct 23, 2026
try to take a look
chengjiew commentedon Oct 23, 2026
#13331 root cause & fix
Root cause. Deep Agents Code 0.1.71 defaults the Auto-approval classifier for the OpenAI provider to
openai:gpt-5.6-luna(_DEFAULT_AUTO_CLASSIFIER_MODELS['openai']) whenever[models].auto_classifieris absent from~/.deepagents/config.toml. A managed DCode sandbox onboarded on NVIDIA endpoints only has its managed route, which cannot serve that OpenAI model, so the first classifier-backed decision after enabling Auto was denied withclassifier unavailable ... openai:gpt-5.6-luna ... OpenAIModelNotFoundErrorand Auto never auto-approved anything.Fix (already in
main, released v0.0.137+). The generated DCode config routes the classifier through the selected managed provider/model identity:Verified against the real
deepagents-code==0.1.71runtime: with that config the classifier resolves and buildsopenai:nvidia/nemotron-3-super-120b-a12bon the managed route; without it, the runtime falls back to the unresolvableopenai:gpt-5.6-lunadefault.This PR adds explicit regression coverage for the NVIDIA managed-route case (
nvidia-produpstream,nemotron-3-super-120b-a12b) that was previously only pinned for thecompatible-endpoint/openrouteridentities: the generated config must keepauto_classifieron the managed model and never emitgpt-5.6-luna.PR: #13658
Signed-off-by: Chengjie Wang chengjiew@nvidia.com
test(dcode): keep one owner of the NVIDIA classifier-route asserts
chengjiew commentedon Oct 26, 2026
Hi @mercl-lau 👋 This is a follow-up on the DCode Auto-mode classifier issue. We reproduced it and confirmed the root fix is already merged/released, so this issue should be safe to close. Could you help close it (or confirm the fix on v0.0.137+)?
Reproduction (problematic version)
With the Deep Agents Code config generator as of v0.0.134 (no
[models].auto_classifierin the generated~/.deepagents/config.toml) and the realdeepagents-code==0.1.71runtime on an NVIDIA-managed route (nemotron-3-super-120b-a12b):the runtime resolves the Auto classifier to the OpenAI provider default
openai:gpt-5.6-luna;invoking that classifier returns:
which matches the
classifier unavailable ... openai:gpt-5.6-luna ... OpenAIModelNotFoundErrordenial in your report.Fix (already merged, released v0.0.137+)
The generated DCode config now routes the Auto classifier through the sandbox's own managed model (
auto_classifier = "openai:nvidia/nemotron-3-super-120b-a12b"); landed in #13444 and released in v0.0.137/v0.0.138. With that config the same 0.1.71 runtime resolves the classifier toopenai:nvidia/nemotron-3-super-120b-a12band the classifier request succeeds on the managed route — the issue no longer reproduces.So on v0.0.137+ the reported sequence should auto-approve as expected. If you can, please re-run your repro on v0.0.137+ and close this issue. Regression coverage for the exact NVIDIA managed-route case is also being added in #13658.
Thanks!
Signed-off-by: Chengjie Wang chengjiew@nvidia.com
wscurran commentedon Nov 16, 2026
Thanks for reporting this and for the detailed classifier investigation.
The affected v0.0.134 configuration omitted auto_classifier, allowing the runtime to fall back to an unavailable model. Starting in v0.0.137, the generated configuration explicitly selects the sandbox’s managed model for the classifier. That correction remains in current main, and the runtime verification above confirms the classifier request succeeds through the managed route.
We’re closing this classifier-selection defect as fixed. If it recurs after rebuilding with a current release, please share the configured classifier/model identity and redacted error so we can reopen and investigate.