Quality regression: generated visualizations are subpar and broken
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- three.js, typescript
- 领域
- ai, data-visualization
调研方向
Start by reviewing the agent system prompt, the widget renderer import map, and the LangGraph/CopilotKit setup around langchain_openai.ChatOpenAI. Compare the attached .chalk HTML outputs across models and broader visualization prompts, then determine whether prompt guidance, few-shot examples, or model changes address the regression. Done means the cause is identified and a reproducible quality improvement is demonstrated.
由索引模型根据 Issue 内容生成。
描述
Problem
The quality of generated visualizations from the deployed agent has degraded. The same prompt ("sphere icosahedron morph") produces broken or low-quality outputs across multiple attempts.
Evidence
Two downloaded outputs from the same prompt attached as .html files in .chalk/:
Attempt 1 — CSS 3D divs (sphere-icosahedron-morph (1).html)
- Uses 20
<div>elements with CSStransform-style: preserve-3dandclip-pathtransitions - No WebGL / Three.js despite it being available via the import map
- Hover interaction conflicts with the CSS spin animation (
style.animation = 'none'vs CSSanimation: spin 10s) - The morph is cosmetic — just toggling
border-radius: 50%↔clip-path: polygon()on flat divs - Faces positioned via manual JS math that approximates 3D but doesn't actually render proper geometry
Attempt 2 — Canvas 2D fake 3D (sphere-icosahedron-morph.html)
- Uses
canvas.getContext('2d')instead of WebGL - Sphere is just a radial gradient circle, not actual geometry
- Icosahedron faces are projected triangles drawn with
ctx.moveTo/lineTo— no real lighting - Uses
color-mix()CSS which has mixed browser support - The "morph" is interpolating between a gradient blob and wireframe triangles — visually unconvincing
What a good output would look like
- Use Three.js (available in the import map at
https://esm.sh/three) - Proper
IcosahedronGeometrywithMeshStandardMaterialor custom shaders - Real WebGL lighting and smooth vertex-level morphing between sphere and icosahedron
- Orbit controls or smooth auto-rotation
Possible causes
- Model regression — GPT-5.4 (
gpt-5.4-2026-03-05) may be producing lower-quality code for complex 3D visualizations compared to earlier versions - System prompt lacks quality guidance — The current prompt mentions
widgetRenderercapabilities but doesn't guide the model toward using Three.js/WebGL for 3D content, or set quality expectations for interactive visualizations - No few-shot examples — The agent has no reference for what "good" output looks like, so it falls back to simpler CSS/Canvas approaches
Suggested investigation
- Compare output quality between GPT-5.4 and other models (e.g. Claude) for the same prompts
- Add quality guidance to the system prompt (e.g. "For 3D visualizations, use Three.js from the import map")
- Consider adding few-shot examples of high-quality widget HTML in the agent skills
- Test a broader set of prompts to determine if regression is model-wide or specific to 3D content
Environment
- Model:
gpt-5.4-2026-03-05vialangchain_openai.ChatOpenAI - Agent: LangGraph with CopilotKit middleware
- Widget renderer: sandboxed iframe with import map (Three.js, GSAP, D3, Chart.js available)
- 主要语言
- TypeScript
- 星标
- 1.6k
- 派生
- 202
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CopilotKit/OpenGenerativeUI 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 4/5 3-5 天 新手友好度 48/100
CopilotKit/OpenGenerativeUI#87 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 45/100
查看 CopilotKit/OpenGenerativeUI 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
bug v2
难度 2/5 1-3 小时 新手友好度 75/100
modelcontextprotocol/inspector#2458 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
难度 2/5 1-3 小时 新手友好度 70/100
carbon-design-system/ibm-products#9907 ·