qwen_agent/routes
朱潮 8a85e9025e fix(sse): properly handle MCP tool errors and send error responses to client
- Enhance exception handling in agent_task() to capture and send structured error messages via SSE stream
- Add [DONE] marker to outer exception handler to ensure proper stream termination
- Improve MCP tool loading error handling in init_agent() to prevent cascading failures
- Add detailed error logging with traceback for debugging

Fixes RemoteProtocolError that occurred when MCP tool calls failed,
which previously caused incomplete chunked read errors and connection drops.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-07 19:24:28 +08:00
..
__init__.py update fastapi 2025-11-25 22:34:44 +08:00
chat.py fix(sse): properly handle MCP tool errors and send error responses to client 2026-01-07 19:24:28 +08:00
file_manager.py fix(file-manager): fix create-folder API to accept JSON request body 2025-12-31 16:52:07 +08:00
files.py feat(skills): add skill file upload API endpoint 2026-01-07 14:47:25 +08:00
projects.py 日志优化 2025-11-27 21:50:03 +08:00
system.py 删除agent manager 2025-12-17 20:27:06 +08:00