[BUG] Desktop: start_session refuses a cwd with an emoji variation selector (U+FE0F), even the path list_start_targets returns
What's wrong
In the desktop app's Code tab, mcp__ccd_session__start_session refuses a cwd whose folder name contains an emoji with a variation selector, such as 🕊️, ⭐️ or 🛎️:
cwd contains control or invisible characters; pass the plain name or path.
The "invisible character" is U+FE0F (VARIATION SELECTOR-16), which is part of the emoji. It can't be dropped from the path, because without it the folder doesn't exist.
The same path:
- is returned verbatim by
list_start_targetsas one of my recent folders (I copied it from there byte for byte and the call was still refused) - already works as the folder of other sessions, including the session making the call (its own folder starts with 🛎️, which also has U+FE0F)
Steps to reproduce
- Make a folder named
🕊️ Test, with the variation selector (bytesf0 9f 95 8a ef b8 8f). - From a Code-tab session, call
start_sessionwithinitiation: "user_asked"andcwdset to that folder's absolute path. - Allow the "Allow Claude to start the session?" dialog.
- The call fails with the error above.
Impact
Nine of my top-level project folders have U+FE0F in their names. Claude can't start a session in any of them directly. It has to start the session somewhere else and move it, or ask me to open it by hand.
Because the check runs after the approval dialog (#103832), every refused call still costs me a click. Today one session took three dialogs, two of them for calls that then failed on this check.
Expected
- Accept any
cwdthat exists and is a directory. If the point is to stop look-alike paths from fooling me in the dialog, show the escaped form of the path in the dialog instead of refusing it. - Validate the input before showing the approval dialog.
Environment
Claude desktop app 3.1623.0, macOS 27.0.1, Code tab, Bypass permissions mode.
Update: the workaround I mentioned above, starting the session somewhere else and moving it, doesn't work either.
change_directory accepts a U+FE0F path when it's called. It returns "Folder access granted … The session's working directory will move to this folder when the current turn ends." When the turn ends, the move is rejected. From ~/Library/Logs/Claude/main.log (folder name shortened):
[CCD] change_directory queued for local_<id>: …/🗣️ <folder>
[CCD] pending cwd apply for local_<id>: rejected (unsafe_path)
[CCD] pending cwd apply for local_<id> failed: The target path contains invisible or non-printing characters (control, formatting, zero-width, or non-standard space characters such as the narrow no-break space macOS puts in screenshot folder names), so it cannot safely cross the trust boundary. The path is deliberately not echoed back
I've seen this twice, on Oct 21 (🕊️) and Oct 23 (🗣️), most recently on desktop app 3.6556.2. The session stays in its old folder and I get a "Couldn't move the session to …" toast. The same night, a move into a folder whose name has no U+FE0F logged ok.
So Claude has no way to start a session in these nine folders or move one into them. Only I can, by opening the folder myself.
The error message names the narrow no-break space as an example, so the check seems aimed at look-alike characters. U+FE0F isn't one of those. It's part of standard emoji like 🕊️ and 🛎️, and macOS keeps it in the folder name whenever you type one of them. Treating it like U+202F blocks ordinary folders.