fix: clear error banner when switching views#583
Merged
yaozheng-fang merged 2 commits intoJun 5, 2026
Conversation
yaozheng-fang
approved these changes
Jun 5, 2026
Error messages were persisting across view changes (e.g., switching
to Skill Center after a 403 error). Added setError("") to all view
switch callbacks (onSearch, onQuickCreate, onSkillCenter, onAddAgent,
onPickSession) to clear error state on navigation.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Rebuild frontend to resolve build artifact conflicts after rebasing onto upstream/main (commit 15c2b89). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
d959a77 to
3817439
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复内容
修复错误提示框在切换视图后仍然显示的问题。
问题描述
当某个操作失败(如创建会话返回 403)时,页面顶部的错误提示框会持续显示,即使用户切换到其他视图(技能中心、智能搜索等)也不消失。
修复方案
在所有视图切换回调函数中添加
setError(""),确保切换视图时清理错误状态。修改文件
frontend/src/App.tsx- 5 处视图切换回调添加错误清理veadk/webui/- 前端构建产物更新测试验证