Skip to content

Keep global app-server config independent of the launch directory - #51872

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b77063a7ea0b09fd0a79cfc4040db9f1d02606b3
Oct 7, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b77063a7ea0b09fd0a79cfc4040db9f1d02606b3

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Keep global app-server config independent of the launch directory

Why

Global requests can inherit project settings from the app-server's launch directory. This can prevent marketplace removal or expose project-only feature settings, and config reloads can fail if that directory is deleted.

What changed

  • Load configuration without project context when no working directory is supplied, using CODEX_HOME to materialize Config.cwd.
  • Use global configuration for marketplace mutations, marketplace upgrade reloads, and MCP requests without thread context.
  • Pass the launch directory explicitly during startup to preserve project-aware startup configuration.

Testing

Update regression tests to verify that marketplace removal ignores launch-project configuration and leaves the project config intact. Extend feature-list coverage to verify that global requests ignore project features, thread requests retain them, and global requests work after the launch directory is deleted on Unix.

…1872)

## Why

Global requests can inherit project settings from the app-server's launch directory. This can prevent marketplace removal or expose project-only feature settings, and config reloads can fail if that directory is deleted.

## What changed

- Load configuration without project context when no working directory is supplied, using `CODEX_HOME` to materialize `Config.cwd`.
- Use global configuration for marketplace mutations, marketplace upgrade reloads, and MCP requests without thread context.
- Pass the launch directory explicitly during startup to preserve project-aware startup configuration.

## Testing

Update regression tests to verify that marketplace removal ignores launch-project configuration and leaves the project config intact. Extend feature-list coverage to verify that global requests ignore project features, thread requests retain them, and global requests work after the launch directory is deleted on Unix.

GitOrigin-RevId: b77063a7ea0b09fd0a79cfc4040db9f1d02606b3
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/b77063a7ea0b09fd0a79cfc4040db9f1d02606b3 branch from 7c0a464 to f73a478 Compare October 7, 2026 23:19
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-07T23:19:39.572332Z 7c0a464 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit f73a478 into main Oct 7, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/b77063a7ea0b09fd0a79cfc4040db9f1d02606b3 branch October 7, 2026 23:19
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 7, 2026
@Joker58th
Joker58th deployed to issue-triage October 7, 2026 23:29 — with GitHub Actions Active
@Joker58th
Joker58th deployed to issue-triage October 7, 2026 23:29 — with GitHub Actions Active
@Joker58th
Joker58th deployed to issue-triage October 7, 2026 23:29 — with GitHub Actions Active
@rhove-zz
rhove-zz deployed to issue-triage October 7, 2026 23:30 — with GitHub Actions Active
@rhove-zz
rhove-zz deployed to issue-triage October 7, 2026 23:30 — with GitHub Actions Active
@rhove-zz
rhove-zz deployed to issue-triage October 7, 2026 23:30 — with GitHub Actions Active
@Joker58th
Joker58th deployed to issue-triage October 7, 2026 23:30 — with GitHub Actions Active
@choovioiot
choovioiot deployed to issue-triage October 7, 2026 23:33 — with GitHub Actions Active
@choovioiot
choovioiot deployed to issue-triage October 7, 2026 23:33 — with GitHub Actions Active
@choovioiot
choovioiot deployed to issue-triage October 7, 2026 23:33 — with GitHub Actions Active
@choovioiot
choovioiot deployed to issue-triage October 7, 2026 23:34 — with GitHub Actions Active
@renatop7
renatop7 deployed to issue-triage October 7, 2026 23:39 — with GitHub Actions Active
@renatop7
renatop7 deployed to issue-triage October 7, 2026 23:39 — with GitHub Actions Active
@renatop7
renatop7 deployed to issue-triage October 7, 2026 23:39 — with GitHub Actions Active
@renatop7
renatop7 deployed to issue-triage October 7, 2026 23:40 — with GitHub Actions Active
@timetrvlr
timetrvlr deployed to issue-triage October 7, 2026 23:51 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.