Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ A ready-for-review PR is the author's claim that the change is complete, underst

## Local validation and hooks

The suite uses Bun 1.4.3 (`testRunnerBun`) while the shipped runtime is 1.4.2.
The suite uses Bun 1.4.3 (`testRunnerBun`) while the shipped runtime is 1.4.4.
`scripts/test.ts` finds a 1.4.3 binary on PATH or in `~/.bun/bin`, or uses
`OCX_TEST_RUNNER_BUN`; install that version locally if it is missing.

Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# syntax=docker/dockerfile:1

# Keep the runtime aligned with package.json and pin the multi-platform image index.
# Runtime 1.4.2 fixes #6684's Windows Bun.fetch streaming; CI tests run on 1.4.3
# Runtime 1.4.4 keeps 1.4.2's #6684 Windows Bun.fetch streaming fix and ships NSS
# 3.131.1 roots without the compromised eMudhra CAs; CI tests run on 1.4.3
# because 1.4.2 segfaults reloading preloads in multi-file --isolate (#4821;
# #6713 run 37631558263: Linux 1/4, macOS 2/2, Windows 9/9) and 1.4.0's spawnSync
# can lose a child's exit (#4956, oven-sh/bun#44581). Rejoin after the
# upstream crash fix passes a unified-version lane=all dispatch, then delete
# package.json's testRunnerBun pin and setup-project-bun's role input.
ARG BUN_IMAGE=oven/bun:1.4.2@sha256:9114c058aeae42162ee16dd5084b95fe9473970bb6bcb5b232ab1630f0546895
ARG BUN_IMAGE=oven/bun:1.4.4@sha256:1d22548f177f4ff38e0c15baa3c2c46c6c2060ba2d1bc573bb4720b407548f1d

FROM ${BUN_IMAGE} AS manifest
WORKDIR /home/bun/app
Expand Down
28 changes: 14 additions & 14 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs-site/src/content/docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ bun run privacy:scan # credential/privacy scan used by CI
bun run prepare:package # refresh package launchers/assets
```

The suite uses Bun 1.4.3 (`package.json`'s `testRunnerBun`) while the shipped runtime is 1.4.2.
The suite uses Bun 1.4.3 (`package.json`'s `testRunnerBun`) while the shipped runtime is 1.4.4.
`scripts/test.ts` finds a 1.4.3 binary on PATH or in `~/.bun/bin`, or uses `OCX_TEST_RUNNER_BUN`.
Install that version locally if it is missing; the resolver never downloads it.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ install-scripts ... blocked because they are not covered by allowScripts`),
which leaves the bundled Bun runtime unprepared. After trying permitted bundled-runtime
recovery, the launcher can use an executable Bun from an absolute PATH directory if its
stable version has the pinned major and a minor at least the pinned minor. With the current
1.4.2 dependency, that means 1.4.0 or newer within major 1. Bounded version-policy and identity
1.4.4 dependency, that means 1.4.0 or newer within major 1. Bounded version-policy and identity

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reject Bun 1.4.2 in the PATH fallback

When the bundled binary is unavailable after a blocked or failed postinstall, bin/ocx.mjs:1069 sends this 1.4.4 pin to findPathBun, but src/lib/bun-path-runtime.mjs:128 only compares major and minor, so a PATH Bun 1.4.2 is still accepted. That runtime retains the compromised CA this update is meant to remove, so affected npm/pnpm installs can still accept forged provider TLS certificates while sending credentials; enforce a 1.4.4 patch floor in the fallback and adjust the acceptance tests/docs.

AGENTS.md reference: AGENTS.md:L446-L452

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in the follow-up #7734: automatic PATH selection now requires the complete package pin, including its patch version, while preserving the same-major limit and later-candidate fallback. The baseline accepts 1.4.2 at pin 1.4.4; the candidate rejects it. Focused regression checks and exact-head CI pass. The follow-up is ready for review; it has not been merged or deployed.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the Korean installation runtime pin

The published Korean installation page at docs-site/src/content/docs/ko/getting-started/installation.md:29-30 still tells readers that the current dependency is 1.4.2, while this English canonical page and package.json now say 1.4.4. Update that locale in the same change so users are not told the package still ships the vulnerable runtime.

AGENTS.md reference: docs-site/AGENTS.md:L9-L10

Useful? React with 👍 / 👎.

checks require `bun --version` to match `bun -e`'s `Bun.version`. On POSIX, the launcher checks
the whole candidate path, including ancestor directories and components reached through
symlinks. Each traversed directory and symlink, and the resolved executable, must be owned by
Expand Down
2 changes: 1 addition & 1 deletion docs-site/src/content/docs/guides/remote-hub.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ input checks.
opencodex does not publish an official container image. The repository does maintain a source-build
[`Dockerfile`](https://github.com/lidge-jun/opencodex/blob/main/Dockerfile),
[`compose.yaml`](https://github.com/lidge-jun/opencodex/blob/main/compose.yaml), and a narrow
`.dockerignore`. The build pins the multi-platform Bun 1.4.2 image index by digest, runs the proxy as
`.dockerignore`. The build pins the multi-platform Bun 1.4.4 image index by digest, runs the proxy as
the non-root `bun` user, keeps the root filesystem read-only, drops Linux capabilities, and publishes
only the data listener on the host's `127.0.0.1:10100` by default. The foreground process uses
`OCX_SERVICE=1`, so stopping or recreating the container preserves routed Codex state instead
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"@bufbuild/protobuf": "^2.14.0",
"@modelcontextprotocol/sdk": "^1.32.1",
"@napi-rs/keyring": "1.3.0",
"bun": "1.4.2",
"bun": "1.4.4",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the privileged cleanup workflow to Bun 1.4.4

In the scheduled cleanup job, .github/workflows/cleanup-orphaned-workflows.yml:37-45 still installs Bun 1.4.2 and then runs scripts/ci/cleanup-orphaned-workflows.mjs with an actions:write GITHUB_TOKEN; that script sends the token as a Bearer header via Bun fetch to api.github.com. Because 1.4.2 retains the compromised root, this credential-bearing path remains vulnerable despite the runtime bump; resolve the shared 1.4.4 runtime pin or update this hardcoded setup.

AGENTS.md reference: AGENTS.md:L446-L452

Useful? React with 👍 / 👎.

"zod": "4.4.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion structure/ops/docs-and-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ so the management route stays the single domain schema.

The source runs on Bun, but the published package does **not** require a user-installed Bun.
`package.json` `bin` points at `bin/ocx.mjs` (a Node shim), and the Bun runtime ships as the `bun`
npm dependency pinned to `1.4.2` (esbuild-style: a tiny main package plus platform-specific `@oven/bun-*`
npm dependency pinned to `1.4.4` (esbuild-style: a tiny main package plus platform-specific `@oven/bun-*`
`optionalDependencies`, finalized by the dependency's own `postinstall: node install.js`).

Invariants:
Expand Down
2 changes: 1 addition & 1 deletion structure/runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The minute sweep checks persisted activation deadlines locally; only missing dea

## Bun runtime and test runner

`package.json` pins the shipped npm runtime (`dependencies.bun`) to 1.4.2 and the test runner (`testRunnerBun`) to 1.4.3; `@types/bun` remains unchanged. Runtime 1.4.2 fixes #6684's Windows Bun.fetch truncation after the first cleartext upstream body chunk.
`package.json` pins the shipped npm runtime (`dependencies.bun`) to 1.4.4 and the test runner (`testRunnerBun`) to 1.4.3; `@types/bun` remains unchanged. Runtime 1.4.2 fixed #6684's Windows Bun.fetch truncation after the first cleartext upstream body chunk; 1.4.4 keeps that fix and ships NSS 3.131.1 roots, which drop the compromised eMudhra CAs.
The runner pin skipped 1.4.2's multi-file `bun test --isolate` preload reload segfault (`load_preloads -> JSModuleLoader::loadModule -> JSPromise::status`, address 0x10): #4064 introduced 1.4.2 on 2026-09-09 and #4821 reverted it on 2026-09-17. It left 1.4.0 for 1.4.3 because of oven-sh/bun#44581 (#4956). Bun 1.4.0's `Bun.spawnSync` pointed the VM at its private wait loop, so a finalizer that ran during one call (an earlier file's stdout/stderr sink, a stream reader) released its poll on that loop; the cached loop's poll count drifted to zero and a later call stopped polling for its child, spinning past its own `timeout` until the 120-second batch deadline. In a multi-file `--isolate` process that depends on what earlier files left to finalize, so single-file attribution stayed clean. `tests/ci-workflows/test-runner-spawnsync-finalizer.test.ts` reproduces the mechanism in a child under a bounded parent and fails on 1.4.0.
#6713 run 37631558263 reproduces that 1.4.2 preload segfault on Linux 1/4, macOS 2/2 and Windows 9/9; single-file success does not prove the multi-file runner works.

Expand Down
5 changes: 3 additions & 2 deletions tests/ci-workflows/install-scripts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ describe("install scripts", () => {
expect(pkg.main).toBe("./bin/package-main.mjs");
expect(pkg.exports?.["."]?.bun).toBe("./src/index.ts");
expect(pkg.exports?.["."]?.default).toBe("./bin/package-main.mjs");
// Bun 1.4.2 fixes the Windows fetch streaming regression reported in #6684.
// Bun 1.4.2 fixes the Windows fetch streaming regression reported in #6684; 1.4.4 keeps it
// and ships NSS 3.131.1 roots, which drop the compromised eMudhra CAs (October 2026).
// CI's testRunnerBun skipped 1.4.2: it segfaults while RE-LOADING the bunfig
// preload that `--isolate` re-enters once per test file:
// `load_preloads -> JSModuleLoader::loadModule -> JSPromise::status` dereferences a dead
Expand Down Expand Up @@ -95,7 +96,7 @@ describe("install scripts", () => {
// tests/ci-workflows/test-runner-spawnsync-finalizer.test.ts keeps the runner above it.
// Rejoin after the upstream runner crash is fixed and a green `lane=all` dispatch
// proves the unified version; then delete testRunnerBun and the setup action's role.
expect(pkg.dependencies?.bun).toBe("1.4.2");
expect(pkg.dependencies?.bun).toBe("1.4.4");
expect(pkg.testRunnerBun).toBe("1.4.3");
expect(pkg.dependencies?.zod).toBe("4.4.3");
expect(pkg.devDependencies?.typescript).toBe("7.0.2");
Expand Down
Loading