Repository navigation
fix(openclaw): default fresh local tool disclosure to direct - #12968
Conversation
Use direct tools for a fresh managed OpenClaw sandbox on Ollama or vLLM. Preserve explicit requests, established registry state, other agents, cloud routes, and llama.cpp. Reuse the existing route reservation classification and session checks. Refs #12106 Replays the narrow default fix from #12110. Co-authored-by: Cestercian <[email protected]> Signed-off-by: Aaron Erickson <[email protected]>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit 01337a2 in the Show a line coverage summary of the most impacted files.
TypeScript / code-coverage/cliThe overall line coverage in commit 01337a2 in the Show a line coverage summary of the most impacted files.
Updated |
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
## Outcome Fresh OpenClaw sandboxes created through the accepted Deferred N1x Express Qwen preview default to progressive tool disclosure. The smaller tool list leaves room for a reply in the 32,768-token local model. Explicit disclosure requests and recorded sandbox choices keep their existing precedence. The branch also includes main's merged curl repair (#13158), so the ARM64 local Dockerfile fallback can install matching curl/libcurl packages. Its nine curl pins and Pi qualification receipts match main. ## Reason #12968 made direct disclosure the default for fresh local Ollama and vLLM routes in v0.0.133 to address the Gemma/Ollama tool-search failure in #12106. On the N1x Qwen recipe, exposing all tools nearly fills the context window and exposes OpenClaw's input-token estimate problem. A fresh greeting can receive a one-token output allowance and produce no usable reply. This mitigation uses existing configuration. OpenClaw source, the model, context window, and GPU memory settings remain unchanged. The development branch's local build was also blocked because pinned curl `deb13u5` requires the same libcurl revision, while APT selects `deb13u7`. The branch now carries the merged `deb13u7` repair and its qualification evidence. ### Related issues Fix #13088 Refs #12106, #12968, #13158. ## Changes - Select progressive disclosure for a fresh, session-owned reservation on the accepted N1x vLLM/Qwen route with matching model metadata. - Keep direct defaults for other local routes, including Gemma/Ollama. Preserve explicit selections and recorded choices. - Cover accepted and rejected routes, mismatched reservations, explicit selections, and saved choices in the sandbox-handler tests. - Merge main's qualified curl repair into the testing branch. These image inputs already match main and add no separate image changes to the PR diff. ## Verification - [Manual N1x TUI validation](#13173 (comment)) on checkout `b045e8569401f1da6e142d8c62254ceb5272bce2`: the tester sent `Hellooo` and received `Hey. What's up?`, with approximately 11k/33k context use (34%). A read-only check confirmed the host checkout and three tool-disclosure source files match the PR. - Focused Vitest run with `--project integration --project cli`: 243 tests across seven suites passed after the base merge. Selection: `node-tar-dockerfile-contract`, `bundled-npm-brace-expansion-dockerfile-contract`, `bundled-npm-ip-address-dockerfile-contract`, `sandbox-base-security-packages`, `native-security-packages`, `sandbox-tool-disclosure`, and `sandbox-resume`. - `docker buildx build --platform linux/arm64 --target npm12 --file Dockerfile --load .` on N1x: passed with the original pinned Node base. curl and libcurl both installed at `8.14.1-2+deb13u7`; npm's tar, brace-expansion, and ip-address remediation checks passed. The exercised Dockerfile SHA-256 is `d79d7c13530ac8b34e999811b9fd8a760690490eb81b2619add3177b896eed57`, matching this branch. - Five Dockerfile/security suites on ARM64: 159 tests passed before the main merge added five curl-pin assertions. - Hadolint for all five affected Dockerfiles, Oxfmt, normal commit hooks, and `git diff --check`: passed. - Isolated OpenClaw 2026.9.2 tests on base `abf42f10a54617128c1464d33592164356660e43`: direct disclosure sent 49 tools/31,387 input tokens and failed with one output token. Progressive sent 11 tools/10,652 first-call input tokens and answered a greeting. Execution returned `391` for `17*23`; tool search, description, and invocation completed a session-status request. These were embedded-agent configuration tests, not fresh Express/TUI validation. - The QA checkout's modified lockfile, tool-disclosure files, host package inventory, and running vLLM container identity/start time remained unchanged by the curl repair. The owned validation image tag was removed. - Installed pre-push publication validation and CLI typecheck: passed in the credential-isolated boundary. GitHub verified all three feature-branch commits. - Reviewed diff contains no secrets, API keys, or credentials. ## Review notes Self-review covers NVIDIA/NemoClaw commit `b045e8569401f1da6e142d8c62254ceb5272bce2` and all three sensitive PR paths under `src/lib/onboard/machine/handlers/`. The prior commit's nine Advisor specialists completed in [run 38575577290](https://github.com/NVIDIA/NemoClaw/actions/runs/38575577290). Seven reported clear results. The documentation finding is deferred to post-merge docs catch-up under AGENTS.md; the guide and command-reference changes must describe the fresh N1x exception and explicit-selection precedence. Advisor also raised a scope concern about the earlier #13088 closure. That issue has since reopened for investigation. This PR preserves the explicitly requested configuration mitigation and contains no upstream monkeypatch. Independent maintainer review of the scope remains required before merge; no approval or waiver is claimed. The reported manual TUI greeting passed. A fresh Express onboarding run tied to the final commit and longer-session/compaction behavior still need hardware validation. The curl verification covers the `npm12` stage; a complete local sandbox build remains untested. Existing sandboxes keep their recorded disclosure mode. --- Signed-off-by: San Dang <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Eligible N1x Qwen managed vLLM previews now use progressive tool disclosure when preview intent is accepted. Explicitly selected disclosure settings continue to take precedence, and other provider or model combinations keep their existing behavior. * **Bug Fixes** * Recorded tool disclosure settings are preserved when resuming N1x Qwen sandboxes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: San Dang <[email protected]>
Outcome
A fresh managed OpenClaw sandbox on local Ollama or vLLM defaults to direct tools. An explicit CLI/environment choice remains authoritative. Existing sandbox choices, other agents, cloud routes, and llama.cpp retain their current behavior.
Reason
The initial onboarding session seeds progressive disclosure before a provider is selected. Passing that seed unchanged into local OpenClaw creation can require models to drive nested Tool Search calls even when direct tools work.
Related issues
Refs #12106: addresses the initial local OpenClaw default.
Replays the narrow default proposal from #12110, with Cestercian credited as co-author. The original remains open until this replacement lands.
Changes
Verification
01337a2e8aef7b12a0d71631cbdc1840b133244d.fcbbab088ad89dc78322b79d6b4e5ecceee8f1b0: the complete supported E2E fanout selected 135 entries. On the PR, 120 passed and 15 failed. All 15 failures were reproduced on the base with the same cause and failed phase or preparation step. Both original dispatch receipts have empty jobs/targets selectors; retries retained the same source commits.Review notes
Self-review covered the onboarding default, explicit-choice preservation, established registry state, and unrelated agent/provider behavior. Automated review and CI passed on the current head. No live Gemma result is claimed. This change does not add runtime fallback or new E2E assertions.
Public-guide updates may follow the repository's Author Post-Merge Catch-Up workflow.
Co-authored-by: Cestercian [email protected]
Signed-off-by: Aaron Erickson [email protected]