{"version":"2.1.248","anchor":"directory-and-working-directory-control-errors-are-redacted-","canonical_anchor":"directory-and-working-directory-control-errors-are-redacted-","heading":"Directory and working-directory control errors are redacted in some sessions","tier":"internal","area":"Remote Control","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/directory-and-working-directory-control-errors-are-redacted-","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Directory and working-directory control errors are redacted in some sessions\n\nSome sessions now get generic errors for add-directory and set-cwd instead of local paths.\n\n**What**\n\nFailures from the `add_directory` and `set_cwd` control requests now pass through a wrapper that substitutes a generic message when a session-level condition holds, so clients see less about local paths and error causes. A `set_cwd` rejection can be replaced wholesale, and a successful staged `add_directory` can return an empty payload rather than the staged path.\n\n**Details**\n\n- Both paths also gained a stage-logging call on failure.\n- The condition that triggers redaction is a predicate on the session; which sessions satisfy it is not decided at this call site.\n\n**Evidence**\n\n`set_cwd: request rejected`\n\n- Area: Remote Control\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5"}