Skip to content

Lua hot reload: stage CLI sessions until Warcraft launch succeeds - #1570

Merged
Frotty merged 2 commits into
masterfrom
codex/hot-reload-cli-launch-safety
Oct 25, 2026
Merged

Frotty merged 2 commits into
masterfrom
codex/hot-reload-cli-launch-safety

Conversation

@Frotty

@Frotty Frotty commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T09:38:55.362955Z 130de4a Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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: 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".

@Frotty

Frotty commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 130de4a073

ℹ️ 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".

@Frotty
Frotty merged commit 2b005cf into master Oct 25, 2026
2 checks passed
@Frotty
Frotty deleted the codex/hot-reload-cli-launch-safety branch November 25, 2026 08:53
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