diff --git a/test/agents/deepagents/langchain-deepagents-code-config.test.ts b/test/agents/deepagents/langchain-deepagents-code-config.test.ts index a2ac27ed54a..be3620c07e1 100644 --- a/test/agents/deepagents/langchain-deepagents-code-config.test.ts +++ b/test/agents/deepagents/langchain-deepagents-code-config.test.ts @@ -154,6 +154,20 @@ describe("LangChain Deep Agents Code config generator", () => { expect(config).not.toMatch(/NVIDIA_API_KEY|OPENAI_API_KEY=|sk-/); }); + it("keeps the NVIDIA managed-route Auto classifier on the sandbox model (#13331)", () => { + // A DCode sandbox onboarded on NVIDIA endpoints with nemotron-3-super must + // route its Auto-approval classifier through the managed model identity, + // never the Deep Agents Code runtime default (openai:gpt-5.6-luna) that the + // managed inference route cannot serve. Without this the first + // classifier-backed decision after enabling Auto is denied with + // "classifier unavailable", so Auto mode never auto-approves (#13331). + const config = runGenerator({}); + + expect(config).toContain('auto_classifier = "openai:nvidia/nemotron-3-super-120b-a12b"'); + expect(config).toContain('models = ["nvidia/nemotron-3-super-120b-a12b"]'); + expect(config).not.toContain("gpt-5.6-luna"); + }); + it("uses the attached-provider placeholder for native NVIDIA inference (#12558)", () => { const config = runGenerator({ NEMOCLAW_INFERENCE_BASE_URL: "https://integrate.api.nvidia.com/v1",