diff --git a/scripts/install.sh b/scripts/install.sh index 64c0738bae..83dc7cacb7 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -260,9 +260,19 @@ print_done() { printf " %s$%s source %s\n" "$C_GREEN" "$C_RESET" "$(detect_shell_profile)" fi printf " %s$%s nemoclaw %s connect\n" "$C_GREEN" "$C_RESET" "$sandbox_name" - if [[ "$agent_name" == "openclaw" || -z "$agent_name" ]]; then - printf " %ssandbox@%s$%s openclaw tui\n" "$C_GREEN" "$sandbox_name" "$C_RESET" - fi + local agent_cmd + case "$agent_name" in + hermes) + agent_cmd="hermes" + ;; + "" | openclaw) + agent_cmd="openclaw tui" + ;; + *) + agent_cmd="$agent_name" + ;; + esac + printf " %ssandbox@%s$%s %s\n" "$C_GREEN" "$sandbox_name" "$C_RESET" "$agent_cmd" elif [[ "$NEMOCLAW_READY_NOW" == true ]]; then printf " ${C_GREEN}NemoClaw CLI is installed.${C_RESET}\n" printf " ${C_DIM}Onboarding has not run yet.${C_RESET}\n" diff --git a/src/nemoclaw.ts b/src/nemoclaw.ts index 077ce14f65..0d9d5ce8bb 100644 --- a/src/nemoclaw.ts +++ b/src/nemoclaw.ts @@ -1230,11 +1230,13 @@ async function sandboxConnect(sandboxName, { dangerouslySkipPermissions = false !["1", "true"].includes(String(process.env.NEMOCLAW_NO_CONNECT_HINT || "")) ) { console.log(""); + const agentName = sb?.agent || "openclaw"; + const agentCmd = agentName === "openclaw" ? "openclaw tui" : agentName; console.log(` ${G}✓${R} Connecting to sandbox '${sandboxName}'`); console.log( - ` ${D}Inside the sandbox, run \`openclaw tui\` to start chatting with the agent.${R}`, + ` ${D}Inside the sandbox, run \`${agentCmd}\` to start chatting with the agent.${R}`, ); - console.log(` ${D}Type \`exit\` (or Ctrl-D) to return to the host shell.${R}`); + console.log(` ${D}Type \`/exit\` to leave the chat, then \`exit\` to return to the host shell.${R}`); console.log(""); } const result = spawnSync(getOpenshellBinary(), ["sandbox", "connect", sandboxName], {