Skip to content

Comments

Strip query parameters from GitLab URLs to prevent Windows filename errors#59

Merged
alex-feel merged 1 commit intomainfrom
alex-feel-dev
Sep 5, 2025
Merged

Strip query parameters from GitLab URLs to prevent Windows filename errors#59
alex-feel merged 1 commit intomainfrom
alex-feel-dev

Conversation

@alex-feel
Copy link
Owner

GitLab URLs often include query parameters like ?ref_type=heads which are invalid characters in Windows filenames. This fix strips query parameters before extracting filenames in all download operations:

  • Resource downloads (agents, commands, output styles)
  • Hook file downloads
  • Hook command processing
  • System prompt downloads

Resolves [Errno 22] Invalid argument errors on Windows when downloading files from private GitLab repositories with query parameters.

…ame errors

GitLab URLs often include query parameters like ?ref_type=heads which
are invalid characters in Windows filenames. This fix strips query
parameters before extracting filenames in all download operations:
- Resource downloads (agents, commands, output styles)
- Hook file downloads
- Hook command processing
- System prompt downloads

Resolves [Errno 22] Invalid argument errors on Windows when downloading
files from private GitLab repositories with query parameters.
@alex-feel alex-feel enabled auto-merge September 5, 2025 11:24
@alex-feel alex-feel merged commit 66d4901 into main Sep 5, 2025
5 checks passed
@alex-feel alex-feel deleted the alex-feel-dev branch September 5, 2025 11:25
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.

1 participant