Skip to content

fix(cli): recover stopped local stack - #5953

Merged
Coly010 merged 6 commits into
supabase:developfrom
7ttp:fix/recover-stopped-containers-5917
Jul 27, 2026
Merged

fix(cli): recover stopped local stack#5953
Coly010 merged 6 commits into
supabase:developfrom
7ttp:fix/recover-stopped-containers-5917

Conversation

@7ttp

@7ttp7ttp commented Jul 26, 2026

Copy link
Copy Markdown
Member

TL;DR

supabase start now recovers a stopped local stack instead of reporting it as already running.

Prob

After a Docker Desktop restart, the local containers come back exited instead of running.
start only checked that the Postgres container existed, not whether it was actually running,
so it printed "already running" and then failed the health check with "container is not running: exited".

we offered no way past this, users had to workaround it by hand with raw docker commands or repeat the whole cycle...

Sol

When Postgres is confirmed stopped, start removes the project's containers and unused networks (never volumes), then reruns the normal startup flow.

ref

@7ttp
7ttp requested a review from a team as a code ownerJuly 26, 2026 22:40

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:196028cd0c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment threadapps/cli/src/legacy/commands/start/start.handler.ts Outdated
@7ttp
7ttpforce-pushed the fix/recover-stopped-containers-5917 branch from 196028c to 284c659CompareJuly 26, 2026 23:03

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:284c6598f5

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment threadapps/cli/src/legacy/commands/start/start.handler.ts Outdated
Comment threadapps/cli/src/legacy/commands/start/start.handler.ts
@7ttp7ttp self-assigned this Jul 26, 2026

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:184b7db02a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment threadapps/cli/src/legacy/commands/start/start.handler.ts Outdated
Comment threadapps/cli/src/legacy/commands/start/start.handler.ts Outdated

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:9cff83be80

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment threadapps/cli/src/legacy/commands/start/start.handler.ts
Comment threadapps/cli/src/legacy/commands/start/start.handler.ts

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:5ca8897022

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment threadapps/cli/src/legacy/commands/start/start.handler.ts
Comment threadapps/cli/src/legacy/commands/start/start.handler.ts Outdated
Comment threadapps/cli/src/legacy/commands/start/start.live.test.ts Outdated
Comment threadapps/cli/src/legacy/commands/start/SIDE_EFFECTS.md Outdated
@Coly010
Coly010 added this pull request to the merge queueJul 27, 2026
Merged via the queue into supabase:develop with commit 81af5f0Jul 27, 2026
48 checks passed
Sign up for freeto 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.

supabase start reports "already running" when all local containers are stopped

2 participants

@7ttp@Coly010