qwen_agent/routes
朱潮 b3303ef8e6 refactor(sse): simplify error handling and remove __debug__ security issue
- Remove __debug__ conditional that exposed tracebacks in production
- Simplify error response structure to {"error": str(e)}
- Remove redundant exception handling in init_agent()
- Remove unnecessary traceback logging
- Reduce code from ~30 lines to ~10 lines

Fixes security vulnerability where __debug__ is always True
unless Python runs with -O flag, causing full tracebacks
to be sent to clients in production.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-07 20:24:30 +08:00
..
__init__.py update fastapi 2025-11-25 22:34:44 +08:00
chat.py refactor(sse): simplify error handling and remove __debug__ security issue 2026-01-07 20:24:30 +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 management API module 2026-01-07 19:45:04 +08:00
projects.py 日志优化 2025-11-27 21:50:03 +08:00
skill_manager.py feat(skills): add skill management API module 2026-01-07 19:45:04 +08:00
system.py 删除agent manager 2025-12-17 20:27:06 +08:00