You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
SDK ProtocolArea: what it touches
New FeaturesKind: in v2.1.219,
New FeaturesSection of the release
What
The SDK control request for registering a repo root now accepts more legitimate targets and fails loudly on cases it previously handled silently or not at all.
Details
Previously the target only had to be a subdirectory of cwd; it now also accepts subdirectories of directories registered at launch via --add-dir.
Rejects cwd itself with a dedicated message, rejects paths that are not directories, and rejects an already-registered directory instead of silently re-running registration.
Rejection message names both accepted roots: "is not a subdirectory of cwd or of a launch-time --add-dir root".
The tool description now states that the registration pipeline and DirectoryAdded hooks do not re-run on a duplicate.
Evidence
is not a subdirectory of cwd or of a launch-time --add-dir root
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…