Skip to content

fix(skills): guard skill cache with RWMutex for parallel tool calls (#53)#54

Merged
vertefra merged 1 commit into
mainfrom
fix/issue-53-skills-concurrent-map-writes
May 25, 2026
Merged

fix(skills): guard skill cache with RWMutex for parallel tool calls (#53)#54
vertefra merged 1 commit into
mainfrom
fix/issue-53-skills-concurrent-map-writes

Conversation

@vertefra

Copy link
Copy Markdown
Contributor

Summary

  • Add sync.RWMutex around all reads/writes of the skills plugin cache so parallel tool calls no longer crash with fatal error: concurrent map writes
  • Add concurrency test (TestGetSkill_ConcurrentNoRace) verified with -race
  • Bump version to 0.8.1 and update CHANGELOG.md

Fixes #53

Test plan

  • go test -race ./src/plugins/skills/...
  • Merge to main, then tag v0.8.1 to trigger release workflow

Made with Cursor

Parallel skill tool calls could crash the process with concurrent map
writes. Bump version to 0.8.1.

Fixes #53

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown

Version Check Results

✅ Version format is valid: 0.8.1

The VERSION file has been updated. Please ensure this matches the intended release version.

@vertefra vertefra merged commit 4c3119e into main May 25, 2026
4 checks passed
@vertefra vertefra deleted the fix/issue-53-skills-concurrent-map-writes branch May 25, 2026 18:40
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.

SkillsPlugin: concurrent map writes when parallel tool calls invoke loadSkills()

1 participant