Skip to content

fix(packaging): copy the Codex TOML parser into packaged Orca - #28416

Merged
nwparker merged 1 commit into
mainfrom
nwparker/runtime-codex-toml-package
Oct 14, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/runtime-codex-toml-package

Conversation

@nwparker

@nwparker nwparker commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Packaged Orca must include the TOML parser used by its copied Codex configuration readers. Without it, the package guard rejects the app and those readers cannot load.

What Changed

Add the already-installed smol-toml dependency to the existing runtime package roots shared by macOS, Linux, and Windows. Add two regressions that use electron-builder’s actual copy operation, run normal pruning, and parse a trusted-project configuration from the staged package.

Why

The copied readers load this dependency directly. Including it through the canonical copy list keeps the package guard intact and covers every platform without platform-specific copies or a second loader.

Linked Issue

N/A — prerequisite packaging repair discovered while validating the runtime refactor stack.

Visual Proof

N/A — no rendered UI change.

Testing

  • Automated tests added/updated.
  • Both existing packaging test files: 42 passed and 1 existing Windows architecture skip, independently under Node and the configured Bun runner on macOS.
  • Removing only the new package root makes both new regression cases fail.
  • Lint and formatting passed. The tests verify resolution points to the copied package, preventing repository or global fallback.
  • The cumulative final stack passed actual macOS arm64 and Windows packaging/CLI checks, and the actual Linux AppImage passed the canonical Ubuntu 20.04 runtime-floor check.
  • The full final-stack five-shard unit run passed 116,625 tests. The complete run passed, including hosted SSH, layout and terminal sizing. Individual PR checks are tracked separately.

Review

Two independent source reviews found no blockers. Merge 1/33, before #27420. Human review and merge only; no auto-merge.

Agent skill upstream boundary

  • Not applicable; no upstream skill source copied.

Notes

The common package list supplies all three platforms. The new copy/prune cases executed on macOS for macOS and Linux staging policies; they do not claim Windows execution. No wire, SSH, workspace, native process, or dependency-version changes.

Checklist

  • Small and focused; mechanism and approach explained.
  • No visual change; cross-platform and remote impact considered.
  • Self-reviewed; regression, lint, and formatting checks passed.
  • Actual final-stack package checks complete.
  • Full-stack hosted CI passed; individual PR results are available in the Checks tab.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 18d4d026-3c4f-4cb3-8d56-80950b6467e6
📥 Commits

Reviewing files that changed from the base of the PR and between 0903ed9 and a18efec.

📒 Files selected for processing: 2
  • config/packaged-runtime-node-modules.cjs
  • config/scripts/electron-builder-config.test.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant