Repository navigation
feat: move Code Mode, Tool Search and Templates out of Labs - #203096
Conversation
Keep structured Tool Search enabled by default and Code Mode on its existing Auto/preferred-model policy. Preserve saved activation choices, executor options, and per-agent/model precedence. Co-authored-by: vincentkoc <[email protected]>
Exercise the visible Agents to Agent defaults Tools path with fresh browser handoffs and retain measured layout-shift proof at 400, 820, and 1280 pixels. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: fuller-stack-dev <[email protected]>
Keep saved false as an advanced opt-out while preserving Add, draft, publication, and dependency-consent authority. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: fuller-stack-dev <[email protected]> Co-authored-by: Patrick-Erichsen <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 2e614ef9-3c15-4c88-af70-3a00fdb0ec6f
Co-authored-by: vincentkoc <[email protected]>
Retain the named persisted worker record in projection return types instead of repeatedly expanding the complete union. Runtime behavior and public signatures remain unchanged. Co-authored-by: vincentkoc <[email protected]>
Integrate the main revision containing all four prerequisite repairs. Regenerate the config baseline through its owner and retain measured same-frame screenshot bounds. The graduation delta over main remains scoped to its existing controls and availability. Co-authored-by: vincentkoc <[email protected]>
Prepare the exact runtime-neutral SDK repair in the graduation build while its separate prerequisite PR completes CI. Graduation publication remains sequenced after that repair lands. Co-authored-by: vincentkoc <[email protected]>
Retain the separately landed SDK repair and current main schema naming fix in the graduation base. Captured UI owners, styles, and template runtime are unchanged by this integration. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: fuller-stack-dev <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 9d710b2b-22a0-8cfd-adb0-1c08998daa2f
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR moves Code Mode and Tool Search controls into ordinary settings and makes Templates available unless explicitly disabled. Example: A Gateway has no gateway.controlUi.experimental.templates setting.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep open: this maintainer-directed graduation remains useful, but incomplete test integration blocks merge. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI settings feed the existing configuration owner; agent runtime resolvers consume tool choices, while Gateway and CLI Template operations share availability checks and retain installation authority. flowchart TD
A[Control UI settings] --> B[Configuration owner]
B --> C[Agent tool surface resolvers]
C --> D[Model requests]
B --> E[Template availability]
F[Gateway and CLI requests] --> E
E --> G[Existing catalog and guarded installer]
Technical reviewBest possible solution: Retain the existing-owner graduation and finish its E2E registration, browser-consumer migration, and documentation cutover. Do we have a high-confidence way to reproduce the issue? This is an approved feature graduation; current-main source establishes the old placement, and hosted exact-head CI directly demonstrates the two observed test failures. Is this the best way to solve the issue? Relocating existing controls and replacing the Labs availability owner is appropriate; no additional runtime, configuration key, or installation authority is needed. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ff84bdb5d1d2. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource -34, Tests +405, Docs +13, Generated 0, Other +3. Total +387 across 64 files. Added test files: 2. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 21, 2026, 8:30 AM ET / 13:30 UTC. |
Register the built Gateway proof in the canonical serial tier. Keep Labs inheritance and guarded patch coverage on Speech bubbles, and exercise Code Mode executor saves through ordinary Tools settings while retaining activation, limits, base hashes and reload checks. Remove duplicate absence coverage and the now-unnecessary test-line allocation. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 51c2b4ec-27e1-8259-ab60-6f38827bdf87
Keep the new full Gateway suite in the fixture’s serial classification. Preserve all complete-inventory, sharding, resource lease and worker-cap assertions. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: dfff4a32-0bd9-87f7-abc6-b4b18771088a
Integrate main 6577f41 only because GitHub reports a merge conflict. Regenerate the sole conflicting config-baseline hash through config:docs:gen on Node 24.22.1; preserve both sides of every source change. Focused merge-patch, native resource-ownership and private-server ownership checks pass. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: b9fd1b3f-8345-82cf-9a41-bb41f2018f8c
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…#203096) Move Code Mode and Tool Search to Agent defaults → Tools, keeping Auto eligibility, explicit model/agent choices and Node/QuickJS selection intact. Make Templates normally available under Customize without writing a missing default into saved config. Preserve explicit opt-outs and the existing review, installation, consent and publication authority checks. The cached archived/deleted-parent paint assertion remains a separately documented pre-existing test failure, not a claimed repair or green CI result. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: fuller-stack-dev <[email protected]> Co-authored-by: Patrick-Erichsen <[email protected]>
## What Problem This Solves `checks-node-compact-large-13` is red on `main` (scheduled runs [44976289659](https://github.com/openclaw/openclaw/actions/runs/44976289659) and [44980759580](https://github.com/openclaw/openclaw/actions/runs/44980759580/job/137080868437)). `src/config/zod-schema.core.test.ts` "projects schema-owned field documentation into the public schema and UI hints" expects the `gateway.controlUi.experimental.templates` help to contain `default: false`. ## User Impact No user-visible change. The config schema test matches the shipped Templates default again. ## Why This Change Was Made #203096 (`feat: move Code Mode, Tool Search and Templates out of Labs`) deliberately made Templates available by default and changed the help in `src/config/schema.help.runtime.ts` to `(default: true)`, but left the test pin at `default: false`. The product change is intended, so the test follows it. ## Evidence - Base (`origin/main` 7bf1c3e): `ocx test src/config/zod-schema.core.test.ts` → `1 failed | 6 passed`, received help `"Allow ClawHub discovery … (default: true) …"`. - Head: same command → `7 passed`. Merge danger: two-way door (test only). Co-authored-by: Ayaan Zaidi <[email protected]>
…#203416) ## What Problem This Solves `checks-node-compact-large-13` is red on `main` (scheduled runs [44976289659](https://github.com/openclaw/openclaw/actions/runs/44976289659) and [44980759580](https://github.com/openclaw/openclaw/actions/runs/44980759580/job/137080868437)). `src/config/zod-schema.core.test.ts` "projects schema-owned field documentation into the public schema and UI hints" expects the `gateway.controlUi.experimental.templates` help to contain `default: false`. ## User Impact No user-visible change. The config schema test matches the shipped Templates default again. ## Why This Change Was Made openclaw#203096 (`feat: move Code Mode, Tool Search and Templates out of Labs`) deliberately made Templates available by default and changed the help in `src/config/schema.help.runtime.ts` to `(default: true)`, but left the test pin at `default: false`. The product change is intended, so the test follows it. ## Evidence - Base (`origin/main` e5aa81b): `ocx test src/config/zod-schema.core.test.ts` → `1 failed | 6 passed`, received help `"Allow ClawHub discovery … (default: true) …"`. - Head: same command → `7 passed`. Merge danger: two-way door (test only). Co-authored-by: Ayaan Zaidi <[email protected]>
Supersedes #202866 (closed and unmerged).
What Problem This Solves
Code Mode and Tool Search already have core defaults, but their ordinary controls are still presented as experimental Labs settings. Templates already has a core catalog, creator and installer, yet a missing Labs opt-in hides its normal entry point.
User Impact
Code Mode and Tool Search move to Settings → Agents → Agent defaults → Tools. On selects Code Mode Auto for evaluated preferred models, not force-on for every model; explicit model/agent choices, Node/optional QuickJS selection and native-harness behavior stay intact. Tool Search retains its structured-call default.
Templates becomes normally available through Customize → Templates without writing a default into saved configuration. An explicit false remains an advanced opt-out. This does not grant installation or publication authority, change risk acknowledgements, or alter other Labs features.
Why This Change Was Made
The change relocates existing implementations rather than introduce another runtime or settings owner. The Labs-only entries, slots, wording and superseded availability helper are removed; existing configuration owners and all Template review/install/draft/publication guards remain authoritative. The four prerequisite repairs—#201487, #201488, #201519 and #201547—and the separate SDK repair #203083 are merged.
Evidence
Published head 0944828 matches prepared source 130a446 and tree 74ed9ce1debaadd5483ec3f6c7fe22955916746c. Main 6577f41 was integrated only to resolve GitHub's actual merge conflict, not merely because main advanced. The sole conflict was
docs/.generated/config-baseline.sha256, regenerated throughconfig:docs:genon Node 24.22.1; all main code was preserved. Earlier follow-ups changed test registration, consumers and duplicate-test cleanup, not application UI/runtime code.Captured UI proof still uses original before f4f3651 and graduation tree f39e2194314beb19d0b6cb71c37dd33b0895597e, retained in commit 891a417. Matched feature-view, style and feature-English sources are byte-identical from before f4f3651 to main 6577f41 and from captured after f39e2194 to source 130a446. Fresh Labs, Tools and Templates after-frames were inspected on the integrated source. The six published comparisons retain their original capture pins; they are not relabeled as fresh captures.
/procexecutable identities were asserted; CLI calls inherited the same verified executable through the unchanged helper. Missing Templates config changed denied→allowed and remained absent; false stayed denied; true stayed allowed. Both tool opt-outs and every authored root subtree remained exact. Doctor added only its separately owner-verified skills/wizard/meta roots; this was not a whole-config byte-identity claim across Doctor. Exactly three local catalog GETs occurred; no inference or registry publication, and cleanup completed. The preceding 103.82s six-stage result used the pinned Bun worker and remains valid Bun evidence, not Node qualification. The supportedOPENCLAW_VITEST_RUNTIME=nodecorrection closed that gap without changing behavior assertions or timeouts. Candidate assets used the disclosed private-QA-admitted full runtime; this is saved-state behavior proof, not installer, release-package or service-replacement qualification. The normal full-SDK production build remains separate evidence below.Current production build evidence: the complete normal
pnpm buildpassed on source 130a446 / tree 74ed9ce1 on Node 24.22.1, with QA and SKIP_DTS overrides unset: 2m 47.3s build time / 171.37s wall time, verifying all 164 SDK subpaths at 5,283,524 / 5,385,536 declaration bytes. The build reports UI asset-budget warnings/violations; this is not a passing budget check or an attribution of those violations to baseline. The earlier normal build on 21cfb77 / tree e39ef541 (2m 56.4s; 5,285,944 / 5,385,536 SDK declaration bytes) is retained only as prior-history evidence, not current proof.Fresh integrated-source validation: the unchanged full real-Gateway feature scenario passed with
CI=true OPENCLAW_VITEST_RUNTIME=nodeon actual Node 24.22.1: five preferred/capable/off/on model tool surfaces, live Templates missing/off/on behavior without restart, and no catalog inference (31,639ms scenario). Four owning-helper runtime-inheritance tests also passed. Earlier repository-selected Bun flow evidence is retained separately, not mislabeled Node. Supported E2E private-QA preparation is separate from the normal production/SDK build above. Fresh core/UI production typechecks, all 22 affected CLI tests, all 16 prompt-prefix tests and 20 focused checks (four config merge-patch, 15 resource-ownership and one private-server ownership check) passed; CLI/prefix and other tests used the repository-selected runtime where applicable, without claiming all ran on Node. Fresh real-Gateway layout probes at 400/820/1280 px recorded CLS 0; 1280 px again had two recent-input entries, not a claim of no movement. Net test growth remains 389 lines, with no allocation record.CI integration repairs: the initial private-server inventory guard failed locally and in CI. Its existing assertions now pass after correcting list order and registering graduation in the canonical real-Gateway tier. Existing curated Labs inheritance/guarded-patch scenarios now use retained Speech bubbles; Code Mode executor scenarios use ordinary Tools settings and their guarded full-config save owner, preserving activation, limits, base hashes, saving outcomes and reload checks. All 11 touched settings browser cases passed in 55.43s, and all 16 retained Labs unit cases passed. Tooling/UI typechecks, lint and format pass. The duplicate title-absence/no-op patch unit case identified by hosted review was removed; the real-Gateway flow retains stronger graduation proof.
Independent resource-fixture follow-up: three of 15 inventory/resource checks failed before the fixture correction. Adding graduation to the existing expected serial real-Gateway list makes all 15 checks pass locally in 18.23s, retaining inventory, sharding, lease and worker-cap assertions without weakening them. Matching root.other typechecking, lint and format pass. This fixture-only correction adds no test lines or application/runtime changes; net test growth remains 389 lines.
Current CI — run 44916418346, attempt 2: completed at PR head 0944828 with 82 jobs: 55 successful, 25 skipped, 2 failed. The only non-aggregate failure is UI E2E shard 7/10, with the two cached-presentation assertions below; the aggregate gate remains red solely for that shard.
security-fastpassed in job 136900386997. The separate protected-main Security publisher run 44922715477 also succeeded; its head 5e371 is not the PR source head, and target, replay and protected-source validation remain with the landing workflow. Attempt 2 retained unchanged outcomes from other jobs; it was not a manual rerun of UI shard 7 or the full workflow. CI is not all green, and no exception or merge admission is claimed.Static ratchet coverage recovered: in historical attempt 1, the hosted ratchet runner (job 136883277940) lost communication with no usable job log. A single local Node 24 run of all 13 ratchet entries on the exact executed merge ef4a326 passed 12; the database worker ran out of memory at its configured 4,096 MiB heap after 65.625s. An independent database-only run on the actual CI base 3a20a7b hit the same heap limit after 65.831s in the HEAD semantic phase, before comparison. This shows the local resource failure also occurs on the base, not that OOM caused the hosted runner loss or that the local comparison passed. One targeted infrastructure retry of the lost-runner job, with no source, heap or guard changes, produced a successful ratchet job on the same executed merge. All baseline checks passed, including the full database-worker comparison in 229.37s: SQLite T1 live calls 166 → 166, deprecated-only compatibility calls 15 → 15. This closes the hosted coverage gap; it does not claim the local OOM was fixed.
Remaining failure evidence: updated pre-PR main 6577f41 reproduced the archived and deleted-parent cached-presentation failures on actual Node 24.22.1 in one unchanged selected-name attempt (2 failed, 2 skipped; 20.73s). Attempt 2's UI shard log is byte-identical to historical attempt 1 job 136883278117, with the same assertions at
chat-pane-state-snapshot.e2e.test.ts:134:70. The ratchet recovery again checked out ef4a326, with ordered parents main 3a20a7b and PR 0944828; Git merge-tree reconstruction exactly matches tree 229b497a0375. The entire chat subtree, exact test, E2E harness, test/helpers, UI library/test-helper/style trees, lockfile and UI manifest have identical objects across reproduced main 6577, actual CI base 3a20 and executed merge ef4a. This qualifies the observed cached-state signature as pre-existing, not its root cause or a repair. The older 3dbbeef / 5b27f29 comparison remains historical. The original Plugins LTR edge failure did not recur in the current attempt and remains historically unclassified, not fixed or labeled flaky; passing replays did not prove a repair.Earlier complete local review of tree 85b7c64b through P2 found no actionable findings; it is prior-tree evidence. A fresh independent local review could not run because of reviewer setup, and the maintainer directed landing without waiting for it. The initial hosted integration findings were addressed above. The attempt 1 review and exception evidence must be refreshed against completed attempt 2;
tests.resultremains failed. Current protected-workflow admission, security validation and required reviews remain enforced. No fresh independent final-head clean review or completed CI admission is claimed.Clean comparison
Before
After
Annotated comparison
Current-main before: f4f3651. After: captured graduation tree f39e2194 based on the same main pin (retained in commit 891a417); the later SDK annotation is runtime-neutral. Full real isolated Gateways; matched dark/en-US/1280×1300/scale1 captures; primary images are equal 800×1220 lossless crops from those frames. Synthetic provider and HTTP catalog fixtures are disclosed above. Clean originals and measured bounds are retained.
Ordinary homes
Contributor credit
Requested and directed by @vincentkoc, with graduation requirements and contributions from @fuller-stack-dev and @Patrick-Erichsen. Existing human commit credit is preserved.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by