Skip to content

gut(config): remove dead model selection config schemas#2295

Merged
alexey-pelykh merged 1 commit intomainfrom
gut/config-dead-model-selection-schemas
Apr 11, 2026
Merged

gut(config): remove dead model selection config schemas#2295
alexey-pelykh merged 1 commit intomainfrom
gut/config-dead-model-selection-schemas

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Remove model, imageModel, pdfModel, pdfMaxBytesMb, pdfMaxPages, models, skipBootstrap, bootstrapMaxChars, bootstrapTotalMaxChars, and subagents.model from AgentDefaultsConfig type
  • Remove AgentModelEntryConfig and AgentModelListConfig types
  • Replace Zod schema fields with z.unknown().optional() stubs for config parse compatibility
  • Remove help text, labels, and legacy migration rules for dead config keys
  • Fix cascade compile errors across onboard-auth, defaults, security audit, tlon extension, and test files

Closes #2290

Test plan

  • pnpm build passes
  • pnpm test passes (694 files, 5942 tests)
  • pnpm check passes (format + typecheck + lint)
  • Existing configs with model fields still parse (compat stubs verified by updated schema regression test)

🤖 Generated with Claude Code

Remove the embedded-LLM model selection infrastructure from config
types, Zod schemas, help text, labels, and legacy migration rules.
RemoteClaw delegates model selection to CLI runtimes — these keys
were parsed but never consumed by the middleware pipeline.

Zod fields replaced with z.unknown().optional() stubs so existing
configs with model keys still parse without error. Cascade fixes
applied to onboard-auth, defaults, security audit, and extensions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) April 11, 2026 16:03
@alexey-pelykh alexey-pelykh merged commit a82c181 into main Apr 11, 2026
10 checks passed
@alexey-pelykh alexey-pelykh deleted the gut/config-dead-model-selection-schemas branch April 11, 2026 16:09
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.

gut(config): remove dead model selection config schemas

1 participant