fix(hermes): explain Desktop version mismatch (Refs #5845)#5867
fix(hermes): explain Desktop version mismatch (Refs #5845)#5867deepujain wants to merge 1 commit into
Conversation
Refs NVIDIA#5845 Signed-off-by: Deepak Jain <deepujain@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughHermes sandbox version checks now emit compatibility guidance when the agent version is stale. The shared warning formatting is updated, and status and connect flows/tests surface the new Hermes-specific output. ChangesHermes Desktop compatibility warnings
Sequence Diagram(s)sequenceDiagram
participant showSandboxStatus
participant sandboxVersion
participant console
showSandboxStatus->>sandboxVersion: formatHermesDesktopCompatibilityWarning(sandboxName, versionCheck)
sandboxVersion-->>showSandboxStatus: warning lines
showSandboxStatus->>console: error(warning lines)
sequenceDiagram
participant connectSandbox
participant sandboxVersion
participant console
connectSandbox->>sandboxVersion: checkAgentVersion(...)
sandboxVersion-->>connectSandbox: versionCheck
connectSandbox->>sandboxVersion: formatStalenessWarning(...)
sandboxVersion-->>connectSandbox: warning lines
connectSandbox->>console: error(warning lines)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
✨ Thanks for adding the Hermes Desktop compatibility warning for stale sandboxes older than v2026.6.5. This proposes a way to surface the version mismatch reason and point users at the rebuild command when the backend lacks the required API endpoint. Related open PRs: Related open issues: |
|
Issue #5845 disappeared, so I guess we don't really need this fix. |
Summary
PR #5594 already moved new Hermes sandboxes to Hermes Agent
v2026.6.19, which is newer than the first Desktop-compatible backend. This PR covers existing stale Hermes sandboxes: when NemoClaw detects a Hermes backend older thanv2026.6.5, it now says why Hermes Desktop will fail and points the user atrebuild.Changes
src/lib/sandbox/version.ts: adds a Hermes Desktop compatibility warning for stale Hermes versions that lack/api/profiles/sessions.src/lib/actions/sandbox/status.ts: prints that warning next to the existing stale-version rebuild hint.src/lib/sandbox/version.test.ts,src/lib/actions/sandbox/status-flow.test.ts,src/lib/actions/sandbox/connect-flow.test.ts: cover helper, status, and connect warning behavior.Testing
npm install --ignore-scripts- installed this worktree's locked dependencies; npm reported the existing audit warnings and that local Nodev22.12.0is below the repo's>=22.16.0engine.npm run build:cli- passed.HOME=/private/tmp/nemoclaw-5845-vitest-home npx vitest run --project cli src/lib/sandbox/version.test.ts src/lib/actions/sandbox/status-flow.test.ts src/lib/actions/sandbox/connect-flow.test.ts- passed, 30 tests.npm run typecheck:cli- passed.npm run source-shape:check- passed outside the sandbox after the sandboxed run hit the knowntsxIPC pipeEPERM.npm run test-size:check- passed outside the sandbox.npx @biomejs/biome format src/lib/sandbox/version.ts src/lib/sandbox/version.test.ts src/lib/actions/sandbox/status.ts src/lib/actions/sandbox/status-flow.test.ts src/lib/actions/sandbox/connect-flow.test.ts- passed, no fixes applied.npx @biomejs/biome lint src/lib/sandbox/version.ts src/lib/sandbox/version.test.ts src/lib/actions/sandbox/status.ts src/lib/actions/sandbox/status-flow.test.ts src/lib/actions/sandbox/connect-flow.test.ts- passed.git diff --check- passed.HOME=/private/tmp/nemoclaw-5845-fulltest-home npm test- attempted; timed out after 300s with unrelated local environment-sensitive failures visible in Docker/port/gateway process suites such astest/sandbox-provisioning.test.ts,src/lib/onboard/preflight.test.ts, andtest/cli/doctor-gateway-token.test.ts.Evidence it works
The focused regression tests simulate a Hermes sandbox at
2026.5.16with a current expected version of2026.6.19.statusnow prints that Hermes Desktop requiresv2026.6.5+and that the old backend lacks/api/profiles/sessions;connectprints the same stale-version guidance before attaching.Refs #5845
Signed-off-by: Deepak Jain deepujain@gmail.com
Summary by CodeRabbit
New Features
Bug Fixes