Skip to content

Commit 0a8b95c

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into codex/fastwire-b2-openrouter
2 parents 89fbd6f + 1ad131a commit 0a8b95c

74 files changed

Lines changed: 3020 additions & 192 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎bin/ocx.mjs‎

Lines changed: 59 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
runNpmCachePreflight,
2323
} from "../src/update/npm-cache-preflight.mjs";
2424
import { handoffWindowsTrayForUpdate, planWindowsTrayUpdate } from "../src/update/tray-update-plan.mjs";
25+
import { bootRestoreProbe, transactionalNpmUpdate } from "../src/update/transactional-install.mjs";
2526

2627
const PKG = "@bitkyc08/opencodex";
2728
const require = createRequire(import.meta.url);
@@ -267,13 +268,50 @@ function runNpmSelfUpdate() {
267268
}
268269
}
269270

270-
console.log(`Updating${latest ? ` to v${latest}` : ""}...\n$ npm install -g ${PKG}@${tag}`);
271-
const res = spawnSync(installInvocation.file, installInvocation.args, {
272-
stdio: "inherit",
273-
timeout: 180000,
274-
windowsHide: true,
275-
...installInvocation.options,
276-
});
271+
// #1942/#1849: stage -> verify -> swap -> rollback instead of installing straight
272+
// into the live tree. A failure at any point leaves either the old or the new tree
273+
// complete — never a file-less skeleton. Falls back to the legacy in-place install
274+
// only when the transactional module cannot run at all.
275+
const packageDir = resolve(here, "..");
276+
console.log(`Updating${latest ? ` to v${latest}` : ""} (transactional)...`);
277+
let res;
278+
try {
279+
const tx = transactionalNpmUpdate({
280+
packageDir,
281+
pkgName: PKG,
282+
targetVersion: latest || undefined,
283+
tag,
284+
runNpm: (args) => {
285+
const invocation = npmInvocation(args);
286+
if (!invocation) return { status: 1 };
287+
return spawnSync(invocation.file, invocation.args, {
288+
stdio: "inherit",
289+
timeout: 180000,
290+
windowsHide: true,
291+
...invocation.options,
292+
});
293+
},
294+
log: (line) => console.log(line),
295+
});
296+
if (tx.ok) {
297+
res = { status: 0 };
298+
} else if (tx.phase === "stage" || tx.phase === "verify") {
299+
// Live tree untouched: report and stop. Nothing to roll back.
300+
console.error(`opencodex: update aborted before touching the live install (${tx.phase}): ${tx.error}`);
301+
res = { status: 1 };
302+
} else {
303+
console.error(`opencodex: update failed (${tx.phase}): ${tx.error}${tx.rolledBack ? " — previous version restored." : ""}`);
304+
res = { status: 1 };
305+
}
306+
} catch (error) {
307+
// An unexpected throw means we cannot prove the live tree is untouched, so the
308+
// legacy in-place install (which deletes live first) is exactly the wrong rescue —
309+
// it recreates the #1849 destruction path. Report and stop; the boot probe and the
310+
// recovery marker cover the swap-window states.
311+
console.error(`opencodex: transactional update failed unexpectedly (${error?.message ?? error}). ` +
312+
"The live install was not knowingly modified; run 'ocx update' again or reinstall with npm install -g.");
313+
res = { status: 1 };
314+
}
277315
if (res.status === 0) {
278316
console.log(`\nUpdated${latest ? ` to v${latest}` : ""}.`);
279317
repairCodexShimIfNeeded();
@@ -449,6 +487,20 @@ if (process.argv[2] === "update" && isNodeModulesInstall() && !isBunGlobalInstal
449487
runNpmSelfUpdate();
450488
}
451489

490+
// #1849 boot probe: a prior update that lost power (or double-faulted) mid-swap leaves a
491+
// backup sibling and a broken live tree. Restore before anything tries to run from the
492+
// broken tree; reap stale backups once the live tree verifies healthy.
493+
if (isNodeModulesInstall() && !isBunGlobalInstall()) {
494+
try {
495+
const probe = bootRestoreProbe(resolve(here, ".."));
496+
if (probe.action === "restored") {
497+
console.warn(`opencodex: previous update left a broken install — restored the backup from ${probe.from}.`);
498+
} else if (probe.action === "failed") {
499+
console.warn(`opencodex: a backup from a failed update exists but could not be restored automatically: ${probe.error}`);
500+
}
501+
} catch { /* the probe must never block launch */ }
502+
}
503+
452504
const bunRuntime = resolveBun();
453505
const bun = bunRuntime.path;
454506

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# 000 — 260819 triage-execution campaign plan
2+
3+
Baseline: 4-lane sol-medium triage (2026-08-19) over 53 open PRs + 75 open
4+
issues. This unit EXECUTES the verdicts. All merges via gh pr merge --admin
5+
(user pre-approved). Issue-closure rule: a merged PR that resolves an issue
6+
closes that issue in the same work-phase.
7+
8+
Live-state reverify (wp0, 2026-08-19): all 14 merge candidates OPEN,
9+
MERGEABLE, base=dev, zero FAILED checks — but NOT all CI-proven: #2061 #2066
10+
#2042 #2072 #2068 #1903 #2075 have no Cross-platform CI run on their exact
11+
heads (only hygiene/enforce-target). mergeStateStatus=BLOCKED is the
12+
review-requirement ruleset; admin merge passes. #1885 CONFLICTING (close
13+
target anyway), #1498 draft+CONFLICTING+red hygiene (close target).
14+
15+
**Pre-merge validation rule (r1 audit fold-back):** a PR without a
16+
Cross-platform CI conclusion on its exact head must NOT be merged on
17+
mergeability alone. Before merging such a PR: scratch-merge its head onto
18+
current dev in a lidge worktree and run the focused suites the diff touches
19+
(plus tsc); only a clean scratch-merge run authorizes the admin merge. The
20+
post-merge push CI on the merge SHA remains the decisive gate; a red
21+
post-merge CI triggers immediate fix-forward or revert of that one merge.
22+
23+
## Work-phase map (dependency-ordered)
24+
25+
| wp | scope | PRs / issues | gate |
26+
|---|---|---|---|
27+
| wp1 | batch-quota | merge #2056 #2055 -> close #2047 #2046 | sol review lane per PR, then admin merge, CI on merge SHA |
28+
| wp2 | batch-small-fixes | merge #2053 #2045 #2061 #2066 -> close #2065 | same |
29+
| wp3 | batch-lab-chat | merge #2042 #2059; re-diff #2075 vs #2042 (prefix-matching claim); #2044 test-gap decision (merge with follow-up test or request change) | same + 2075 contradiction resolution |
30+
| wp4 | batch-features | SERIALIZED: merge #2072 first, then re-diff/re-review/scratch-validate #1903 against post-2072 dev before merging it (both touch src/codex/catalog/provider-fetch.ts + provider docs + 9 GUI locales); then #2068 #2057; close #1885 (superseded by #2072) #1498 (stale/dont-merge) | same + serialization gate |
31+
| wp5 | redesign #2073 | injector env_http_headers -> env_key (codex 0.146+) | C3: wp5's P WRITES 010_env_key_contract.md (contract proof from codex-rs source/release notes via cxc-search) BEFORE impl; impl+tests, PR, admin merge, close #2073 |
32+
| wp6 | redesign #2064 | Remote raw-thinking on empty summary[] | C3: wp6's P WRITES 020_remote_reasoning_leak_rca.md (root-cause in OUR relay; model-side intermittent exposure is out of scope) BEFORE impl; impl+tests, PR, merge, close #2064 |
33+
| wp7 | redesign #1926 | tsig credential scope | C4 security: design 051_tsig_credential_scope.md (fin unit), impl+tests, PR, merge, close #1926 |
34+
| wp8 | redesign #1942 | Windows transactional update rollback | C4: base design 090_transactional_update_rollback.md has a KNOWN path-structure defect (staging/backup as CHILDREN of <prefix> makes the live-prefix swap move them with it, and live cannot move into its own subdirectory) — wp8's P MUST amend the design to sibling-of-prefix staging/backup paths (e.g. <prefix>.ocx-staging-<ts>) before impl; impl+tests, PR, merge, close #1942 |
35+
| wp9 | closeout | final dev-head CI verify, ledger, unit disposition | push-CI green or pre-existing-red classified |
36+
37+
## Review-lane contract (every merge batch)
38+
39+
- One sol-medium read-only reviewer per PR (parallel), packet includes
40+
$codexclaw:cxc-dev + $codexclaw:cxc-search mentions, full diff read,
41+
verdict line MERGE-OK | BLOCK(reason).
42+
- Main agent merges only MERGE-OK PRs; BLOCK verdicts downgrade the PR to
43+
NEEDS-WORK with an evidence comment.
44+
- Merge method: squash when the branch has fixup/noise commits, merge
45+
otherwise.
46+
- Suites: lidge dispatch without long blocking waits; decisive gate is the
47+
Cross-platform CI push run on the merged SHA.
48+
49+
## Known risks
50+
51+
- Seven merge candidates lack head CI (see pre-merge validation rule above);
52+
scratch-merge lidge validation is mandatory for them.
53+
- wp4 #2072/#1903 file overlap (provider-fetch.ts, provider docs, locales):
54+
serialized merge with re-validation between.
55+
- #1942 base design path defect: fixed at wp8 P via design amendment.
56+
- #2075 verdict conflict: 1st-pass ADOPT-NOW vs sol NEEDS-WORK (claims it
57+
reintroduces prefix matching #2042 fixes). Resolve by diffing #2075 head
58+
against #2042 semantics AFTER #2042 lands.
59+
- #2064: reasoning leakage can be intermittent model-side behavior; fix only
60+
what our relay provably does wrong (persisting/rendering raw reasoning when
61+
summary[] is empty).
62+
- Windows dispatch CI leg is known-red pre-campaign (Log Guard families) —
63+
not a gate for these merges.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# 010 — #2073: injector env_key contract (codex-cli 0.146+)
2+
3+
## Contract facts (verified against openai/codex rust-v0.146.0 source, wp5 research lane)
4+
5+
- env_key reads the named env var and sends Authorization: Bearer <value>
6+
(model-provider-info/src/lib.rs#L263-281). Missing/empty var = HARD error
7+
(CodexErr::EnvVar), never an empty bearer.
8+
- env_key + requires_openai_auth = true is valid; env_key WINS for wire auth
9+
(first-party scoped auth disabled), requires_openai_auth keeps login/account
10+
UX (provider.rs#L153-174, auth.rs#L162-178).
11+
- env_http_headers is still honored in 0.146 (not removed), but bearer auth is
12+
the documented modern form.
13+
14+
## Server-side prerequisite (already landed)
15+
16+
#1686 chain (22d5492b2, acfedae0a, f848b4997): /v1/responses admits our
17+
admission secret via Authorization: Bearer and SUBSTITUTES stored main auth
18+
upstream (materializeCodexUpstreamAuth). So an env_key client works end to end
19+
on dev today. The injector is the only stale half (this issue).
20+
21+
## Change
22+
23+
src/codex/inject.ts buildProviderTableBlock (legacy/non-loopback mode only —
24+
loopback Design B emits no auth line at all):
25+
26+
- BEFORE: env_http_headers = { "x-opencodex-api-key" = "OPENCODEX_API_AUTH_TOKEN" }
27+
- AFTER: env_key = "OPENCODEX_API_AUTH_TOKEN"
28+
29+
requires_openai_auth = true stays (login UX; env_key wins wire auth).
30+
Sub-table strip logic from #2061 (env_http_headers orphan cleanup) STAYS — it
31+
cleans historic configs regenerated by the app. stripExistingModelProvider
32+
already removes the whole marker-owned block, so old env_http_headers lines
33+
from prior injections are replaced on next inject (idempotent).
34+
35+
## Behavior deltas (accepted)
36+
37+
- Missing OPENCODEX_API_AUTH_TOKEN in the codex process env: was silent header
38+
omission -> 401; now a clear codex-side hard error. Better diagnosability;
39+
the unauthenticated-loopback-listener case already suppresses the auth line
40+
entirely (shouldInjectApiAuthHeader), so the known no-var environment never
41+
sees env_key.
42+
- The client's own ChatGPT bearer is no longer forwarded on this path (env_key
43+
replaces Authorization); the proxy substitutes stored main auth — exactly the
44+
#1686 design. Hand-configured env_http_headers remains honored by the runtime
45+
for users who want the legacy form.
46+
47+
## Tests
48+
49+
- tests/codex-inject.test.ts:44,194 — flip to env_key expectation + add a
50+
regression that env_http_headers is NOT emitted.
51+
- tests/loopback-listener-admission.test.ts:199 / integration:617 — extend the
52+
not-contains to env_key (loopback emits no auth line).
53+
- Keep #2061 sub-table strip tests untouched.
54+
55+
## Docs
56+
57+
- structure/02_config-and-codex-home.md provider-block sample: update line.
58+
- docs-site reference mentions of env_http_headers (if any) updated.
59+
60+
Verifier: bun test tests/codex-inject.test.ts tests/loopback-listener-admission.test.ts tests/loopback-listener-integration.test.ts + bun x tsc --noEmit.
61+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# 020 — #2064 RCA: Remote raw-thinking leak (FIXED-ON-DEV)
2+
3+
Reported on 2.24.2: Codex Remote paints raw Grok thinking live
4+
(response.reasoning_text.delta), then swaps to the progress line leaving
5+
italic fragments; stored items are summary:[] + content reasoning_text.
6+
7+
RCA (sol lane + main verification, 2026-08-19):
8+
9+
- v2.24.2 bridge emitted the raw channel: git show v2.24.2:src/bridge.ts has
10+
response.reasoning_text.delta; fix commit 56752d7c5 (#2007, landed via
11+
PR #2016 merge 891c8284b) is NOT an ancestor of v2.24.2, IS on dev.
12+
- Current dev has no escape path for openai-chat routed models: the bridge
13+
emits summary-channel deltas and summary-shaped items only
14+
(src/bridge.ts:987,1016,591-606); the native-Responses rewrite covers WS
15+
upstream, eager relay, HTTP SSE tee, and JSON reframing legs
16+
(src/server/responses/core.ts:2835-3066,
17+
src/server/responses-reasoning-summary-rewrite.ts:51-110).
18+
- Suites: tests/responses-reasoning-summary-rewrite.test.ts +
19+
tests/bridge.test.ts = 73 pass / 0 fail (fresh).
20+
21+
Outcome: no new code. Issue #2064 closed as fixed-on-dev with a note asking
22+
for on-device Remote verification on the next release build. Model-side
23+
intermittent reasoning exposure (user caution) stays out of scope — our relay
24+
provably converts the channel on every leg.
25+

‎docs-site/src/content/docs/fr/guides/codex-integration.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ name = "OpenCodex Proxy"
125125
base_url = "http://your-host:10100/v1"
126126
wire_api = "responses"
127127
requires_openai_auth = true
128-
env_http_headers = { "x-opencodex-api-key" = "OPENCODEX_API_AUTH_TOKEN" }
128+
env_key = "OPENCODEX_API_AUTH_TOKEN"
129129
# supports_websockets = true # only when config.websockets is true
130130
```
131131

‎docs-site/src/content/docs/guides/codex-integration.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ name = "OpenCodex Proxy"
121121
base_url = "http://your-host:10100/v1"
122122
wire_api = "responses"
123123
requires_openai_auth = true
124-
env_http_headers = { "x-opencodex-api-key" = "OPENCODEX_API_AUTH_TOKEN" }
124+
env_key = "OPENCODEX_API_AUTH_TOKEN"
125125
# supports_websockets = true # only when config.websockets is true
126126
```
127127

‎docs-site/src/content/docs/guides/providers.md‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ ocx logout <provider>
116116
| `nous` | `openai-chat` | `https://inference-api.nousresearch.com/v1` | Nous Research subscription gateway (same backend Hermes Agent uses). Device-grant login against `portal.nousresearch.com`; the access token is the per-request inference JWT. Mixed paid + `:free` model catalog (`tencent/hy3:free`, `stepfun/step-3.7-flash:free`, ...) discovered live from the signed-in account. Refresh tokens are single-use and rotated on every refresh. |
117117
| `kiro` | `kiro` | `https://runtime.us-east-1.kiro.dev` | Initial login imports the installed, signed-in `kiro-cli` session (on Unix, install with `curl -fsSL https://cli.kiro.dev/install` &#124; `bash`; on Windows PowerShell, use `irm 'https://cli.kiro.dev/install.ps1'` &#124; `iex`; then run `kiro-cli login`). **Add account** logs `kiro-cli` out, starts a fresh browser login that switches the account used by `kiro-cli`, and stores account-scoped profile metadata. Existing OpenCodex accounts are preserved, and cancellation or failure restores the previous `kiro-cli` session. |
118118
| `google-antigravity` | `google` | `https://daily-cloudcode-pa.googleapis.com` | Google OAuth over the Cloud Code Assist wire. Live discovery uses CCA's authenticated `v1internal:fetchAvailableModels` endpoint and publishes the agent models available to the signed-in account; the maintained catalog remains the fallback. |
119-
| `cursor` | `cursor` | `https://api2.cursor.sh` | Experimental PKCE login, live HTTP/2 transport, and account-filtered model discovery. |
119+
| `cursor` | `cursor` | `https://api2.cursor.sh` | Experimental PKCE login, live HTTP/2 transport with an opt-in HTTP/1.1 compatibility path, and account-filtered model discovery. |
120120
| `github-copilot` | `openai-chat` | `https://api.githubcopilot.com` | Experimental. GitHub device flow + `copilot_internal` exchange (VS Code OAuth client). Requires an active Copilot subscription; not an official third-party API. |
121121

122122
After a terminal Nous refresh failure, run `ocx login nous` to reauthenticate.
@@ -511,7 +511,9 @@ provider-wide adapter. To opt a model without a built-in default (for example
511511
Cursor is tracked separately as an experimental adapter. `adapter: "cursor"` appears in `ocx init`
512512
and the dashboard Add Provider picker as an experimental local config entry with Cursor's static
513513
fallback model catalog metadata. When a Cursor access token is configured, opencodex uses Cursor's
514-
live HTTP/2 transport. Its bundled fallback seed includes `gpt-5.6-sol` / `terra` / `luna` (1M context),
514+
live HTTP/2 transport. Set `upstreamHttpVersion: "http1.1"` when a proxy requires Cursor's HTTP/1.1
515+
compatibility path; the setting covers both inference and live model discovery and is exposed at
516+
**Providers → Cursor → Settings → Cursor transport**. Its bundled fallback seed includes `gpt-5.6-sol` / `terra` / `luna` (1M context),
515517
regular/Fast rows for Grok 4.5 and 4.6 (500K), and `kimi-k3` (262K); live discovery decides which
516518
remain visible for the account. Grok 4.6 exposes `low` / `medium` / `high` / `xhigh` in both forms,
517519
while 4.5 stops at `high`. Fast requests send the matching base Grok model with separate `effort`
@@ -564,6 +566,13 @@ The bars show how much of a window (5-hour, weekly, monthly, or
564566
provider-specific) is already consumed.
565567

566568
Providers with a live probe: OpenAI/Codex, Anthropic, xAI, Cursor, Kimi,
567-
Google Antigravity, OpenRouter, DeepSeek, ClinePass, Z.AI, MiniMax,
569+
Google Antigravity, OpenCode Go, OpenRouter, DeepSeek, ClinePass, Z.AI, MiniMax,
568570
Moonshot, Venice, Synthetic, DeepInfra, Neuralwatt, Command Code, and any a6api-backed
569571
custom provider.
572+
573+
**OpenCode Go quota.** The canonical `opencode-go` preset reads
574+
`GET https://opencode.ai/zen/go/v1/usage` with the configured key as a Bearer token and
575+
does not follow redirects. The response's rolling, weekly, and monthly `percent` values are
576+
already-consumed utilization: rolling maps to the 5-hour bar, while weekly and monthly keep
577+
their matching bars. OpenCodex does not reconstruct dollar caps from local usage logs, and a
578+
provider using a non-canonical `baseUrl` is never sent the key for this probe.

‎docs-site/src/content/docs/ja/guides/codex-integration.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ name = "OpenCodex Proxy"
8787
base_url = "http://your-host:10100/v1"
8888
wire_api = "responses"
8989
requires_openai_auth = true
90-
env_http_headers = { "x-opencodex-api-key" = "OPENCODEX_API_AUTH_TOKEN" }
90+
env_key = "OPENCODEX_API_AUTH_TOKEN"
9191
# supports_websockets = true # only when config.websockets is true
9292
```
9393

‎docs-site/src/content/docs/ko/guides/codex-integration.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ name = "OpenCodex Proxy"
7979
base_url = "http://your-host:10100/v1"
8080
wire_api = "responses"
8181
requires_openai_auth = true
82-
env_http_headers = { "x-opencodex-api-key" = "OPENCODEX_API_AUTH_TOKEN" }
82+
env_key = "OPENCODEX_API_AUTH_TOKEN"
8383
# supports_websockets = true # only when config.websockets is true
8484
```
8585

‎docs-site/src/content/docs/reference/adapters.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@ advertised effort control on those models as proof of upstream-native reasoning
186186

187187
## `cursor`
188188

189-
**Targets:** Cursor's `agent.v1.AgentService/Run` over HTTP/2 Connect streaming at `api2.cursor.sh`.
189+
**Targets:** Cursor's `agent.v1.AgentService/Run` over HTTP/2 Connect streaming at `api2.cursor.sh`
190+
by default. With `upstreamHttpVersion: "http1.1"` (or `"h1"`), uses Cursor's HTTP/1.1
191+
compatibility pair: `agent.v1.AgentService/RunSSE` for server output and
192+
`aiserver.v1.BidiService/BidiAppend` for client messages.
190193
**Auth:** Cursor OAuth/access token from `provider.apiKey` or the forwarded authorization header.
191194

192195
- Uses `runTurn` rather than the ordinary fetch/parse path. Requests, server events, tool arguments,
@@ -195,6 +198,8 @@ advertised effort control on those models as proof of upstream-native reasoning
195198
- Replays conversation state through content-addressed blobs, maps server tool calls back to Codex,
196199
discovers live Cursor models through the protobuf `GetUsableModels` RPC, and retries only before a
197200
run request is committed to the wire.
201+
- Honors `upstreamHttpVersion` for both live model discovery and inference. `auto`, `http2`, and `h2`
202+
preserve the existing HTTP/2 transport; only `http1.1` and `h1` select compatibility mode.
198203
- Exposes Cursor Router as `cursor/auto` plus explicit `cursor/auto-cost`,
199204
`cursor/auto-balance`, and `cursor/auto-intelligence` entries. Explicit levels are encoded in
200205
`requested_model.parameters` while the legacy `cursor/auto` entry retains the account/team default.

0 commit comments

Comments
 (0)