Add a cloud flag to generateSystemPrompt in lang-core - #1117
Merged
Conversation
OpenUI Cloud now gets its system prompt from lang-core via `{ cloud: true }`, so callers emit the muse config sentinel instead of a locally generated prompt.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
3 tasks
Keep the same issue codes and messages, without a schema layer in between.
Callers don't need validateChatLibrary; Cloud prompt generation already runs it.
No separate ChatLibrary type — generateSystemPrompt accepts the same spec and omits `components` from the config block.
Callers only need the prompt string — the marker and library version are wire details.
Public code should talk about OpenUI Cloud, not backend service names.
Self-hosted prompts already have preamble and additionalRules; extra prose after the config block is Cloud-specific.
Updated README to clarify usage of OpenUI Cloud and deprecated prompt generation method.
Callers bring a library, they do not register a custom one.
abhithesys
approved these changes
Sep 2, 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
generateSystemPrompt({ cloud: true })in lang-core now emits Cloud's config sentinel instead of a locally generated prompt.{ chatLibrary, systemPromptOptions }; docs updated to match.Test plan
cd packages/lang-core && pnpm test(prompt tests)generateSystemPrompt({ cloud: true })starts with]]>openui:configpromptOptionsonly sends preamble / examples / additionalRules