Skip to content

refactor: tidy warnings, image planning, and the state lock - #13110

Merged
cv merged 1 commit into
v1from
refactor/small-cleanups
Oct 13, 2026
Merged

cv merged 1 commit into
v1from
refactor/small-cleanups

Conversation

@cv

@cv cv commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

Four small cleanups in code changed by #13056, #13058, and the agent image work. Behavior is unchanged.

Change

Where Before After
nemoclaw-cli formatting.rs render and render_error each read the warnings and added a warnings field when there were any RenderContext::add_warnings adds the field for both
nemoclaw-cli formatting.rs Static error help text was copied into a String so that one case could use format! Help is a Cow<'static, str>: the static text is borrowed and only DockerModelUpdateRefused builds a string
nemoclaw-build images::plan The other platforms' harnesses were loaded lazily inside the loop over unsupported selections The unsupported selections are collected first, and the other platforms are read once if there are any
nemoclaw-sdk state::Store The _lock field had an underscore although Drop now unlocks it The field is named lock

I left routes.rs::forward unchanged. Rebuilding the response with response.map(Either::Left) would also keep the upstream response's version and extensions, which is a behavior change.

Validation

  • cargo test -p nemoclaw-cli formatting, cargo test -p nemoclaw-sdk --lib state, and cargo test -p nemoclaw-build --test integration images: all passed. The images run had Docker Buildx, so it included harnesses_missing_from_the_selected_platform_name_the_platforms_that_build_them.
  • cargo ci on linux_arm64: all steps passed.

- RenderContext::add_warnings adds warnings to JSON output for both results
  and errors.
- Static error help text is borrowed instead of copied.
- images::plan reads the other platforms' harnesses once, before checking
  unsupported selections, instead of lazily inside the loop.
- Store::lock drops its underscore now that Drop uses it.
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv enabled auto-merge (squash) October 13, 2026 18:46
@cv
cv merged commit 594c1e0 into v1 Oct 13, 2026
@cv
cv deleted the refactor/small-cleanups branch October 13, 2026 18:58
@wscurran wscurran added area: architecture Architecture, design debt, major refactors, or maintainability area: cli Command line interface, flags, terminal UX, or output refactor PR restructures code without intended behavior change labels Oct 13, 2026
@wscurran wscurran added the v1 NemoClaw v1 branch label Oct 28, 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: architecture Architecture, design debt, major refactors, or maintainability area: cli Command line interface, flags, terminal UX, or output refactor PR restructures code without intended behavior change v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants