Skip to content

Fix symlinked skills/roles skipped during workspace staging#4

Merged
juhgiyo merged 2 commits intomainfrom
claude/fix-symlink-staging
Mar 9, 2026
Merged

Fix symlinked skills/roles skipped during workspace staging#4
juhgiyo merged 2 commits intomainfrom
claude/fix-symlink-staging

Conversation

@juhgiyo
Copy link
Copy Markdown
Contributor

@juhgiyo juhgiyo commented Mar 9, 2026

Summary

  • stage_role() creates symlinks to role/skill directories, but Go's os.ReadDir IsDir() returns false for symlinks (lstat semantics)
  • Wrapper silently skipped all staged roles/skills — agent workspace ended up empty
  • Added fs.ModeSymlink check alongside IsDir() for both skills and roles loops

Test plan

  • go build compiles
  • go test ./... passes

🤖 Generated with Claude Code

juhgiyo and others added 2 commits March 8, 2026 17:33
Go's os.ReadDir returns DirEntry where IsDir() returns false for
symlinks (lstat semantics). Since stage_role() creates symlinks to
role/skill directories, the wrapper was silently skipping all staged
entries. Add fs.ModeSymlink check to allow symlinked directories
through.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@juhgiyo juhgiyo merged commit 681c188 into main Mar 9, 2026
1 check passed
@juhgiyo juhgiyo deleted the claude/fix-symlink-staging branch March 9, 2026 00:34
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