- 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>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| agent_config.py | ||
| agent_memory_cache.py | ||
| checkpoint_manager.py | ||
| checkpoint_utils.py | ||
| config_cache.py | ||
| deep_assistant.py | ||
| guideline_middleware.py | ||
| logging_handler.py | ||
| prompt_loader.py | ||
| tool_output_length_middleware.py | ||
| tool_use_cleanup_middleware.py | ||