a2ui-project / a2ui-project/a2ui
[renderers] Ensure "Graceful Degradation" works.
- 主要语言
- TypeScript
- 星标
- 16.4k
- 派生
- 1.3k
- 平均合并
- 3 天 15 小时
- 30 天内合并 PR
- 134
描述
Ensure the current renderers support [graceful degradation](https://a2ui.org/concepts/catalogs/#graceful-degradation) of unknown catalog components:
> If an Agent uses a new component/property on an older client, the client MUST handle it gracefully (e.g., ignoring it or rendering a text fallback or a "Not Supported" placeholder) rather than crashing. The client may also report a validation error back to the agent, allowing the agent to self-correct and downgrade the UI automatically.
We need to ensure there's sufficient **testing** for this feature; and that our renderers don't crash when receiving an unexpected widget, AND report an error back to the agent to let it know that something's not rendering correctly.
贡献指南
调研方向
查看代码库中的渲染器,了解它们如何处理未知的目录组件。编写测试来模拟接收到意外 widget 的情况,并验证渲染器不会崩溃,能够优雅地降级(例如显示 fallback),并向 agent 报告错误。检查现有的渲染器测试套件,看看是否已有类似测试,以及应该在哪里添加新测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- frontend, testing
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100