Skip to content

Fix managed worktree creation when WordPress database is unavailable #901

Description

@chubes4

Observed

The supported Data Machine Code command for creating a managed task worktree failed before creating the worktree:

studio wp datamachine-code workspace worktree add homeboy fix/7928-polling-disconnect-recovery --from=origin/main --task-url=https://github.com/Extra-Chill/homeboy/issues/7928 --task-ref=Extra-Chill/homeboy#7928

Error: Error establishing a database connection.

This blocks a required managed-worktree workflow for Extra-Chill/homeboy#7928. Manual git worktree creation is intentionally not an acceptable substitute because it bypasses Data Machine Code lifecycle/task metadata.

Expected

The command either creates the fresh managed worktree with its task metadata, or returns actionable diagnostics that identify the owning WordPress/database failure and a supported recovery path.

Reproduction

  1. Run the command above from a configured Data Machine Code site.
  2. Observe the database connection error instead of managed-worktree creation.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode, OpenAI gpt-5.6-terra
  • Used for: Reproducing the supported managed-worktree command and drafting this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions