Skip to content

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

Closed

Description

@Piboonsak

Context

Upstream massively expanded all config schema files. Our additions (rate limit config, loop detection config, reasoning defaults) are small (2-37 lines each) but need to be re-applied onto the new upstream schemas.

Conflict Files

File Ours Upstream Our Addition
src/config/zod-schema.ts 20 lines 444 lines Rate limit Zod schema
src/config/zod-schema.agent-runtime.ts 37 lines 275 lines Loop detection + reasoning schemas
src/config/zod-schema.agent-defaults.ts 1 line 95 lines Trivial
src/config/types.openclaw.ts 37 lines 49 lines RateLimitConfig types
src/config/types.tools.ts 4 lines 189 lines Loop detection config
src/config/types.agent-defaults.ts 19 lines 245 lines Reasoning mode defaults
src/config/schema.help.ts 4 lines 1481 lines Help text additions
src/config/schema.labels.ts 2 lines 627 lines Label additions

What To Do

  1. Take upstream versions of ALL config files (their changes are 10-100x larger)
  2. Re-apply our small additions:
    • zod-schema.ts: Add rate limit schema (20 lines)
    • zod-schema.agent-runtime.ts: Add loop detection + reasoning config schemas (37 lines)
    • types.openclaw.ts: Add RateLimitConfig, RateLimitChannelOverride types (37 lines)
    • types.tools.ts: Add loop detection config type (4 lines)
    • types.agent-defaults.ts: Add reasoning mode defaults (19 lines)
    • schema.help.ts: Add help text for new config keys (4 lines)
    • schema.labels.ts: Add labels for new config keys (2 lines)

Acceptance Criteria

  • All config types compile: pnpm build
  • Rate limit config works
  • Loop detection config works
  • Reasoning mode defaults work
  • Tests pass: pnpm test

References

Activity

  1. Piboonsak commented on Apr 6, 2026

    @Piboonsak
    OwnerAuthor

    ? Sprint 4.0 - Closed via merge
    Commit: 011c4cc64 - PR #90
    All 6 upstream sync PRs merged successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions