mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-17 10:12:02 -05:00
Previously, write_file() generated a UUID for storage paths and let Prisma auto-generate a separate UUID for the database record. This caused download URLs to return 404 because the storage layer extracted the wrong ID. Now the same UUID is used for both, fixing the download URL issue. Also consolidates MAX_FILE_SIZE_BYTES into Config.max_file_size_mb setting for consistent configuration across file.py, workspace.py, and workspace_tools.py. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>