Commit 134fd98
Enforce auth on explicit --backend codex; refresh stale doc strings
R5 review on PR #421 returned ✅ Looks good with two non-blocking items:
P2: --backend codex (explicit) only checked for the binary, not auth.json.
On a machine with codex installed but `codex login` not run, the script
would degrade into a confusing late subprocess error inside `codex exec`,
and the runtime banner would unconditionally claim "auth.json detected".
- _detect_backend("codex") now also requires CODEX_AUTH_PATH to exist
and raises a clear "no codex auth found at ~/.codex/auth.json — run
`codex login`" if absent. Auto-mode unaffected (already gated on
both checks).
- Runtime banner only mentions auth.json when it actually exists
(defensive — auto-mode gates already require it, but the explicit-
mode change above makes the same invariant true everywhere).
- Test test_explicit_codex_with_auth: writes auth.json before assert
(was implicitly relying on the now-removed "auth not checked" path)
- New test test_explicit_codex_errors_when_auth_missing: codex on PATH
but no auth.json → RuntimeError "no codex auth found"
P3: Four stale doc/CLI strings refreshed for the dual-backend world:
- Skill doc bullet describing .claude treatment now reflects the
.claude/settings.local.json scanning + .claude/reviews/ exclusion
(was: "skipped wholesale")
- Skill doc Step 1 default-behavior text mentions auto-detect backend
(was: "live API call")
- --dry-run argparse + skill doc help: "without invoking the chosen
backend (no api call, no codex subprocess)" (was: "without calling
the API")
- --repo-root argparse help: per-backend behavior (api: required for
standard/deep; codex: optional, falls back to cwd) (was: blanket
"required unless --context minimal")
Tests: 233 pass (1 new).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 81627c5 commit 134fd98
3 files changed
Lines changed: 53 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
92 | | - | |
| 97 | + | |
| 98 | + | |
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
| |||
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
129 | | - | |
| 135 | + | |
| 136 | + | |
130 | 137 | | |
131 | 138 | | |
132 | 139 | | |
| |||
566 | 573 | | |
567 | 574 | | |
568 | 575 | | |
569 | | - | |
| 576 | + | |
570 | 577 | | |
571 | 578 | | |
572 | 579 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1454 | 1454 | | |
1455 | 1455 | | |
1456 | 1456 | | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
1457 | 1463 | | |
1458 | 1464 | | |
1459 | 1465 | | |
| |||
1809 | 1815 | | |
1810 | 1816 | | |
1811 | 1817 | | |
1812 | | - | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
1813 | 1822 | | |
1814 | 1823 | | |
1815 | 1824 | | |
| |||
1822 | 1831 | | |
1823 | 1832 | | |
1824 | 1833 | | |
1825 | | - | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
1826 | 1840 | | |
1827 | 1841 | | |
1828 | 1842 | | |
| |||
2183 | 2197 | | |
2184 | 2198 | | |
2185 | 2199 | | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
2186 | 2209 | | |
2187 | | - | |
| 2210 | + | |
2188 | 2211 | | |
2189 | 2212 | | |
2190 | 2213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1870 | 1870 | | |
1871 | 1871 | | |
1872 | 1872 | | |
1873 | | - | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
1874 | 1877 | | |
1875 | | - | |
| 1878 | + | |
1876 | 1879 | | |
1877 | 1880 | | |
1878 | 1881 | | |
| |||
1886 | 1889 | | |
1887 | 1890 | | |
1888 | 1891 | | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
1889 | 1901 | | |
1890 | 1902 | | |
1891 | 1903 | | |
| |||
0 commit comments