claude-code - 💡(How to fix) Fix [BUG] Cowork Save Skill fails with INVALID_PATH when Mac username contains a space [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54882Fetched 2026-05-01 05:51:56
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Error Message

LocalFileAccessError: [INVALID_PATH] Failed to resolve path: /Users/davesfingerprint macbook/Library/Application Support/Claude/local-agent-mode-sessions/.../outputs/smart-sequence.skill

Code Example

LocalFileAccessError: [INVALID_PATH] Failed to resolve path: /Users/davesfingerprint macbook/Library/Application Support/Claude/local-agent-mode-sessions/.../outputs/smart-sequence.skill
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

App version: 1.5354.0 (9a9e3d) OS: macOS Bug: The Save Skill button in Cowork fails with the following error when the Mac username contains a space:

LocalFileAccessError: [INVALID_PATH] Failed to resolve path: /Users/davesfingerprint macbook/Library/Application Support/Claude/local-agent-mode-sessions/.../outputs/smart-sequence.skill

Cowork is constructing file paths internally that include the Mac username but is not escaping or quoting spaces, making the path unresolvable. This blocks the Save Skill flow entirely for any user whose Mac username contains a space.

Steps to reproduce:

  1. Use Cowork on a Mac where the username contains a space
  2. Generate a .skill file
  3. Click Save Skill on the file card
  4. Error appears immediately

What Should Happen?

Expected behavior: Skill saves successfully regardless of spaces in the username path.

Error Messages/Logs

LocalFileAccessError: [INVALID_PATH] Failed to resolve path: /Users/davesfingerprint macbook/Library/Application Support/Claude/local-agent-mode-sessions/.../outputs/smart-sequence.skill

Steps to Reproduce

  1. Use Cowork on a Mac where the username contains a space
  2. Generate a .skill file
  3. Click Save Skill on the file card
  4. Error appears immediately

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

1.5354.0 (9a9e3d)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can be fixed by properly escaping or quoting spaces in the Mac username when constructing file paths in Cowork.

Guidance

  • Verify that the error occurs only when the Mac username contains a space by testing with a username without spaces.
  • Check the Cowork code for the specific line where the file path is constructed and ensure that it handles spaces correctly, possibly by using a library function to create a valid path.
  • Consider using a temporary workaround, such as creating a symlink or alias for the user's directory with a space-free name, to allow saving skills while a permanent fix is developed.
  • Review previous versions of the code to identify when the regression occurred and what changes may have introduced the bug.

Example

No specific code example can be provided without access to the Cowork codebase, but the fix would involve modifying the file path construction to handle spaces, possibly using a function like path.join() or ensuring that the path is properly quoted.

Notes

The exact fix will depend on the specifics of the Cowork code and how it constructs file paths. This issue may not be limited to macOS, as other operating systems may also have similar issues with spaces in usernames.

Recommendation

Apply workaround: Until the root cause is identified and fixed, using a temporary workaround such as a symlink or alias for the user's directory can allow users with spaces in their Mac usernames to save skills.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Cowork Save Skill fails with INVALID_PATH when Mac username contains a space [1 participants]