Skip to content

Fallback to new Reaper when reused Reaper is unreachable - #1233

Merged
cristianrgreco merged 1 commit into
mainfrom
codex/reaper-reuse-fallback-1025
Feb 17, 2026
Merged

Fallback to new Reaper when reused Reaper is unreachable#1233
cristianrgreco merged 1 commit into
mainfrom
codex/reaper-reuse-fallback-1025

Conversation

@cristianrgreco

@cristianrgreco cristianrgreco commented Feb 17, 2026

Copy link
Copy Markdown
Collaborator

Summary of changes

  • Make Reaper reuse best-effort: if connecting to a discovered running Reaper fails, try other candidates and then create a new Reaper in the same lock cycle.
  • Update Reaper discovery to return all running candidates and prefer newer ones first.
  • Add a regression test that simulates an unreachable reused Reaper and verifies fallback creation of a new Reaper.

Verification commands run

  • npm run format
  • npm r