Skip to content

feat(cli): report the OpenClaw terminal UI command - #14269

Merged
cv merged 1 commit into
v1from
feat/openclaw-terminal-ui
Nov 6, 2026
Merged

cv merged 1 commit into
v1from
feat/openclaw-terminal-ui

Conversation

@cv

@cv cv commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

After apply, NemoClaw prints the command that opens OpenClaw's terminal UI under the agent's dashboard interface, and JSON results carry it as terminal. The GTC DC Kubernetes example's Hermes sandbox can now use browser chat.

Problem

QA's GTC DC cases 030-UI and 032-UI open OpenClaw's terminal UI with openshell sandbox exec -n SANDBOX --tty -- openclaw tui --url ws://127.0.0.1:18789 --token TOKEN, but neither apply nor the interfaces guide names that command. Without --url and --token, openclaw tui in the sandbox fails with Missing gateway auth token: Fabric's OpenClaw configuration isn't in the sandbox user's ~/.openclaw.

The Hermes sandbox in examples/gtc-dc/kubernetes-amd64.yaml (and its HCL equivalent) has an explicit filesystem policy without /dev/pts, so its browser chat, the Hermes terminal UI that 030-UI uses, fails with out of pty devices.

Change

  • InterfaceAccess gains an optional terminal field: the command to run in the sandbox, with TOKEN in place of the token. Only OpenClaw's dashboard sets it, as openclaw tui --url ws://127.0.0.1:PORT --token TOKEN, because the terminal UI is a client of the Gateway that serves the Control UI and takes its token. It names no token file, so it doesn't need a recorded runtime ID.
  • Apply's text output prints Terminal: openshell sandbox exec -n SANDBOX --tty -- openclaw tui ..., replacing TOKEN with the token after the dashboard's sign-in line.
  • docs/agents-inference/interfaces.md gets an "OpenClaw's Terminal UI" section: how to open it without putting the token in shell history, Ctrl-D to quit, a new token after each runtime start, the agent's tools can read the token, and openshell sandbox exec --tty needs no /dev/pts in the policy while Hermes's browser chat does. docs/references/cli.md describes the JSON field.
  • examples/kubernetes/hosted-nvidia.yaml and .tf, which examples/gtc-dc/kubernetes-amd64.* link to, add /dev/pts to the Hermes sandbox's read_write; the OpenClaw sandbox's policy is unchanged.

Fabric declares no terminal interface for OpenClaw or Hermes (hermes-interfaces.mdx at the pinned revision calls the Hermes TUI path proposed), so this adds no interface and no sign-in kind. A native Hermes terminal UI through sandbox exec would need Fabric's internal state path and launcher, so it is left to Fabric.

Beyond CI

  • On linux_arm64 Docker, with the docker-openclaw-hermes-interfaces case's stub model, openshell sandbox exec --tty -- openclaw tui --url ws://127.0.0.1:18789 --token "$TOKEN" connected, showed the model's reply, showed the model in /status, exited 0 on Ctrl-D, and showed the history when reopened. It did the same in a sandbox with the Kubernetes example's explicit policy, without /dev/pts, where opening a new pseudo-terminal failed with EACCES.
  • Unverified: the same on a Kubernetes gateway, and Hermes's browser chat with the updated Kubernetes example.

@cv

cv commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Pi 1.5.0 Session metadata and installed release path
Skills recorded test-driven-development (complete read); write-tests (complete read); nemoclaw-contributor-create-pr (complete read) Tool reads to cutoff
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup injection and tool reads to cutoff
Tool calls partial typescript: 124 Includes failed calls, to cutoff; the typescript wrapper hides its nested shell, git, and file calls
Session window recorded 2026-11-06T13:33Z to 2026-11-06T14:30Z; 57 min First event to cutoff, including idle time; the first 39 min investigated the design, the rest wrote this change
Compactions recorded 0 Complete record to cutoff
Models recorded aws/anthropic/bedrock-claude-opus-5-5 Model change events; no changes
Reasoning levels recorded high Thinking-level events; no changes

@cv
cv enabled auto-merge (squash) November 6, 2026 14:31
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@cv
cv merged commit ec11e48 into v1 Nov 6, 2026
68 checks passed
@cv
cv deleted the feat/openclaw-terminal-ui branch November 6, 2026 14:47
cv added a commit that referenced this pull request Nov 6, 2026
)

The `docker-openclaw-hermes-interfaces` live case now opens OpenClaw's
terminal UI the way the interfaces guide describes: through `openshell
sandbox exec --tty` with the dashboard's token. It sends a prompt and
checks that the stub model's reply appears and that Ctrl-D exits 0.

## Problem

QA's GTC DC cases 030-UI and 032-UI chat with OpenClaw through `openclaw
tui` over `openshell sandbox exec --tty`, and #14269 documents and
reports that command. No automated test opens a terminal UI: the
interfaces case checks only the Control UI's HTTP endpoints, and
`hcl_live::command` runs commands with `--no-tty`.

## Change

- `hcl_live::terminal`, a new probe:
- reads the token file that apply reports, with `openshell sandbox exec
--no-tty`, and puts it in place of a `TOKEN` argument;
- runs the pinned `openshell sandbox exec --tty -- COMMAND` in a
40-by-120 pseudo-terminal from `nix::pty::openpty`, waits for a ready
text, then types the prompt and Enter separately (a terminal UI reads a
prompt and Enter that arrive together as a paste);
  - waits for the reply, sends Ctrl-D and waits for the exit.
- Its report holds whether the ready text and the reply appeared, and
the exit status. The screen output and the token stay in the private
work directory.
- `tests/e2e/hcl/terminal`, a module that runs the probe once per target
and lists the targets that failed, as `tests/e2e/hcl/command` does.
- The interfaces case's new `terminal` run opens `openclaw tui --url
ws://127.0.0.1:18789 --token TOKEN` in `claw`, with the dashboard's
token path from apply's result. It waits for `connected | idle` and
expects `nemoclaw-stub-reply`.
- A unit test covers how the probe strips control sequences from the
screen output.
- `nix` becomes a Unix-only dev-dependency of `nemoclaw-e2e`; the
workspace already pins it with the `term` feature. The workspace forbids
`unsafe`, so the probe doesn't make the pseudo-terminal the command's
controlling terminal. `openshell sandbox exec --tty` doesn't need one.

Left out: Hermes's browser chat through the dashboard's `/api/pty`
WebSocket. It needs the dashboard's session token and its Host and
Origin checks on a forwarded port, and Hermes's terminal UI took 15 to
30 s to start in earlier manual runs. Whether it is reliable in CI is
unestablished, so it stays a manual check, as
`internal-docs/contributing/live-tests.md` says.

## Beyond CI

On linux_arm64, `cargo ci live-docker --hcl-cases
docker-openclaw-hermes-interfaces` passed. The case took 51.5 s. In an
earlier run with a second target that expected a different reply, which
failed as expected and was removed before commit, the other run blocks
took 42.7 s together, so the `terminal` run adds about 9 s.
cv added a commit that referenced this pull request Nov 11, 2026
…ms (#14413)

The release notes now list every user-visible change on `v1` since the
`v0.1.0-rc9` tag, including the breaking ones, and four example pages
drop claims that later changes made false.

## Problem

`docs/about/release-notes.md` listed three breaking changes and none of
the features, fixes, and onboarding changes that reached `v1` after
`v0.1.0-rc9`; it didn't name the configuration shapes the parser now
rejects or the intent record version `v0.1.0-rc9` writes.
Some example claims went stale:

- `examples/spark/README.md` said the pinned OpenShell has the Podman
TLS initialization blocker, ai-openshell/openshell#3427; its fix merged before
OpenShell 0.1.0, and `v1` pins 0.1.7.
- `examples/station/README.md` and `examples/gtc-dc/README.md` required
exactly one visible GPU on the host; since #13929,
`container.gpuDevices` lets a service on a host with more GPUs request
one.
- `examples/hcl/travel-team` said Fabric's Deep Agents adapter can't
turn reasoning off, NVIDIA/NeMo-Fabric#433; NVIDIA/NeMo-Fabric#439 fixed
that, and the pinned catalog's Deep Agents `reasoning_effort` accepts
`none`.
- The travel team cited #13313 for the booking key its service doesn't
receive, but #13313 closed when `openshell_api` landed.

## Change

- `docs/about/release-notes.md` gains "Changes Since v0.1.0-rc9",
grouped by area, from the commits in `v0.1.0-rc9..origin/v1`; where a
later commit changed an earlier one, the entry describes the current
code, and changes added and removed after the tag aren't listed:
- Agents and interfaces: #14037, #14038, #14269, #13981, #14024, #14186,
#14052, #14385, #13971, #13858, #13947, #14039, #14042, #14044, #14343.
- Inference: #13929, #14391, #14396, #14398, #14400, #13963, #13912,
#13964, #14388, #14390, #14397.
- Gateways and Kubernetes: #13909, #13970, #13922 (an existing
namespace, refused at plan by #13756, is now bound; cluster-wide reads
dropped), #14014, #14169, #13921.
- Plan, apply, and diagnostics: #14224, #13756, #14141, #14133, #14135,
#13775, #13744, #13701.
- Onboarding: #13693, #13695, #13741, #13757, #13851, #13978, #14228,
#14233, #14334, #14336.
- Examples and builds: #14166, #14184, #14188, #14191, #14192, #14200,
#13889, #14267, #14312, #14315, #14355, b30e9b4, #13781, #13813,
#14246, and the pins in `versions.json` and `image/fabric/Dockerfile`.
- Its breaking changes since the tag:
- the intent record moving from 15, which `v0.1.0-rc9` writes, through
16 (#14266), 17 (#14343), 18 (#13929), 19 (#14391) and 20 (#14394);
  - name-keyed `sandboxes` and `inferenceProviders` (#13703, #13705);
- a recipe `compatibility.gpu` outside every hardware profile (#13912);
- model tuning the adapter doesn't accept (#14111), and Hermes's
`max_tokens` losing its default (#14296);
  - `skills.paths` resolution (#14296);
  - endpoint and `networkCIDR` validation (#13847, #14081);
- the HCL `gateway_values` attribute (#14014), and Kubernetes ownership
receipts from before #13922 and #14014.
  The two earlier items stay, under their own heading.
- `examples/spark/README.md` replaces the closed OpenShell#3427 blocker
with the Podman and remote-model limits in `docs/resources/limits.md`.
- `examples/station/README.md` and `examples/gtc-dc/README.md` require
one GPU visible in the model container, and point to
`container.gpuDevices` for a host with more.
- `examples/hcl/travel-team/README.md` and `WALKTHROUGH.md` drop the
NeMo-Fabric#433 limitation, and the travel team's booking-key statements
link #14417 instead of #13313.

Not listed, because both changes landed after the tag: Deep Agents Code
(#14043, #14250), `compatibility.gpuCount` (#14391, #14394), and the
"Creating infrastructure state" progress step (#14169, #14248).

Checked and left unchanged: the root `README.md`,
`crates/nemoclaw-onboarding/README.md`,
`crates/nemoclaw-cli/assets/README.md`, `internal-docs/README.md`, the
other example READMEs, and every example YAML header comment. The GPU
autoscaling README and `load.sh` read the JSON fields `OperationResult`
serializes, and ai-openshell/openshell#4287 is fixed only after the pinned
0.1.7. The two pre-tag release-note items still match the schema and
SDK. `docs/README.md` is left to #14412, which retires the stale field
reference snapshot it describes.

Not verified: whether Hermes sends the booking key's placeholder to MCP
servers; #14417 tracks the live check.

## Beyond CI

Each relative link and anchor in the changed files resolves to an
existing file and heading.
@wscurran wscurran added area: cli Command line interface, flags, terminal UX, or output area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality integration: hermes Hermes integration behavior integration: openclaw OpenClaw integration behavior platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch labels Nov 12, 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: cli Command line interface, flags, terminal UX, or output area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality integration: hermes Hermes integration behavior integration: openclaw OpenClaw integration behavior platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants