Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Fixes #1063

Project paths with trailing slashes (e.g. /home/user/project/) caused mangled workspace names because basename('/path/') returns an empty string.

The fix strips trailing slashes in validateProjectPath(), which is the central validation point for all project paths.


Generated with mux

Fixes #1063

Project paths with trailing slashes (e.g. '/home/user/project/')
caused mangled workspace names because basename('/path/') returns
an empty string.

Changes:
- validateProjectPath() now strips trailing slashes from input paths
- loadConfigOrDefault() migrates existing configs by normalizing paths
- Added unit tests for both fixes
- Added e2e test to verify project names display correctly
@ammario ammario merged commit 48ca952 into main Dec 10, 2025
33 of 35 checks passed
@ammario ammario deleted the slash-fix-vzm6 branch December 10, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trailing slash on project path leads to mangled name

2 participants