You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix code review issues: path validation, dead state, code quality
Security:
- Validate file_path in load_csv_data against uploaded_files whitelist
using os.path.realpath to prevent path traversal
- Thread uploaded_files from agent → execute_tool → handler
Code quality:
- Move `import os` to top of _data_inspector.py
- Replace `assert el.path` with guard clause in app.py
- Derive CSV kwarg keys from datafeeds.default_kwargs (DRY)
- Use tmp_path fixture instead of hardcoded /tmp path in test
Tests:
- Add test_load_csv_rejects_non_uploaded_path
- Add test_load_csv_allows_uploaded_path
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments