Feat/merge layered error display#23
Conversation
Conflicts resolved: - .github/workflows/pr-agent.yml: use upstream (more complete CI config) - README.md: keep local (bilingual Chinese/English docs) - index.html: keep local (genni613 GitHub links) - ShellPlatform.kt: use upstream (heredoc parsing for security) - ShellPlatformTest.kt: use upstream (new heredoc tests)
- 新增 ErrorBanner 组件用于显示分层错误 - 添加 OkHttpSseClient 支持 SSE 错误流式传输 - 更新 BridgeHandler 和 useBridge 桥接错误数据 - 新增 bridge 类型定义 - 添加相关设计文档和规格说明
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
…error-display # Conflicts: # src/main/kotlin/com/github/codeplangui/BridgeHandler.kt
User description
概要
feat(webview): 实现分层错误显示功能
变更文件
测试计划
关联 Issue
Closes #
Checklist
feat:、fix:、docs:等),且 type 选择正确./gradlew test本地通过cd webview && npm run build无报错PR Type
Enhancement
Description
Implement layered error display with typed error classification (auth/quota/temp/generic)
Add OkHttpSseClient error classification for API error differentiation
Update BridgeHandler and frontend to support typed error with actionable buttons
Add ErrorBanner component with type-specific UI and action handling
Diagram Walkthrough
File Walkthrough
6 files
Update error handling to use typed ClassifiedErrorAdd ClassifiedError and error type classificationUpdate notifyError to include error type parameterSplit error state and add error action handlingRedesign ErrorBanner with typed error displayUpdate onError callback signature for type parameter1 files
Update tests for ClassifiedError return type3 files
Add error type to Bridge interface definitionsAdd comprehensive technical specification documentAdd problem brief for IDEA AI assistant plugin1 files
Update GitHub links to fork repository URL10 files