Skip to content

[MacOS] Gateway destroy kills sandbox session with Broken pipe instead of graceful error #992

@zNeill

Description

@zNeill

Description

Test Plan https://docs.google.com/document/d/14bIihtww1Jtzz9eU-FdmFixKRFO9WI_OuGw9yrEP9Cw/edit?pli=1&tab=t.0
4.4 - test case 4

When the OpenShell gateway is destroyed while a sandbox session is active, the sandbox connection is abruptly terminated with a Broken pipe error and exit code 255. The user receives no graceful error message indicating the gateway is restarting, and there is no automatic recovery once the gateway comes back. Active inference requests that were in-flight complete successfully, but subsequent requests and the sandbox session itself are killed without warning.

Steps to reproduce

  1. Complete nemoclaw setup successfully
  2. Set inference route: openshell inference set --provider ollama-local --model llama3.2:1b
  3. Connect to sandbox in Terminal 1: nemoclaw connect
  4. Start a looping inference request inside the sandbox:
    for i in $(seq 1 20); do
    echo  --- Request $i at $(date +%H:%M:%S) --- 
    curl -s -m 5 https://inference.local/v1/chat/completions \
    -H  Content-Type: application/json  \
    -d '{ model : llama3.2:1b , messages :[{ role : user , content : say hi }]}' \
    | head -c 120
    echo   
    sleep 2
    done
  5. In Terminal 2 (host), destroy and restart the gateway:
    export DOCKER_HOST= unix://$HOME/.colima/default/docker.sock 
    openshell gateway destroy -g nemoclaw && openshell gateway start --name nemoclaw
Actual Result
  • No graceful error message was shown inside the sandbox
  • No automatic recovery.

Steps to reproduce

No steps provided.


[NVB# 5982642]

[NVB#5982642]

Metadata

Metadata

Assignees

Labels

Getting StartedUse this label to identify setup, installation, or onboarding issues.NV QABugs found by the NVIDIA QA TeamNemoClaw CLIUse this label to identify issues with the NemoClaw command-line interface (CLI).Platform: macOSSupport for macOSbugSomething isn't workingpriority: mediumIssue that should be addressed in upcoming releases

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions