Skip to content

Check the owner’s launch epoch at spawn and wait for native teardown in stop journeys - #2410

Merged
lalalune merged 1 commit into
developfrom
codex/develop-resident-spawn-drain
Dec 4, 2026
Merged

lalalune merged 1 commit into
developfrom
codex/develop-resident-spawn-drain

Conversation

@lalalune

@lalalune lalalune commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Why

Keep future Android releases from starting a local agent that the owner stopped while its launch file, socket and environment were being prepared. A concurrent fix already checked the requested epoch just before spawning. The first develop backport lost that check when two repairs to the same method were merged. Original Android change · Development backport

Change

  • Re-read the launch epoch immediately before asking Android to start the Node process. The existing cleanup still retires a child if ownership changes during the spawn itself.
  • Keep the prompt owner notification. The plugin, IPC broker and overlays use it to refresh status. Make the two new stopped-agent journeys separately observe that notification and check the stopped state on the actual serial launch executor after queued teardown. Previously their notification latch could fire while the teardown was still queued.

Verification

The unchanged held-asset journey reproduced the stop race on the original source, then passed in the corrected native suite. These integrations add an explicit after-teardown observation on develop. The Android foundation job builds the APKs and runs the complete Gradle suite on this change. Original failure · Release-branch native result

@lalalune
lalalune temporarily deployed to turbo-cache-read December 4, 2026 21:38 — with GitHub Actions Inactive
@lalalune
lalalune marked this pull request as ready for review December 4, 2026 21:40
@lalalune
lalalune merged commit b382952 into develop Dec 4, 2026
13 of 18 checks passed

This branch is being deployed

1 queued deployment
turbo-cache-read — 6d671cf4 Deployed Dec 4, 2026 by lalalune via prepare-eliza #1658
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