Skip to content

fix: gitlab subgroup URLs, universal-only global symlinks, and symlinked agent dirs#301

Merged
quuu merged 1 commit intomainfrom
fix-some-issues
Feb 6, 2026
Merged

fix: gitlab subgroup URLs, universal-only global symlinks, and symlinked agent dirs#301
quuu merged 1 commit intomainfrom
fix-some-issues

Conversation

@quuu
Copy link
Collaborator

@quuu quuu commented Feb 6, 2026

Summary

Fixes three bugs:

1. GitLab URLs with nested subgroups fail to clone
src/source-parser.ts:212 — The regex only captured two path segments (owner/repo), so https://gitlab.com/coresofthq/ai/agent-skills was parsed as https://gitlab.com/coresofthq/ai.git, dropping agent-skills. Fixed the regex to capture the full path, supporting arbitrarily deep GitLab subgroups.

2. Universal-only global install creates duplicate symlinks (#294)
src/installer.ts (all 4 install functions) — When only universal agents were selected for a global install, the installer still created symlinks to agent-specific global dirs (e.g., ~/.copilot/skills), causing skills to appear twice in GitHub Copilot. Fixed by skipping the agent-specific symlink for universal agents on global installs, since the skill is already in the canonical ~/.agents/skills.

3. Installation fails when ~/.claude/skills is a symlink (#293)
src/installer.ts (createSymlink) — When ~/.claude/skills was symlinked to ~/.agents/skills, the installer computed relative paths from the symlink path rather than the real filesystem path, producing broken symlinks like ../../.agents/skills. Fixed by resolving symlinks in parent directories via fs.realpath before comparing paths and computing relative targets.

…ked agent dirs

- Fix GitLab URL parsing to support nested subgroups (e.g. gitlab.com/group/subgroup/repo)
- Skip agent-specific symlinks for universal agents on global install to avoid duplicates
- Resolve parent symlinks before computing relative paths to prevent broken symlinks
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