Group of 4 Nothing to try yet
No documentation found
A host like Claude Desktop can tell the CLI a directory's trust dialog was already shown, via a new workspaceTrust field on initialize
What
- The SDK/CLI
initializerequest now accepts an optionalworkspaceTrustobject ({accepted, directory}) so a host application (for example, Claude Desktop's Code tab over SSH/WSL) can attest that it already showed its own trust dialog for the working directory, instead of the CLI needing to show its own. - A new handler validates that the directory is an absolute path, resolves to the same trust key as the session's working directory, and isn't a screened/untrusted network path, then records the directory as trusted the same way the interactive terminal dialog does, and re-applies project settings afterward. The outcome is reported via telemetry.
- The
initializeresponse gains aworkspace_trust_recordedboolean (marked internal) reporting whether the attestation was actually persisted as trust — it can befalsefor reasons like an obfuscated/untrusted path, a wrong key, a write failure, or a home-directory session-only trust. - The same
workspace_trust_recordedfield is included in the system-init/hello JSON payload sent out, alongside existing fields likecurrent_permission_modeandhooks_applied.
Why This lets a host that already handles its own trust UI (like Claude Desktop) skip showing a redundant trust prompt inside the CLI, while still letting the CLI confirm and record whether that trust was actually saved.
Names in the bundleworkspaceTrust