warpdotdev/warp · error · MergeError

destination_directory_unavailable

destination_directory_unavailable

Error message

destination_directory_unavailable

What it means

Error "destination_directory_unavailable" thrown in warpdotdev/warp.

Source

Thrown at resources/bundled/skills/tui-migrate-setup/scripts/merge_mcp_config.py:429

def apply_plan(
    plan: MergePlan,
    destination: Path,
    destination_config: ParsedConfig,
) -> bool:
    """Apply a verified plan. Return whether a content backup was created."""

    if not plan.content_change_required:
        if plan.permission_update_required:
            try:
                os.chmod(destination, 0o600, follow_symlinks=False)
            except (NotImplementedError, OSError) as error:
                raise MergeError("permission_update_failed") from error
        return False

    try:
        destination.parent.mkdir(mode=0o700, parents=True, exist_ok=True)
    except OSError as error:
        raise MergeError("destination_directory_unavailable") from error
    if destination.is_symlink():
        raise MergeError("config_symlink_rejected")

    stage_descriptor: int | None = None
    stage_path: Path | None = None
    try:
        stage_descriptor, stage_name = tempfile.mkstemp(
            prefix=f".{destination.name}.stage-", dir=destination.parent
        )
        stage_path = Path(stage_name)
        os.fchmod(stage_descriptor, 0o600)
        with os.fdopen(stage_descriptor, "wb", closefd=False) as file:
            file.write(_serialized(plan.document))
            file.flush()
            os.fsync(file.fileno())
        os.close(stage_descriptor)
        stage_descriptor = None

View on GitHub (pinned to e72fd7aacb)

When it happens

Trigger: Thrown at resources/bundled/skills/tui-migrate-setup/scripts/merge_mcp_config.py:429 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of warpdotdev/warp@e72fd7aacb (2026-08-16). Data as JSON: /api/errors/9331e8fe15e9e88d. Report an issue: GitHub.