Repository navigation
feat: validate active Codex homes and localize replies - #63
Merged
Merged
Conversation
This was referenced Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The same Codex thread UUID can exist in the default and Orca/custom homes, so a successful enqueue could target a queue that no running session consumes. This change inspects the exact UUID writer lock in every bounded saved-home candidate, combines a kernel advisory-lock probe with two stable same-user
lsofowner observations, selects only one verified live writer, and revalidates every competing candidate immediately before queue submission. JSON results now include schema-versionedcodexHomeResolutionevidence, while queue completion remains explicitly separate from consumption confirmation.Locally generated automatic Reply commands now omit
--host, which avoids sending a reply back to the same machine through SSH and failing on host-key or authentication setup. Explicit/configured reply hosts and real remote routes keep their SSH form.Validation:
python3 -m compileall -q cc_peer.py session_peer.py testspython3 -m unittest discover -s tests -v(191 tests)uv buildsession_peer.pypresent, legacycc_peer.pyabsent)git diff --checkCloses #61