Skip to content

[Ubuntu 24.04][Agent&Skills] DCode Auto mode never auto-approves: classifier model openai:gpt-5.6-luna is unavailable #13331

Closed

Description

@mercl-lau

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

  1. Onboard a Deep Agents Code sandbox non-interactively on NVIDIA endpoints with model nvidia/nemotron-3-super-120b-a12b.
  2. 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"
  3. Connect to the sandbox and start the TUI with dcode -a {profile}. The status bar shows "manual".
  4. Ask the agent to run one shell command (for example: use shell exactly once to run printf verified into a file under /sandbox, then reply DONE).
  5. 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".
  6. 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

  1. added
    NV QA
    needs: triage
    on Oct 16, 2026
  2. added theissue type on Oct 16, 2026
  3. added
    area: security
    area: skills
    integration: dcode
    and removed
    needs: triage
    on Oct 22, 2026
  4. self-assigned this
    on Oct 23, 2026
  5. chengjiew commented on Oct 23, 2026

    @chengjiew
    Contributor

    try to take a look

  6. chengjiew commented on Oct 23, 2026

    @chengjiew
    Contributor

    #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_classifier is 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 with classifier unavailable ... openai:gpt-5.6-luna ... OpenAIModelNotFoundError and 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:

    [models]
    default = "openai:nvidia/nemotron-3-super-120b-a12b"
    auto_classifier = "openai:nvidia/nemotron-3-super-120b-a12b"

    Verified against the real deepagents-code==0.1.71 runtime: with that config the classifier resolves and builds openai:nvidia/nemotron-3-super-120b-a12b on the managed route; without it, the runtime falls back to the unresolvable openai:gpt-5.6-luna default.

    This PR adds explicit regression coverage for the NVIDIA managed-route case (nvidia-prod upstream, nemotron-3-super-120b-a12b) that was previously only pinned for the compatible-endpoint/openrouter identities: the generated config must keep auto_classifier on the managed model and never emit gpt-5.6-luna.

    PR: #13658

    Signed-off-by: Chengjie Wang chengjiew@nvidia.com

  7. chengjiew commented on Oct 26, 2026

    @chengjiew
    Contributor

    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_classifier in the generated ~/.deepagents/config.toml) and the real deepagents-code==0.1.71 runtime 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:

      OpenAIModelNotFoundError: 404 model_not_found
        The model `gpt-5.6-luna` does not exist or you do not have access to it.
      

    which matches the classifier unavailable ... openai:gpt-5.6-luna ... OpenAIModelNotFoundError denial 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 to openai:nvidia/nemotron-3-super-120b-a12b and 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

  8. removed their assignment
    on Oct 26, 2026
  9. wscurran commented on Nov 16, 2026

    @wscurran
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    NV QAarea: securityarea: skillsintegration: dcode

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions