Skip to content

Fix headless RunProject launch resumption and completion - #455

Merged
zunda-pixel merged 1 commit into
mainfrom
fix/headless-launch-lifecycle
Oct 30, 2026
Merged

zunda-pixel merged 1 commit into
mainfrom
fix/headless-launch-lifecycle

Conversation

@zunda-pixel

Copy link
Copy Markdown
Collaborator

Headless RunProject can leave a simulator app suspended and then wait for that app to exit before returning. This change resumes a stopped simulator app after the native launch action finishes and returns while the app remains running.

Fixes #451
Fixes #452

The request cleanup receives the final native outcome. For a successful launch, execution tracking excludes only the Operation whose launch-session PID matches the result. The native stream, unrelated Operations, and failed or cancelled requests still drain before the workspace permit is released.

The resumption check requires a simulator destination, a matching simulator UUID in the local executable path, no selected debugger, a stopped and untraced process, and an unchanged process identity. Once the launch passes to the workspace, later cancellation of its completed request does not cancel that app.

Validation uses the repository's fixture on macOS 27.0.1 with Xcode 27.2 (27B48) and a dedicated iOS 27.2 simulator:

  • Non-debugger launch returns with the app running, followed by a build, relaunch, and stop.
  • Debugger launch returns and LLDB attaches without a resumption signal.
  • A failed build returns its errors, and the workspace can build again after the source is restored.
  • Regression tests cover matching and unrelated Operations, cancellation before and after handoff, recorded failures, simulator process checks, and a final native error after a completed event.
  • ./scripts/check.sh passes, including the process tests. ./scripts/verify-proxy-target-boundaries.sh and git diff --check pass.

The fallback applies to successful RunProject calls. Test-runner launch behavior is unchanged. Cancellation before the native launch action completes can still hang on unmodified v0.26.0 and on this branch. That existing failure is tracked in #454.

Separate a successful RunProject request from the matching native launch Operation so the app can keep running after the reply. Resume only stopped, untraced apps belonging to the launch simulator without a selected debugger, and retain stream and unrelated Operation draining.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-30T07:08:14.903069Z 59cadbd PR opened
ℹ️ 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.

@zunda-pixel
zunda-pixel merged commit 12db640 into main Oct 30, 2026
7 checks passed
@zunda-pixel
zunda-pixel deleted the fix/headless-launch-lifecycle branch October 30, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant