What probably matters to youSection of the release
What
The SDK register_repo_root request no longer requires the target to be a strict subdirectory of cwd, and now reports an already-registered directory as its own error instead of a subdirectory failure.
Details
the path is realpathed and confirmed to be a directory before anything else
accepted locations are directories under cwd or under any directory passed at launch via cliArg sources, that is --add-dir or the SDK additionalDirectories
registering a directory that is already a working directory fails with a dedicated error
on success, DirectoryAdded hooks are dispatched; hook failures are debug-logged and do not fail the request
the request schema description was rewritten to match
previously this threw register_repo_root: ... is not a subdirectory of cwd
Evidence
register_repo_root: directory is already a registered working directory
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded DirectoryAdded hook that fires after /add-dir or the SDK register_repo_root control request registers a new working directory…