Skip to content

fix: report OpenShell's reason when a sandbox exits - #13496

Merged
cv merged 2 commits into
v1from
fix/sandbox-exit-reason
Oct 19, 2026
Merged

cv merged 2 commits into
v1from
fix/sandbox-exit-reason

Conversation

@cv

@cv cv commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Failure

An exited sandbox reported reason unknown unless OpenShell's condition reason was one of four codes NemoClaw recognized. After a gateway restart, the plan from #13493 said sandbox exited: SANDBOX_PHASE_ERROR, reason unknown, exit code 1, although OpenShell reported a specific reason.

Decision

  • Pass the reason through: report OpenShell's reason code as it reports it, rather than keeping NemoClaw's own list of codes it recognizes.
  • Keep the message private: the condition's message can contain credentials and never crosses. A reason that isn't shaped like a code (ASCII letters and digits, at most 64 characters) still appears as unknown.
  • Unchanged: the explanations for IdentityResolutionFailed and ControlSupervisorStartFailed remain; other reasons point to openshell logs SANDBOX --source sandbox.

Validation

  • terminal_sandbox_reports_known_failure_without_backend_text gained cases: a reason NemoClaw doesn't explain (ImagePullBackOff) passes through, while text with spaces or hyphens, or longer than 64 characters, doesn't. It failed before the change.
  • cargo ci passed, including the bundle and lifecycle steps.

cv added 2 commits October 19, 2026 12:44
Exited sandboxes reported 'reason unknown' unless OpenShell's condition reason was one of four codes NemoClaw recognized. Pass OpenShell's reason code through as it reports it, when it is shaped like a code; the condition's message stays private.
@cv
cv enabled auto-merge (squash) October 19, 2026 19:48
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit d4d2789 into v1 Oct 19, 2026
@cv
cv deleted the fix/sandbox-exit-reason branch October 19, 2026 20:02
@wscurran wscurran added area: observability Logging, metrics, tracing, diagnostics, or debug output area: security Security controls, permissions, secrets, or hardening bug-fix PR fixes a bug or regression v1 NemoClaw v1 branch labels Oct 23, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: observability Logging, metrics, tracing, diagnostics, or debug output area: security Security controls, permissions, secrets, or hardening bug-fix PR fixes a bug or regression v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants