Repository navigation
Conversation
The custom-inference sandbox can now set the custom model's thinking default, reasoning flag, maxTokens and contextWindow (like NemoClaw's MODEL_REASONING, MODEL_MAX_TOKENS and MODEL_CONTEXT_WINDOW). An explicit reasoning: false keeps a thinking default without sending reasoning_effort. Each setting is a literal or an input. The bundled profile reads them from optional keys of the inference Secret (thinking, reasoning, max_tokens, context_window): a key that is absent or empty is not applied, so OpenClaw keeps its own default, and an invalid value fails the apply naming the setting. The catalogs and RHDH forms list them as optional fields, and values-secret.yaml.template shows them under the custom-inference entry. Assisted-By: Claude
saw-restart-pending only looked for RestartRequired, which KubeVirt 1.8 does not set when just the template's openshell.pattern/*-checksum annotations change, so a BOM update left VMs on their old inputs with nothing listed. It now also compares those checksums with the running instance's. saw-restart ran a blocking poweroff; the ssh tunnel dropped before it returned and virtctl reported exit status 1, which the script treats as a failed command. Queue the poweroff with --no-block so the command returns before sshd stops. Assisted-By: Claude
Drop the 0.1.6 note on agent traces (0.1.10 relays them; OpenClaw does not send them yet), describe the driver's bootstrap window by its 0.1.10 setting, name the e2e check behind W6, and move the Kata pointer and the portal Task recovery note to the sections they belong to. Assisted-By: Claude
sauagarwa
marked this pull request as ready for review
November 30, 2026 19:29
mtalvi
self-requested a review
November 30, 2026 21:09
mtalvi
requested changes
Nov 30, 2026
Comment on lines
+1020
to
+1023
| if isinstance(src, dict): | ||
| text = resolve_bom_input(src, read_value, f"{where}: inference {key}", forbidden) | ||
| if text: | ||
| out[key] = parse_model_setting(key, text, f"{where}: inference {key}") |
Collaborator
There was a problem hiding this comment.
- Severity: Warning
- Issue: The new optional inputs break Kubernetes custom-inference compilation even when unset. Its
read_modelcallback only permitsurlandmodel, so resolvingthinkingraisesContractError. This causes the four failures in both [CI jobs](https://github.com/validatedpatterns-sandbox/secure-agent-workspace/actions/runs/46495568485). Reproduced all four locally. - Fix: Update the Kubernetes adapter to recognize the four optional keys and return
""when absent, preserving credential restrictions. Since these settings are documented as VM-only, explicitly reject populated settings until Kubernetes startup supports them. An in-memory allowlist correction made all 29 tests in the two affected files pass. - Message: Found the cause of the red CI: these optional reads hit the Kubernetes adapter’s model/url-only allowlist. Can we handle absent settings there and explicitly gate unsupported values? Currently, even an unchanged custom-inference container profile fails compilation.
Comment on lines
4006
to
4010
Collaborator
There was a problem hiding this comment.
- Severity: Warning
- Issue: Clearing optional settings does not restore defaults on existing workspaces. Missing inputs skip reconciliation, leaving previously written
maxTokens,contextWindow, and explicitreasoningoverrides behind. Verified the configuration mutation and checked the pinned OpenClaw 2026.11.8 onboarding code: it preserves existing model metadata. - Fix: Track previously managed overrides and their original values. When an input disappears, restore its original value or remove the managed override. Add a set → clear → reapply regression test.
- Message: Can we reconcile removed settings too? Clearing these fields currently leaves the old overrides in OpenClaw after restart, so users can’t return to the documented defaults.
Comment on lines
+16
to
+17
| vmis="$(oc get vmi -A -l openshell.pattern/role=gateway -o json)" | ||
| pending="$(jq -r --argjson vmis "${vmis}" ' |
Collaborator
There was a problem hiding this comment.
- Severity: Warning
- Issue: The entire VMI list is passed as one argument, hitting Linux’s per-argument size limit. Reproduced with 40 chart-derived VMI objects (~200 KB): the script exits 126 with
Argument list too long, listing no pending restarts. - Fix: Replace
--argjson vmis "${vmis}"with--slurpfile vmis <(printf '%s' "${vmis}"), and change$vmis.itemsto$vmis[0].items. Verified this lists all 40 pending VMs successfully. - Message: Can we pass the VMI JSON through a file instead of argv? With 40 chart-derived VMIs, this fails before listing anything.
--slurpfilefixes the same reproduction.
This branch has not been deployed
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.
Summary
inferenceSecret. The custom-inference sandbox can set the model's default thinking level, reasoning flag,maxTokensandcontextWindow(like NemoClaw'sMODEL_REASONING,MODEL_MAX_TOKENSandMODEL_CONTEXT_WINDOW). The bundled profile reads them from optional Secret keys (thinking,reasoning,max_tokens,context_window); a missing or empty key is not applied, so OpenClaw keeps its default, and an invalid value fails the apply naming the setting. The RHDH form and catalogs list them as optional fields;values-secret.yaml.templateshows them.saw-restart-pendingnow also lists VMs whose template checksum annotations differ from the running instance (KubeVirt 1.8 does not setRestartRequiredfor annotation-only changes, so BOM updates were never listed).saw-restartqueues the guest poweroff with--no-block, so an ssh disconnect during shutdown is no longer reported as a failed command.Testing
maxTokens32768 → 16384 → 32768, thinkinghigh→low);saw-restart-pendinglisted the VM after a BOM change andsaw-restartcompleted through the guest poweroff.Follow-up
Upgrading an existing VM workspace to OpenClaw 2026.11.8 needs
openclaw doctor --fix --non-interactive(after backing up the state) before onboarding; otherwise config writes are refused and enablingsaw-tool-gatefails. Not in this PR.