Skip to content

test(cli): cover dcode status harness label - #5817

Merged
cv merged 1 commit into
mainfrom
codex/fix-dcode-status-harness
Jun 25, 2026
Merged

cv merged 1 commit into
mainfrom
codex/fix-dcode-status-harness

Conversation

@cv

@cv cv commented Jun 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds a regression test for the Deep Agents Code status harness label reported in #5718.
Current main already resolves a registered langchain-deepagents-code sandbox to LangChain Deep Agents Code (terminal); this locks that user-facing status contract so it cannot regress to OpenClaw (gateway).

Related Issue

Fixes #5718

Changes

  • Add CLI status text coverage for a registered langchain-deepagents-code sandbox named dcode-station.
  • Assert the exact harness line, dcode interactive/headless command hints, and terminal runtime line.
  • Assert the status output does not fall back to Harness: OpenClaw (gateway) or OpenClaw: running.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification: test-only coverage for an existing documented status contract; docs already describe Deep Agents Code as a terminal harness and status as reporting the terminal runtime plus interactive/headless command shapes.
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: no sensitive production paths changed; this is CLI status regression coverage only.
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Verification

  • PR description includes the DCO sign-off declaration and every commit appears as Verified in GitHub
  • Git hooks passed during commit and push, or npx prek run --from-ref main --to-ref HEAD passes
  • Targeted tests pass for changed behavior
  • Full npm test passes (broad runtime changes only)
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Verification detail:

  • npx vitest run test/cli/sandbox-status-text.test.ts --project cli passed (7 tests).
  • npm run typecheck:cli passed.
  • SKIP=test-cli npx prek run --files test/cli/sandbox-status-text.test.ts passed.
  • Commit da9df7334baf0c0d02dabdaf0ea89c4df3be8b06 is GitHub Verified (reason: valid).
  • Docs writer pass found no docs changes needed.

Signed-off-by: Carlos Villela cvillela@nvidia.com

Summary by CodeRabbit

  • Tests
    • Added coverage for sandbox <name> status to verify the reported status output and successful exit behavior.
    • Confirmed the display includes terminal harness/runtime details and omits unrelated runtime lines.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: c947aa41-178c-4819-b06d-2993612453f1

📥 Commits

Reviewing files that changed from the base of the PR and between 0803588 and da9df73.

📒 Files selected for processing (1)
  • test/cli/sandbox-status-text.test.ts

📝 Walkthrough

Walkthrough

Adds a Vitest case for dcode-station status that sets up a temporary sandbox, mocks openshell and Docker responses, and asserts Deep Agents Code status text, interactivity details, and exit code 0 while excluding OpenClaw/gateway lines.

Changes

CLI status test coverage

Layer / File(s) Summary
Deep Agents Code status assertions
test/cli/sandbox-status-text.test.ts
Creates a langchain-deepagents-code sandbox status test with mocked shell and Docker behavior, then checks the reported harness/runtime text, interactive/headless prompt details, and successful exit code.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • NVIDIA/NemoClaw#5197 — Introduces the sandbox <name> status harness rendering path that this test exercises.
  • NVIDIA/NemoClaw#5669 — Updates langchain-deepagents-code branding, which is the status output this test checks.

Suggested labels

area: cli, bug-fix, integration: dcode, v0.0.68

Poem

A rabbit peeks at the status glow,
with twitchy ears and a happy nose,
“No gateway today,” it cheers with glee,
“Just terminal hops for Deep Agents, see!”
🐇✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning This PR adds a regression test, but it does not implement the status rendering fix required by #5718. Update the CLI status renderer so langchain-deepagents-code reports LangChain Deep Agents Code (terminal), then keep the regression test.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and accurately describes the new CLI regression test for the dcode status harness label.
Out of Scope Changes check ✅ Passed The only change is a targeted test for the reported status-label bug, so no out-of-scope work is evident.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-dcode-status-harness

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage in the codex/fix-dcode-stat... branch is 96%. Coverage data for the main branch is not yet available.

Show a code coverage summary of the most covered files.
File main codex/fix-dcode-stat... da9df73 +/-
nemoclaw/src/se...cret-scanner.ts — 100% —
nemoclaw/src/commands/slash.ts — 100% —
nemoclaw/src/li...bprocess-env.ts — 100% —
nemoclaw/src/bl...eprint/state.ts — 98% —
nemoclaw/src/onboard/config.ts — 98% —
nemoclaw/src/bl...int/snapshot.ts — 97% —
nemoclaw/src/bl...print/runner.ts — 95% —
nemoclaw/src/co...ration-state.ts — 94% —
nemoclaw/src/bl...ate-networks.ts — 94% —
nemoclaw/src/index.ts — 94% —

TypeScript / code-coverage/cli

The overall coverage in the codex/fix-dcode-stat... branch is 47%. Coverage data for the main branch is not yet available.

Show a code coverage summary of the most covered files.
File main codex/fix-dcode-stat... da9df73 +/-
src/lib/state/o...oard-session.ts — 91% —
src/lib/inference/local.ts — 76% —
src/lib/sandbox/config.ts — 72% —
src/lib/actions...dbox/rebuild.ts — 71% —
src/lib/onboard/preflight.ts — 64% —
src/lib/actions...licy-channel.ts — 60% —
src/lib/state/sandbox.ts — 55% —
src/lib/policy/index.ts — 49% —
src/lib/onboard...er-gpu-patch.ts — 44% —
src/lib/onboard.ts — 19% —

Updated June 25, 2026 19:49 UTC
Code Coverage is in Public Preview. Learn more and provide us with your feedback.

@github-actions

Copy link
Copy Markdown
Contributor

E2E Advisor Recommendation

Required E2E: None
Optional E2E: None

Workflow run

Full advisor summary

E2E Recommendation Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required E2E

  • None. No E2E is required because this is a tests-only change limited to CLI sandbox status text assertions and cannot affect runtime or real user flows.

Optional E2E

  • None.

New E2E recommendations

  • None.

@github-actions

Copy link
Copy Markdown
Contributor

Vitest E2E Scenario Recommendation

Required Vitest E2E scenarios: None
Optional Vitest E2E scenarios: None

Workflow run

Full Vitest E2E advisor summary

Vitest E2E Scenario Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required Vitest E2E scenarios

  • None. Only a CLI unit/integration test outside test/e2e-scenario/ changed; this does not affect the Vitest E2E scenario workflow, registry, runtime support, fixtures, or live scenario behavior.

Optional Vitest E2E scenarios

  • None.

Relevant changed files

  • None.

@github-actions

github-actions Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

PR Review Advisor — No blocking findings

Merge posture: No blocking advisor findings
Primary next action: No advisor follow-up required beyond maintainer review.
Open items: 0 required · 0 warnings · 0 suggestions · 0 test follow-ups
Top item: No actionable findings

Workflow run details

This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision.

@cv cv added the v0.0.69 label Jun 25, 2026
@cv
cv merged commit 3568510 into main Jun 25, 2026
46 checks passed
@cv
cv deleted the codex/fix-dcode-status-harness branch June 25, 2026 19:53
@wscurran wscurran added the NV QA Bugs found by the NVIDIA QA Team label Jun 26, 2026
@wscurran wscurran added the integration: dcode LangChain Deep Code integration behavior label Jun 26, 2026
Hadar301 pushed a commit to Hadar301/NemoClaw-OpenShift that referenced this pull request Jul 12, 2026
<!-- markdownlint-disable MD041 -->
## Summary
Adds a regression test for the Deep Agents Code status harness label
reported in NVIDIA#5718.
Current main already resolves a registered `langchain-deepagents-code`
sandbox to `LangChain Deep Agents Code (terminal)`; this locks that
user-facing status contract so it cannot regress to `OpenClaw
(gateway)`.

## Related Issue
Fixes NVIDIA#5718

## Changes
- Add CLI status text coverage for a registered
`langchain-deepagents-code` sandbox named `dcode-station`.
- Assert the exact harness line, dcode interactive/headless command
hints, and terminal runtime line.
- Assert the status output does not fall back to `Harness: OpenClaw
(gateway)` or `OpenClaw: running`.

## Type of Change

- [x] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [ ] Doc only (prose changes, no code sample modifications)
- [ ] Doc only (includes code sample changes)

## Quality Gates
- [x] Tests added or updated for changed behavior
- [ ] Existing tests cover changed behavior — justification:
- [ ] Tests not applicable — justification:
- [ ] Docs updated for user-facing behavior changes
- [x] Docs not applicable — justification: test-only coverage for an
existing documented status contract; docs already describe Deep Agents
Code as a terminal harness and `status` as reporting the terminal
runtime plus interactive/headless command shapes.
- [ ] Sensitive paths changed (security, policy, credentials, preflight,
onboarding, inference, runner, sandbox, or messaging)
- [x] Sensitive-path review completed or maintainer-approved waiver
recorded — reviewer/approval link/justification: no sensitive production
paths changed; this is CLI status regression coverage only.
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
check name, approval link, and follow-up issue:

## Verification
- [x] PR description includes the DCO sign-off declaration and every
commit appears as `Verified` in GitHub
- [ ] Git hooks passed during commit and push, or `npx prek run
--from-ref main --to-ref HEAD` passes
- [x] Targeted tests pass for changed behavior
- [ ] Full `npm test` passes (broad runtime changes only)
- [x] Quality Gates section completed with required justifications or
waivers
- [x] No secrets, API keys, or credentials committed
- [ ] `npm run docs` builds without warnings (doc changes only)
- [ ] Doc pages follow the [style
guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md)
(doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)

Verification detail:
- `npx vitest run test/cli/sandbox-status-text.test.ts --project cli`
passed (7 tests).
- `npm run typecheck:cli` passed.
- `SKIP=test-cli npx prek run --files
test/cli/sandbox-status-text.test.ts` passed.
- Commit `da9df7334baf0c0d02dabdaf0ea89c4df3be8b06` is GitHub Verified
(`reason: valid`).
- Docs writer pass found no docs changes needed.

---
Signed-off-by: Carlos Villela <cvillela@nvidia.com>

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Tests**
* Added coverage for `sandbox <name> status` to verify the reported
status output and successful exit behavior.
* Confirmed the display includes terminal harness/runtime details and
omits unrelated runtime lines.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration: dcode LangChain Deep Code integration behavior NV QA Bugs found by the NVIDIA QA Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Linux aarch64][CLI&UX] nemoclaw <name> status reports Harness "OpenClaw (gateway)" for a langchain-deepagents-code (terminal-runtime) sandbox

2 participants