Repository navigation
Draw a component when it makes the answer clearer, text otherwise - #2955
Merged
Merged
Conversation
The standing rule on generative UI swung from "a component whenever an answer has structure", with a case per kind of answer, to "Markdown by default, a component only when asked or materially better". It is now the principle alone, the judgement Claude's visuals and ChatGPT's canvas leave to the model: draw a component or an interface when it makes the answer clearer or more useful than text, without waiting to be asked, and answer in text otherwise. No list of cases; what each component is for stays on its own tool. Every Bot gets it the same way: the answer-format section of the working rules (built-in Bots and a connected Bot's standing role), the delegating rule, a task's brief, and the native A2UI guidance's opening line, which dropped its own list of cases. A thread opened under the previous brief frame still reads back as its brief.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 4, 2026 19:17
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Dec 4, 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.
Bots draw a component when it makes the answer clearer or more useful, and answer in text otherwise. The standing guidance now says that principle and nothing more: no list of cases.
What it said before.
What it says now (the answer-format section every Bot gets):
What each component is for, and is not for (a notice is for an alert, a checklist for work somebody ticks off), was already said on the component's own tool, and stays there.
Every Bot, the same way. The same principle, worded the same, wherever the rule was said:
Nothing asks which Bot a run belongs to. The prompt is about 1.1 KB shorter.
How the leaders decide. Both leave it to the model's judgement of whether the richer surface helps, rather than a list of triggers:
Real model, before and after. GPT-5.6 Terra (the built-in default), OpenAI's Responses API, the working rules as the instructions and the gallery's 12 tools offered; three runs of each prompt, 36 in all. A run counts as a component when its first step calls a gallery tool.
Tests.
shared/bot-prompt.test.ts, "when a Bot draws a component": the principle is in the answer-format section once, straight after the sources rule, for a built-in Bot and for a connected Bot's standing role; it names no kind of answer, component, tool or example; and it is two short paragraphs. Fails on main (2 of its tests), passes here.shared/tests/orchestration.test.ts: a thread opened under the previous brief frame still reads back as its brief, and a new frame lists no kinds of answer. Fails on main, passes here.app/tests/checklist-card.test.tsxandshared/tests/artifacts-prompt.test.tsnow pin what a checklist is for on the checklist's own tool, and that the rule says nothing about Markdown.agent-claude-sdk/tests/fixtures/server-instructions.json) carries the new section, andtest_openbot_instructions.pypasses. The mobile copy of the shared code is regenerated.Changelog
Answers.