Repository navigation
test(e2e): drive the OpenClaw terminal UI in the interfaces case - #14274
Merged
Merged
Conversation
Collaborator
Author
Authoring session — opening
|
cv
enabled auto-merge (squash)
November 6, 2026 15:07
Contributor
|
v1 documentation preview: https://nvidia-preview-nemoclaw-v1-pr-14274.docs.buildwithfern.com/nemoclaw |
…ui-e2e # Conflicts: # internal-docs/contributing/live-tests.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
docker-openclaw-hermes-interfaceslive case now opens OpenClaw's terminal UI the way the interfaces guide describes: throughopenshell sandbox exec --ttywith 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 tuioveropenshell 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, andhcl_live::commandruns commands with--no-tty.Change
hcl_live::terminal, a new probe:openshell sandbox exec --no-tty, and puts it in place of aTOKENargument;openshell sandbox exec --tty -- COMMANDin a 40-by-120 pseudo-terminal fromnix::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);tests/e2e/hcl/terminal, a module that runs the probe once per target and lists the targets that failed, astests/e2e/hcl/commanddoes.terminalrun opensopenclaw tui --url ws://127.0.0.1:18789 --token TOKENinclaw, with the dashboard's token path from apply's result. It waits forconnected | idleand expectsnemoclaw-stub-reply.nixbecomes a Unix-only dev-dependency ofnemoclaw-e2e; the workspace already pins it with thetermfeature. The workspace forbidsunsafe, so the probe doesn't make the pseudo-terminal the command's controlling terminal.openshell sandbox exec --ttydoesn't need one.Left out: Hermes's browser chat through the dashboard's
/api/ptyWebSocket. 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, asinternal-docs/contributing/live-tests.mdsays.Beyond CI
On linux_arm64,
cargo ci live-docker --hcl-cases docker-openclaw-hermes-interfacespassed. 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 theterminalrun adds about 9 s.