refactor(react-ui): rename the prefill-chips welcome API to prompt templates - #836
Merged
Merged
Conversation
…mplates prefillChips → promptTemplates, PrefillChip → PromptTemplate, and the template's nested starters → completions. The thing is a fill-in-the-blank prompt stem; "template" states the incomplete-by-design contract (click ≠ send) where "prefill chips" named the mechanism and the widget shape. The completions rename also removes the second meaning of "starters" (welcome starters send on click; template completions append to the draft). The API merged after 0.13.0 was published, so nothing has shipped with the old names — no consumer breaks. Internal component and DOM class names (WelcomePrefillChips, openui-agent-prefill-chip*) keep describing the chip UI itself. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XECS4NLhz6BNd1TUYbWjfu
abhithesys
approved these changes
Jul 24, 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.
Follow-up to #831, from the review comment on
WelcomeScreen.tsxasking for a better prop name — landing it now because the API merged after react-ui 0.13.0 was published, so the old names have never shipped and the rename is free. After the next release it would be a breaking change.Rename
prefillChipsproppromptTemplatesPrefillChiptypePromptTemplatePrefillChip.startersPromptTemplate.completionsstarterssend on click; a template'scompletionsappend to the draft. They're different behaviors and now have different names.Kept: internal component (
WelcomePrefillChips) and DOM class names (openui-agent-prefill-chip*) — they describe the chip UI itself, which is accurate.Test Plan
tscclean, build green, 27/27 tests (one SSR fixture updated to the new field), rolled-up types exportPromptTemplate🤖 Generated with Claude Code
https://claude.ai/code/session_01XECS4NLhz6BNd1TUYbWjfu