Sync on Windows retries forever on a file name with a control character (tab, U+0001) instead of skipping it as an illegal name

Steps to reproduce

  1. On Linux or macOS, in a vault connected to Sync, create a note whose name contains a control character, e.g. a tab: printf 'x\n' > $'a\tb.md' (U+0001 behaves the same). Line breaks in names from the iOS Share menu are another way to get one (t/113826).
  2. Let Sync upload it.
  3. Sync the vault on Windows.

Did you follow the troubleshooting guide? [Y/N]

Y. Fresh remote vault, no plugins.

Expected result

The file is skipped like other names Windows cannot store, with Ignoring remote file name with illegal characters / “Unable to download file with illegal name”, and the status returns to synced.

Actual result

Desktop: the name passes the illegal-name check. The download fails, and is retried every 10 to 30 seconds for as long as the app runs. The status icon stays red:

Downloading file | a	b.md
ENOENT: no such file or directory, open 'C:\...\vault\a	b.md'
Downloading file | a	b.md
ENOENT: no such file or directory, open 'C:\...\vault\a	b.md'
...

Other files still sync, so it is easy to miss. But the vault never reaches “fully synced” again, and the log fills with the same error.

The official headless client (obsidian-headless 0.0.14) on Windows is worse. It dies on the unhandled ENOENT, so every file queued after the bad one never downloads. On a new device I got 1 of 29 files, and every later ob sync crashed at the same file until the note was deleted on the other device.

Environment

  • Obsidian desktop 1.15.0 (installer 1.14.4), Windows 11; obsidian-headless 0.0.14 on Windows, Node 26.
  • Source device: obsidian-headless 0.0.14 on Ubuntu (ext4).
SYSTEM INFO:
	Obsidian version: 1.15.0
	Installer version: 1.14.4
	Operating system: Windows 11 Pro 10.0.26300
	Login status: logged in
	Insider build toggle: on
	Restricted mode: on

Additional information

Windows refuses the characters U+0000 to U+001F in names. They could join the Windows illegal-name set (* " \ / < > : | ?, reserved device names, trailing dot or space), which would give them the documented skip message.

Related, in the Bug graveyard: t/82282 shows the same endless retry for a name the receiving device cannot create.