mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
2d78a0f409
The headless-simple demo was refactored to a deliberately minimal
"two hooks, one shadcn shell" template — text-in/text-out only, no
gen-UI. The D5 type literal `gen-ui-headless` no longer described
what the probe tests, and the old probe (Profile-card useComponent
+ continent fallback) was asserting against UI that no longer exists.
Three coordinated changes:
1. Rename `gen-ui-headless` D5FeatureType to `headless-simple` so the
slug matches the demo. Updated d5-registry, REGISTRY_TO_D5,
CATALOG_TO_D5_KEY (dashboard), and dependent tests/comments.
`headless-complete` keeps its existing literal because that demo
still drives the full gen-UI surface.
2. Replace d5-gen-ui-headless.{ts,test.ts,fixture} with
d5-headless-simple.ts + headless-simple.json fixture. New probe
clicks the "Say hello in one short sentence." chip and asserts the
`[data-testid="headless-message-assistant"]` bubble mounts with
non-empty content.
3. Restore `data-message-role` attributes on the headless-simple
UserBubble + AssistantBubble. The runner's chat-input cascade
documents these as the headless-template contract; the refactor
dropped them, breaking the runner's settle plateau detection.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
14 lines
513 B
JSON
14 lines
513 B
JSON
{
|
|
"_comment": "D5 fixture for /demos/headless-simple. Single chip prompt round-trips plain text (the simple template intentionally has no tool calls or gen-UI). The chip's literal label (`Say hello in one short sentence.`) IS the userMessage that aimock matches on — see d5-headless-simple.ts:SAMPLE_CHIP_LABEL.",
|
|
"fixtures": [
|
|
{
|
|
"match": {
|
|
"userMessage": "Say hello in one short sentence."
|
|
},
|
|
"response": {
|
|
"content": "Hi there — happy to help."
|
|
}
|
|
}
|
|
]
|
|
}
|