Repository navigation
fix: harden Codex delivery, CLI parsing, SSH and output (#49-#57) - #62
Merged
Merged
Conversation
- Pass Codex bodies as --message=<text> locally and over SSH (#49). - Drop inherited CODEX_SQLITE_HOME and refuse a configured sqlite_home (#50). - Refuse an option name consumed as a separate option value (#51). - Propagate the verified remote exit code (#52). - Require an absolute codexHome in Reply-To URIs (#53). - Escape bidi and zero-width characters in text output (#54). - Accept a verified SSH preflight before classifying stderr (#55). - Double every PowerShell single-quote variant in --remote-bin (#56). - Report Windows .cmd/.bat shims as executable_unsupported (#57).
8 of 11 tasks
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
Resolves the 0.2.1 reliability and hardening findings from the 2026-09-28 audit. Behavior is tightened only; no new command, transport or schema field.
--message=<text>argument, so- item,--help,-x,--and-1are delivered as text.CODEX_SQLITE_HOME(case-insensitive on Windows) is removed from the native queue environment. A home whoseconfig.tomlsetssqlite_homeis refused asunsupported_codex_sqlite_home(codex_config_unreadablewhen it cannot be read) in both dry-run and send, anddoctorreports it as unsupported.--message --dry-run,--to --dry-run,-m --json) isinvalid_option(exit 2), matching Python argparse.--message=<text>, stdin and-- <text>still carry such text.codexHomemust be a POSIX or Windows absolute path, matching the Python reference.', U+2018–U+201B) is doubled in the encoded--remote-bincommand..cmd/.batexecutable found first onPATH(or given explicitly) isexecutable_unsupportedinsendanddoctor; no shell is introduced.PARITY.md gains a section describing these source changes.
Type
Validation
npm ci --ignore-scriptsandnpm run buildSESSION_PEER_PYTHON_ROOT=/path/to/pinned/reference npm test— 75 tests: 71 pass, 4 skipped (Windows-only), 0 failnpm run test:packageandnpm audit— package smoke pass, 0 vulnerabilitiesrelease gatepasses with an up-to-date baseThe 8 new or updated regression tests were confirmed to fail against the previous source and pass with this change.
codex queue --message=<body>was checked against codex-cli 0.157.1 with an empty temporaryCODEX_HOMEand a nonexistent thread (reaches the expected "no rollout" error for--helpand- item); nothing was queued.Tested environments / limitations
47c2371; fixtures only, no live sessions..cmdshim refusal and the updated contract expectations for--message=) run only in the Windows CI jobs.CODEX_SQLITE_HOMEcannot be observed from outside; this is documented in PARITY.md.Release impact
No automatic release or deployment. Behavior changes that callers may notice:
--message --flagstyle invocations are now refused, SSH usage refusals exit 2 instead of 1, and homes withsqlite_homeor Windows batch shims are refused explicitly. SSH endpoints must run the same version (existing requirement), which covers the--message=wire change. No native dependency or JSON schema change.