Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.219 ·

register_repo_root accepts launch-time roots and rejects duplicates

Registering a repo root now accepts launch-time --add-dir roots and clearly rejects duplicates or bad paths.

You'll notice New Features
JSON All of v2.1.219
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.

Read from
Names in the bundle--add-dirregister_repo_root
How sure we are
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…

See this entry in the whole of v2.1.219 →

Feedback