Skip to content

openshell inference set does not override model in proxied inference requests #733

Closed as not planned

Description

@arun-gupta

Description

openshell inference set updates the gateway's inference configuration but does not rewrite the model field in proxied API requests. As a result, the agent continues to use the original model set during onboarding, confirmed by asking the agent to self-identify and report its training cutoff date.

Additionally, nemoclaw my-nemoclaw status shows stale model info after openshell inference set because it reads from the local NemoClaw registry rather than the gateway state, leaving the two sources out of sync.

This may be related to #326 and #714.

Reproduction Steps

  1. Complete nemoclaw onboard with model nvidia/nemotron-3-super-120b-a12b
  2. Run openshell inference set --no-verify --provider nvidia-nim --model moonshotai/kimi-k2.5
  3. Verify gateway shows the new model: openshell inference get → confirms moonshotai/kimi-k2.5
  4. Connect to sandbox: nemoclaw my-nemoclaw connect
  5. Launch TUI: openclaw tui
  6. Ask the agent: what model are you? and what is your training data cutoff date?

Environment

Environment

  • NemoClaw: v0.1.0
  • OpenShell: 0.0.14
  • macOS: Apple M4 Pro (arm64)
  • Container runtime: Docker Desktop
  • Provider: nvidia-nim (NVIDIA Endpoint API)

Debug Output

Will attach the log file after issue creation

Logs

Expected behavior
  The agent should be backed by moonshotai/kimi-k2.5 as configured via openshell inference set.

  Actual behavior
  The agent consistently identifies as nvidia/nemotron-3-super-120b-a12b. The gateway intercepts and forwards
  inference requests (confirmed via nemoclaw my-nemoclaw logs) but does not rewrite the model field in the
  proxied request body. The NVIDIA endpoint honors the model field sent by the agent
  (nemotron-3-super-120b-a12b) rather than the model configured in the gateway.

  Additional observations
  - nemoclaw my-nemoclaw status also shows the stale original model after openshell inference set, because it
  reads from the local NemoClaw registry (~/.nemoclaw/) which is only updated by nemoclaw onboard
  - The only reliable way to switch models is to re-run nemoclaw onboard, which rewrites ~/.nemoclaw/config.json
   inside the sandbox

  Suggested fix
  The OpenShell gateway proxy should rewrite the model field in forwarded POST /v1/chat/completions request
  bodies to match the model configured via openshell inference set, regardless of what the agent sends.

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Activity

  1. arun-gupta commented on Mar 23, 2026

    @arun-gupta
    Author

    Attached the debug log file

    nemoclaw-debug.tar.gz

  2. wscurran commented on May 19, 2026

    @wscurran
    Contributor

    Thanks for the detailed report and repro, @arun-gupta. We are going to track this under #3175 for Sprint 5, since it captures the same core runtime-switch behavior: openshell inference set changes the gateway model, but the sandbox/OpenClaw path can still report or use the old model.

    I am closing this as a duplicate so the investigation stays centralized. The active follow-up is #3679, which is already linked to #3175.

  3. added
    area: local-models
    area: providers
    area: sandbox
    and removed on Jun 3, 2026
  4. added theissue type on Jun 8, 2026
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

    area: local-modelsarea: providersarea: sandbox

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions