Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Bug]: resolveCodexRuntime test depends on the host's installed Codex

Open Beginner friendly
#7,403 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@lidge-jun is already working on this.

Since Oct 22, 2026.

  • #7552 by @lidge-jun — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
bun, typescript
Domain
cli, testing

Research direction

Start with tests/codex-integration/codex-runtime.test.ts and run bun test --isolate tests/codex-integration/codex-runtime.test.ts on a machine with Codex CLI installed. Trace how the test resolves persisted and installed Codex versions and identify where host state enters the selection. Done means the test uses an isolated fixture and passes regardless of whether Codex is installed.

Written by the indexing model from the issue text.

Description

bug cli
Client or integration

Other

Area

CLI

Summary

tests/codex-integration/codex-runtime.test.ts › resolveCodexRuntime › treats missing persisted and resolved versions as the same selection fails on clean origin/dev on a developer machine that has Codex installed. It expects "fallback" and receives "installed", so the test reads host state instead of an isolated fixture.

Reproduction
  1. On a machine with Codex CLI installed, check out clean dev (dbb908f7d).
  2. bun test --isolate tests/codex-integration/codex-runtime.test.ts
  3. One failure, the same on dev and on feature branches.
Version

dev dbb908f7d

Operating system

macOS 27 (darwin 27.0.0, arm64)

Provider and model

No response

Logs or error output
error: expect(received).toBe(expected)
Expected: "fallback"
Received: "installed"
(fail) resolveCodexRuntime > treats missing persisted and resolved versions as the same selection
Screenshots and supporting files

No response

Redacted configuration

No response

Checks
  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.
Dominant language
TypeScript
Stars
16.9k
Forks
1.3k
Avg merge
7h 46m
Merged PRs (30d)
638

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lidge-jun/opencodex

All issues in lidge-jun/opencodex

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.