-
Notifications
You must be signed in to change notification settings - Fork 988
Closed
Labels
v4#4488#4488
Description
Environment
- Operating System: Darwin
- Node Version: v23.11.0
- Nuxt Version: 4.0.0
- CLI Version: 3.27.0
- Nitro Version: 2.12.0
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, devtools, modules, css, colorMode, fonts, icon
- Runtime Modules: @nuxt/[email protected], @nuxt/[email protected], @vueuse/[email protected]
- Build Modules: -
Is this bug related to Nuxt or Vue?
Nuxt
Version
3.1.3
Reproduction
Description
Description
The UChatMessage component has two issues with the parts prop:
- The parts prop appears to be completely non-functional - it doesn't render any parts regardless of configuration
- The content prop is required even when using parts, but providing both causes conflicts
Expected Behavior
- When parts prop is provided, it should render structured message content (text, reasoning, tool invocations, etc.) as documented
- The content prop should be optional when parts is provided, or at minimum not interfere with parts rendering
Actual Behavior
- The parts prop doesn't render anything - no text parts, reasoning parts, or tool invocation parts appear
- Removing the content prop causes Vue warnings about missing required prop and the page doesn't render at all
- When both content and parts are provided, only the content is shown
Reproduction Steps
- Test parts alone (breaks completely):
- Result: Vue warning "Missing required prop: 'content'" and nothing renders
- Test parts with content (parts ignored):
- Result: Only "Main message" displays, reasoning part is completely ignored
- Test different part types:
- Result: Only "fallback" content shows, no parts render
Additional context
No response