Skip to content

fix(config): sync schema.help + schema.labels with upstream; add dependency files - #90

Merged
Piboonsak merged 2 commits into
mainfrom
copilot/fix-config-sync-schemas
Apr 6, 2026
Merged

Piboonsak merged 2 commits into
mainfrom
copilot/fix-config-sync-schemas

Conversation

Copilot AI commented Apr 6, 2026 •

Copy link
Copy Markdown

Summary

  • Problem: schema.help.ts (496 lines) and schema.labels.ts (357 lines) were far behind upstream (1511 and 811 lines respectively), missing comprehensive help text and labels for all config keys added by upstream.
  • Why it matters: Config UI surfaces, openclaw config set tab-completion, and docs generation all read from these maps — gaps mean missing labels/descriptions for valid config keys.
  • What changed: Replaced both files with upstream versions (3–4× larger); added two new upstream dependency files they import (media-audio-field-metadata.ts, talk-defaults.ts); confirmed all our additions from PRs [WIP] Add rate limiting and throttle layer functionality #51/feat(agents): rapid-succession storm detector + callTrace to prevent nested-agent tool storms #56/feat(agent): enable reasoning mode as default #78 (rapidSuccession help/labels, rate-limit entries) are preserved.
  • What did NOT change: The six type/Zod schema files (types.openclaw.ts, zod-schema.ts, types.tools.ts, zod-schema.agent-runtime.ts, types.agent-defaults.ts, zod-schema.agent-defaults.ts) — HEAD already contains all feature additions from the sprint PRs; taking full upstream versions of these files introduced breaking union-type changes (AgentModelConfig, SecretInput for apiKey) requiring cascading fixes across 30+ unrelated files outside the config directory scope.

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

Linked Issue/PR

User-visible / Behavior Changes

openclaw config set and config-related UI will now show labels and help text for all upstream-added config keys (e.g. env.*, talk.*, tools.media.audio.*, and many more). No runtime behavior changes.

Security Impact (required)

  • New permissions/capabilities? No
  • Secrets/tokens handling changed? No
  • New/changed network calls? No
  • Command/tool execution surface changed? No
  • Data access scope changed? No

Repro + Verification

Environment

  • OS: Linux (CI)
  • Runtime/container: Node 24 / pnpm
  • Model/provider: N/A
  • Integration/channel (if any): N/A
  • Relevant config (redacted): N/A

Steps

  1. pnpm build
  2. node --import tsx node_modules/vitest/dist/cli.js run "src/config"

Expected

  • Build exits 0, no warnings
  • 65 config test files pass (518 tests)

Actual

  • Build exits 0, no warnings
  • 65/65 test files pass, 518/518 tests pass

Evidence

  • Failing test/log before + passing after
Test Files  65 passed (65)
     Tests  518 passed (518)

Pre-existing failures in tool-loop-detection.test.ts and pi-tools.before-tool-call.test.ts are unrelated and reproduce identically on HEAD before any changes.

Human Verification (required)

  • Verified scenarios: build clean, all config schema tests pass, rapidSuccession and rate-limit entries present in both updated files.
  • Edge cases checked: confirmed pre-existing test failures exist on HEAD before changes (not introduced by this PR).
  • What you did not verify: full pnpm test suite end-to-end (pre-existing failures in loop-detection tests make the suite non-green on HEAD itself).

Compatibility / Migration

  • Backward compatible? Yes
  • Config/env changes? No
  • Migration needed? No

Failure Recovery (if this breaks)

  • How to disable/revert this change quickly: git revert the commit; the files are pure lookup maps with no runtime logic.
  • Files/config to restore: src/config/schema.help.ts, src/config/schema.labels.ts, src/config/media-audio-field-metadata.ts, src/config/talk-defaults.ts
  • Known bad symptoms: missing labels in openclaw config set output or config UI.

Risks and Mitigations

  • Risk: New upstream help/label keys reference config paths not yet validated by our Zod schemas.
    • Mitigation: These are display-only strings; no runtime schema enforcement is involved. Worst case: a label appears for a key the current schema rejects — harmless until the schema catches up.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.openai.com
    • Triggering command: /opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node --conditions node --conditions development --experimental-import-meta-resolve --require /home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected]_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs /home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected]_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js orks.js 18_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs 18_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js fo/c�� 88654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs 88654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js b/node_modules/.bin/bash ngs.cjs orks.js pnpm/[email protected] pnpm/[email protected] (dns block)
  • example.com
    • Triggering command: /opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node --conditions node --conditions development --experimental-import-meta-resolve --require /home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected]_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs /home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected]_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js git 18_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs 18_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js --no�� 88654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs 88654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js ndor/bin/sh (dns block)
    • Triggering command: /opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node --conditions node --conditions development --experimental-import-meta-resolve --require /home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected]_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs /home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected]_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js orks.js pnpm/[email protected] pnpm/[email protected] 4.li�� laywright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs laywright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js /usr/local/bin/bash ngs.cjs orks.js b/node_modules/.node b/node_modules/.--conditions (dns block)
    • Triggering command: /opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node --conditions node --conditions development --experimental-import-meta-resolve --require /home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected]_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs /home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected]_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js orks.js 18_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs 18_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js --no�� laywright@4._c96--experimental-import-meta-resolve laywright@4._c96--require de/node/bin/pnpm/home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected] ngs.cjs orks.js b/node_modules/.node b/node_modules/.--conditions (dns block)
  • files.slack.com
    • Triggering command: /opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node --conditions node --conditions development --experimental-import-meta-resolve --require /home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected]_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs /home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected]_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js git 18_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs 18_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js ^imp�� --is-inside-work-tree >/dev/null/opt/hostedtoolcache/node/24.14.1/x64/bin/node bash b/node_modules/.bin/sh --noprofile git (dns block)
  • private.test
    • Triggering command: /opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node --conditions node --conditions development --experimental-import-meta-resolve --require /home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected]_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs /home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected]_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js orks.js 18_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/suppress-warnings.cjs 18_@opentelemetry+[email protected]_@types+[email protected]_@vitest+browser-playwright@4._c9688654361f600a6ea7cb5666ec9fae/node_modules/vitest/dist/workers/forks.js --no�� laywright@4._c96--experimental-import-meta-resolve laywright@4._c96--require de/node/bin/pnpm/home/REDACTED/work/openclaw_github/openclaw_github/node_modules/.pnpm/[email protected] ngs.cjs orks.js b/node_modules/.node b/node_modules/.--conditions (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Fix config sync with upstream and re-apply our additions fix(config): sync schema.help + schema.labels with upstream; add dependency files Apr 6, 2026
Copilot AI requested a review from Piboonsak April 6, 2026 03:47
@Piboonsak
Piboonsak marked this pull request as ready for review April 6, 2026 07:30
@Piboonsak
Piboonsak merged commit 011c4cc into main Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(config): sync config schemas with upstream + re-apply our additions

2 participants