gut(config): config migration for deprecated default: true field (#1581)#2283
Merged
alexey-pelykh merged 1 commit intomainfrom Apr 11, 2026
Merged
Conversation
…1581) Handle backward compatibility for the removed `default: true` field on agent config entries. The field was removed in #1575 (sole-agent auto-selection), but existing configs may still carry it. - Zod schema accepts `default` field silently (no unrecognized key error) - Legacy rule detects `default: true` for doctor warnings - Legacy migration strips the field (auto-migrated on load) - Import command strips `default` and uses sole-agent workspace rules - Tests cover schema acceptance, rule detection, migration, and import Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
defaultfield on agent entries silently (no unrecognized key parse error)remoteclaw doctorwarns whendefault: truefound in raw configdefaultfield automatically on loaddefaultfield and uses sole-agent workspace rules (no longer checksentry.default === true)Closes #1581
Test plan
src/config/legacy.default-field.test.ts— schema acceptance, rule detection, migration strippingsrc/commands/import.test.ts— import stripsdefaultfield, workspace assignment uses sole-agent logic🤖 Generated with Claude Code