Repository navigation
feat(onboarding): suggest a local agent image that installs the chosen harness - #14579
Merged
Merged
Conversation
…n harness At the sandbox image question, onboarding lists the agent images on the gateway's Docker or Podman engine, offers by digest the ones whose io.nemoclaw.fabric.catalog label installs the chosen harness, newest first, and suggests the newest. When none does, the question links the agent image build instructions. Part of #14235 Signed-off-by: Carlos Villela <[email protected]>
Collaborator
Author
Authoring session — opening
|
Contributor
…nt-image Signed-off-by: Carlos Villela <[email protected]>
The agent image read names the adapter, so it returns just the digest references to offer, newest first. One function maps a sandbox image question to its read for both the TUI and the journey, the read keeps the first digest reference per image, and a local image now replaces a suggestion the engine doesn't hold. Tests and docs shrink to match. Signed-off-by: Carlos Villela <[email protected]>
cv
enabled auto-merge (squash)
November 18, 2026 08:02
cv
pushed a commit
that referenced
this pull request
Nov 19, 2026
#14598) `nemoclaw onboard` no longer asks for the sandbox image when the gateway's engine holds exactly one image that installs the chosen harness. It records that image as the answer, and the review shows it like any other. ## Problem After #14579, onboarding offers the local images that install the chosen harness at the sandbox image question. When only one image fits, the question still appears with a single choice, so the user confirms something that has no alternative. On Docker Desktop with the containerd image store, an engine holding one OpenClaw image (`nc-fabric:openclaw`) still asked "Sandbox image" as question 5 with one choice. Resolves #14597, split from #14235. ## Change - `JourneyState::answer_single_agent_images` answers the image question through the normal answer path when #14579's image read succeeded, listed exactly one image, and the document names no other. The saved YAML contains it, and going back from a later question skips it. - It waits until the harness, runtime, and engine questions are answered, since a different choice there may not hold that image. - The image read follows the sandbox's `harnessRef` through the existing `harness_kind`. - The wizard calls it whenever the state or observations change. Before taking input, the terminal keeps reading while a read moves the journey to another question, so the model question still gets its catalog read, and it drops keys typed during the read that answered the image question. - The question is still asked when several images fit, when none fits, when discovery is off or the read failed, and when the template or an earlier answer names another image, including the template's placeholder digest. There is no generic "one valid choice answers itself" rule to reuse. The question choices are suggestions, not the valid set: the image and model questions take free text, and the runtime deliberately stays a choice when one engine answered. The closest precedent, the engine question, is dropped by the resolver once the runtime answer writes the only engine that answered. ## Beyond CI Ran `nemoclaw onboard` with the built-in defaults against a throwaway Docker 29.10 engine (containerd image store) and accepted each suggestion. With one OpenClaw image on the engine, the image question did not appear, the review's Image row showed its digest, and the saved YAML named it. With a second OpenClaw image added, the image question was asked as question 5 with both digests. Signed-off-by: Deepak Jain <[email protected]> Signed-off-by: Carlos Villela <[email protected]>
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.
nemoclaw onboardnow suggests, at the sandbox image question, a local agent image that installs the chosen harness, pinned by digest, and links the build instructions when the gateway's engine has none.Problem
Since #14564, every sandbox must set
image.ref, and onboarding asks for it with no suggestion, or with the template's placeholder digest, even on a host whose engine holds images built withcargo images buildfor the chosen harness. The user has to find the digest withdocker image inspectand paste it.Part of #14235: this covers matching the harness to local images. Suggesting published images waits for #13516. Skipping the question when exactly one image fits, and naming a missing image in the review, are left for later.
Change
AgentImagesread for one engine and one Fabric adapter. It returns, newest first, the digest reference (NAME@sha256:DIGEST) of each image whoseio.nemoclaw.fabric.cataloglabel installs that adapter's runtime. It lists images through the existing engine client, filtered by the label. An image without a repository digest, as in Docker's classic image store, can't be pinned and is left out. Plans never make this read.Without discovery, or before the engine is known (several engines answered for the runtime, so the engine question comes after the image question), the image question is unchanged.
Beyond CI
On a Linux host with Docker's containerd image store and locally built agent images,
nemoclaw onboardwith Hermes listed the Hermes images by digest and suggested the newest. Withexamples/onboarding/openclaw.yaml, the newest local OpenClaw image replaced the template's placeholder digest as the suggestion. Accepting the suggestion reached the review; the image check that runs on saving was not exercised. Podman was not tried.