Repository navigation
Lua hot reload: stage CLI sessions until Warcraft launch succeeds - #1570
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5750ec91d5
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
A CLI hot run could only replace its session immediately with start, before Warcraft launch succeeded. Add prepare/activate/abort actions using shared launch transaction helpers, also used by the language server. Preparation leaves the active baseline intact and hides unread payloads; failed launches restore them and drop the staged baseline. After the launcher succeeds, mark the hidden payloads superseded before replacing the active session, then commit the prepared manifest and clean up. An activation cleanup failure or process interruption cannot make a later abort restore obsolete payloads. Activation/abort do not depend on the current build manifest.
Reject reload delivery while a launch is prepared, retain both original and cleanup diagnostics, and preserve the legacy start/send workflow. The paired Grill change uses these actions and records its build options only after successful launch and activation.
Failure-first tests reproduce the missing CLI action, in-flight payload acceptance, and interrupted commit cleanup. All 257 focused Windows tests passed (LuaHotReloadTests, MapModelReuseTests, MapRequestPatchTargetTests). They cover CLI abort/resume/versioning, prepared-baseline activation, portable filesystem failures, and LSP map-build parity. No test launches Warcraft. Ubuntu CI runs the full suite; macOS and in-game behavior remain unverified.