Skip to content

fix(v3): wait for standard dev frontend before app startup - #6093

Closed
leaanthony wants to merge 1 commit into
masterfrom
codex/ga-4905-readiness
Closed

leaanthony wants to merge 1 commit into
masterfrom
codex/ga-4905-readiness

Conversation

@leaanthony

Copy link
Copy Markdown
Member

A standard wails3 dev project can launch its native app while frontend dependency installation is still running; the app then exhausts its short startup retry window. Wait for the standard frontend task to open the selected development port before starting the app.

Uses the published github.com/atterpac/refresh v1.1.3 readiness gate, following the upstream-orchestration direction discussed on #5828. Existing standard configurations work without Taskfile edits; custom commands and explicit readiness settings are preserved. The default gate is 60 seconds and follows --port and HTTPS settings. Refresh now owns signal handling, and Wails returns when its blocking supervisor finishes.

Fixes #4905. Related: #5828 and #6049. This overlaps #6049's refresh dependency/supervisor changes and needs coordination when either lands; it does not add that PR's primary-process exit policy.

Validation:

  • The same CLI harness reports STARTED BEFORE FRONTEND on master and READY with this change after a six-second delayed frontend.
  • Explicit readiness timeout exits without starting the app.
  • go test -race ./internal/commands -count=1 and go vet ./internal/commands pass on Linux.
  • Windows amd64 command-package test binary cross-compiles; native Windows/macOS execution is unverified.
  • Added configuration tests for ports, HTTPS, IPv6, invalid URLs and preserved custom settings, plus v3/test/manual/frontend-readiness/check.py for the process-ordering regression.
  • git diff --check passes. Required coderabbit --plain was attempted but is unsupported by the installed CLI; supported coderabbit review --uncommitted was attempted and blocked by the free OSS review limit.

The readiness gate checks TCP connectivity, as supported by the published refresh release; it does not assert HTTP status. Runtime frontend checks remain in place. Draft pending review and native platform validation.

@leaanthony leaanthony added this to the v3.0.0 GA milestone Sep 9, 2026
@leaanthony leaanthony added v3 P1 High priority labels Sep 9, 2026
@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@atterpac

Copy link
Copy Markdown
Member

Closing in favor of unified solution in: #6150

@atterpac atterpac closed this Sep 21, 2026
@leaanthony leaanthony mentioned this pull request Sep 24, 2026
11 of 15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli P1 High priority v3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wails3 dev cannot connect to frontend server that is already running

3 participants