Commit Graph

2 Commits

Author SHA1 Message Date
Devin AI
3e914133bd Fix lint issues: remove unused imports from test file
- Remove unused pytest import
- Remove unused patch import
- Remove unused MAX_FILE_NAME_LENGTH import
- All ruff checks now pass locally

Co-Authored-By: João <joao@crewai.com>
2025-07-29 23:03:55 +00:00
Devin AI
f0949f90dd Fix Windows path length issue in memory storage
- Replace agent.role with agent.id (UUID) in RAGStorage directory naming
- UUIDs are guaranteed short (36 chars) and filesystem-safe
- Remove unused _sanitize_role method since UUIDs don't need sanitization
- Add comprehensive tests for Windows path length scenarios
- Add test case for long agent roles in existing memory tests
- Maintains backward compatibility while fixing Windows 260-char limit

Fixes #3236

Co-Authored-By: João <joao@crewai.com>
2025-07-29 23:00:35 +00:00