The server-local error was a field-for-field clone of the contract AgentSessionScanError, so the ws.ts mapping was an identity re-tag; the service now fails with the contract error directly. CLAUDE_CONFIG_DIR reads through the injectable HostProcessEnvironment reference. Co-Authored-By: Claude Fable 5 <[email protected]>