Repository navigation
fix: reject ambiguous Codex homes before queueing - #56
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.
Summary
Closes #55. Related: #45 (diagnostics/observation) and #29 (JSON contract).
codexHometo successful Codex list, dry-run and send results, including SSH/multi-host results and human output.status: queued|validated, existing envelope shapes andqueueId; addsubmitted(false for dry-run) andconsumptionConfirmed: falseto successful Codex sends. Errors retain their existing shape, and timeout remains an unknown submission outcome.SESSION_PEER_CODEX_HOMES(JSON array). Reject duplicate UUIDs, including archived copies, before invoking the queue CLI; report candidate homes and require--codex-home.--codex-homeselects that copy and bypasses unrelated inventory checks.Type
Reproduction and regression coverage
New fixture tests create the same thread UUID in a default
.codexdatabase and an Orca account database. Before the fix, the implicit send returned success and called the queue stub for the default copy (expected rejection assertions failed); the new metadata assertions also failed. After the fix, send and dry-run reject the ambiguity without any queue call or fixture DB content changes.Coverage also includes configured homes without macOS discovery,
CODEX_HOMEversus default copies, archived duplicates, absent/broken/unreadable inventories, explicit bypass, unrelated homes, no automatic rerouting, symlink aliases, paths containing spaces/Unicode/shell metacharacters, the unchanged single-home case (including native send without a discovery DB), local/SSH dry-run, per-host metadata and timeout semantics.Checklist
session_peer.py listworks locally (legacy PR-template command updated to current product).session_peer.py list --host <real macOS host>checked over SSH, without installation changes.Validation results
python3 -m unittest discover -q: 161 tests passed locally (27 new tests; original suite had 134).python3 -m compileall -q cc_peer.py session_peer.py test_cc_peer.py test_session_peer.py test_codex.py test_install.py: passed.shellcheck --shell=sh --exclude=SC2016,SC1007 install.sh: passed.git diff --check: passed.uv build: wheel and sdist built; independently installed in isolated environments. CLI version and package-manager update protection checked. Distribution contents match source and exclude legacy code/user files.sh -n; 26 CLI examples parse without execution; local anchors/links checked.submitted: false,consumptionConfirmed: false. Live messages were not sent. Duplicate-home rejection is established by deterministic fixtures, not claimed as a live consumption test.Remaining limits / follow-ups
Library/Application Support/orca/codex-accounts/*/homelayout. Other layouts/platforms require configured additional homes or explicit selection.