feat(core): field.control as a kind map with deep-merged arms (#155) - #156
Merged
Merged
Conversation
…rge (#155) Recipes can override one control arm without wiping select/textarea/choicegroup. Engine coerces maps at part lookup; intercept parts.control stays a function. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Aug 16, 2026
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
Closes #155 (child of #141). Stacks on #152 / #146.
defaults.field.controlis a kind map (input/select/textarea/choicegroup) so a recipe can override one arm without wiping the others. Engine coerces maps at part lookup (ADR 052). Interceptparts.controlstays a function. RHF / TanStack recipes moved onto arms; native still just wrapsfield.root.Agent did the grind.
Test plan
mergeDefaults({ field: { control: { input } } })keeps native select / textarea / choicegroupuseFormTree({ defaults: { field: { control: { input } } } })shows the custom input and a native<select>parts.controlstill works (function, not a map)npm run gateMade with Cursor