claude-code - 💡(How to fix) Fix [BUG] Cowork: project creation fails with generic error when name contains special characters (e.g. `|`)

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…

Error Message

When creating a new project in Cowork, using certain special characters in the project name (e.g. pipe |) causes creation to fail with a generic "Failed to create project. You can try again" message. The error gives no indication that the problem is an invalid character in the name — users are left guessing whether it's a server issue, a network issue, or their own fault. Expected: Either (a) accept the character, or (b) show a specific validation error like "Project names cannot contain: | / \ : * ? " < >" before submission — or reject the character inline as the user types.

Error Messages/Logs

Observed: Generic "Failed to create project. You can try again" toast. Project is not created. Retrying with the same name reproduces the error indefinitely. Observed: Generic "Failed to create project. You can try again" toast. Project is not created. Retrying with the same name reproduces the error indefinitely. Expected: Either (a) accept the character, or (b) show a specific validation error like "Project names cannot contain: | / \ : * ? " < >" before submission — or reject the character inline as the user types. When creating a new project in Cowork, using certain special characters in the project name (e.g. pipe |) causes creation to fail with a generic "Failed to create project. You can try again" message. The error gives no indication that the problem is an invalid character in the name — users are left guessing whether it's a server issue, a network issue, or their own fault. Observed: Generic "Failed to create project. You can try again" toast. Project is not created. Retrying with the same name reproduces the error indefinitely. Expected: Either (a) accept the character, or (b) show a specific validation error like "Project names cannot contain: | / \ : * ? " < >" before submission — or reject the character inline as the user types. The error message suggests a transient issue ("you can try again"), so users retry with the same name instead of editing it. I only found the cause by trial and error. A specific validation message would save real time and reduce support load.

  • Show the specific invalid character(s) in the error
  • Or: sanitize the name automatically and warn the user

Root Cause

The error message suggests a transient issue ("you can try again"), so users retry with the same name instead of editing it. I only found the cause by trial and error. A specific validation message would save real time and reduce support load.

Code Example

**Observed:** Generic "Failed to create project. You can try again" toast. Project is not created. Retrying with the same name reproduces the error indefinitely.
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?

When creating a new project in Cowork, using certain special characters in the project name (e.g. pipe |) causes creation to fail with a generic "Failed to create project. You can try again" message. The error gives no indication that the problem is an invalid character in the name — users are left guessing whether it's a server issue, a network issue, or their own fault.

What Should Happen?

Expected: Either (a) accept the character, or (b) show a specific validation error like "Project names cannot contain: | / \ : * ? " < >" before submission — or reject the character inline as the user types.

Error Messages/Logs

**Observed:** Generic "Failed to create project. You can try again" toast. Project is not created. Retrying with the same name reproduces the error indefinitely.

Steps to Reproduce

Steps to Reproduce

  1. Open Claude Desktop → Cowork → Projects
  2. Click "Create new project"
  3. Enter a name containing a pipe character, e.g. Test | Project
  4. Submit

Observed: Generic "Failed to create project. You can try again" toast. Project is not created. Retrying with the same name reproduces the error indefinitely.

Expected: Either (a) accept the character, or (b) show a specific validation error like "Project names cannot contain: | / \ : * ? " < >" before submission — or reject the character inline as the user types.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Version 1.3109.0 (35cbf6) [Claude-desktop client]

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

What's Wrong?

When creating a new project in Cowork, using certain special characters in the project name (e.g. pipe |) causes creation to fail with a generic "Failed to create project. You can try again" message. The error gives no indication that the problem is an invalid character in the name — users are left guessing whether it's a server issue, a network issue, or their own fault.

Steps to Reproduce

  1. Open Claude Desktop → Cowork → Projects
  2. Click "Create new project"
  3. Enter a name containing a pipe character, e.g. Test | Project
  4. Submit

Observed: Generic "Failed to create project. You can try again" toast. Project is not created. Retrying with the same name reproduces the error indefinitely.

Expected: Either (a) accept the character, or (b) show a specific validation error like "Project names cannot contain: | / \ : * ? " < >" before submission — or reject the character inline as the user types.

Environment

  • Claude Desktop version: [fill in — Settings → About]
  • OS: [fill in — e.g. Windows 11 / macOS 14]
  • Plan: [Pro / Max / Team]

Why this matters

The error message suggests a transient issue ("you can try again"), so users retry with the same name instead of editing it. I only found the cause by trial and error. A specific validation message would save real time and reduce support load.

Suggested fix

  • Validate project name client-side against the allowed character set
  • Show the specific invalid character(s) in the error
  • Or: sanitize the name automatically and warn the user

extent analysis

TL;DR

Validate project names client-side to prevent creation failures due to special characters.

Guidance

  • Validate project names against a set of allowed characters before submission to prevent server-side errors.
  • Display specific validation errors to users, such as "Project names cannot contain: | / \ : * ? " < >", to improve user experience.
  • Consider sanitizing project names automatically and warning users of changes made to their input.
  • Review the Anthropic API documentation to ensure compliance with project name requirements.

Example

const invalidChars = /[|\/\\:*?"<>]/;
if (invalidChars.test(projectName)) {
  // Display error message to user
  console.error("Project names cannot contain: | / \\ : * ? \" < >");
} else {
  // Proceed with project creation
}

Notes

The suggested fix assumes that the Anthropic API has specific requirements for project names. It's essential to review the API documentation to ensure compliance.

Recommendation

Apply a client-side validation workaround to improve user experience and reduce support load, as the root cause of the issue seems to be related to invalid characters in project names.

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