Skip to content

feat: agent system optimization and enhancement#185

Merged
csunny merged 24 commits intomainfrom
feature/optimze-032801
Mar 30, 2026
Merged

feat: agent system optimization and enhancement#185
csunny merged 24 commits intomainfrom
feature/optimze-032801

Conversation

@yhjun1026
Copy link
Copy Markdown
Collaborator

Summary

This PR includes comprehensive optimizations and enhancements to the agent system, visualization push system, and file handling capabilities.

Key Changes

Agent System Optimization

  • Implemented agent alias system for better agent management
  • Enhanced agent initialization and configuration handling
  • Improved agent memory management and conversation history
  • Added vis_push_manager and vis_push_hooks for real-time visualization updates

File Upload & Preview

  • Added multi-file upload support with drag-and-drop
  • Implemented image preview functionality
  • Added retry mechanism for failed uploads
  • Enhanced file dispatch system

Authorization System

  • New authorization middleware for tool execution
  • Permission management and risk assessment
  • Authorization guide documentation

Frontend Improvements

  • Optimized chat interface with unified input component
  • Added system events visualization components
  • Enhanced configuration settings page
  • Improved agent skills management interface

Infrastructure

  • Added input queue manager for handling user inputs
  • Improved multimodal support
  • Enhanced error handling for LLM responses
  • Better file storage integration with sandbox

Code Cleanup

  • Removed deprecated derisk/context and derisk/core modules
  • Migrated functionality to new architecture
  • Added comprehensive documentation

Files Changed

  • 483 files changed
  • 20,983 insertions(+)
  • 16,889 deletions(-)

Testing

  • Manual testing performed on agent interactions
  • File upload and preview verified
  • Authorization flow tested
  • Frontend UI validation completed

- 合并 main 分支最新代码到当前分支
- 保留了两边的功能修改:
  - manage.py: 添加 ignore_missing 参数处理找不到的资源类型
  - work_log.py: 合并了两边的初始化参数和配置属性
  - config.tsx: 合并了两边的新增组件导入
- static 目录使用 main 分支版本
- uv.lock 使用 main 分支版本
- 重构文件上传显示设计,修复与对话框边界重合问题
- 支持多文件拖拽、粘贴和点击上传
- 区分文件类型显示不同颜色主题图标
- 统一使用60x60正方形卡片风格
- 上传过程显示加载遮罩
- 后端返回preview_url支持图片预览
- agent_chat.py: 错误消息添加 [ERROR] 标记
- api_v1.py: API层错误返回使用SSE格式和 [ERROR] 标记

前端通过 [ERROR] 标记识别错误并显示给用户
@github-actions github-actions bot added the enhancement New feature or request label Mar 30, 2026
Copy link
Copy Markdown
Contributor

@csunny csunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

@csunny csunny changed the title feat: Agent system optimization and enhancement feat: agent system optimization and enhancement Mar 30, 2026
@csunny csunny merged commit 8eba442 into main Mar 30, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants