Skip to content

fix: recover orphaned preview startups - #2891

Merged
numnx merged 1 commit into
devfrom
fix/preview-orphaned-startup
Jul 11, 2026
Merged

fix: recover orphaned preview startups#2891
numnx merged 1 commit into
devfrom
fix/preview-orphaned-startup

Conversation

@numnx

@numnx numnx commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • Track preview starts that are genuinely active in this process.
  • Detect starting sessions with no container and no active startup operation.
  • Reset and retry only those orphaned sessions during reconciliation.
  • Document the recovery behavior and cover active versus orphaned starts.

Why

Live restart validation after #2888 exposed a narrow state-recovery gap: an interrupted startup could leave its database row in starting without a Docker container, preventing later auto-start attempts.

Validation

  • pnpm run lint
  • pnpm run test:backend — 5,117 passed, 7 skipped
  • pnpm run build
  • pnpm run sync:docs-web
  • pnpm run check:docs-web

Risk / rollback

Low and isolated to preview reconciliation. Reverting this commit restores the previous behavior; existing running containers are not reset by this repair.

@numnx
numnx marked this pull request as ready for review July 11, 2026 05:39
@numnx
numnx merged commit e4cc0c4 into dev Jul 11, 2026
40 checks passed
@numnx
numnx deleted the fix/preview-orphaned-startup branch July 11, 2026 05:39
@numnx numnx mentioned this pull request Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant