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
🤖 Use runtime.normalizePath() for DRY in validateNoRedundantPrefix
Instead of manually normalizing paths with string operations, leverage the
runtime's existing normalizePath() method for consistent path handling.
This reduces duplication and ensures we handle paths the same way the
runtime does.
Changes:
- Use runtime.normalizePath(".", cwd) to normalize the working directory
- Keeps manual trailing slash cleanup for absolute paths (can't use
normalizePath directly since it's designed for relative path resolution)
- Update documentation to reflect use of runtime method
- Remove underscore prefix from runtime param (now used)
_Generated with `cmux`_
error: `Redundant path prefix detected. The path '${filePath}' contains the workspace directory. Please use relative paths to save tokens: '${relativePath}'`,
0 commit comments