Skip to content

Conversation

@bolinfest
Copy link
Collaborator

@bolinfest bolinfest commented Dec 20, 2025

  • allow configuring project_root_markers in config.toml (user/system/MDM) to control project discovery beyond .git
  • honor the markers after merging pre-project layers; default to [".git"] when unset and skip ancestor walk when set to an empty array
  • document the option and add coverage for alternate markers in config loader tests

@bolinfest bolinfest changed the base branch from main to pr8354 December 20, 2025 07:48
@bolinfest bolinfest requested a review from joshka-oai December 22, 2025 18:54
bolinfest added a commit that referenced this pull request Dec 22, 2025
… info (#8354)

- We now support `.codex/config.toml` in repo (from `cwd` up to the
first `.git` found, if any) as layers in `ConfigLayerStack`. A new
`ConfigLayerSource::Project` variant was added to support this.
- In doing this work, I realized that we were resolving relative paths
in `config.toml` after merging everything into one `toml::Value`, which
is wrong: paths should be relativized with respect to the folder
containing the `config.toml` that was deserialized. This PR introduces a
deserialize/re-serialize strategy to account for this in
`resolve_config_paths()`. (This is why `Serialize` is added to so many
types as part of this PR.)
- Added tests to verify this new behavior.



---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/openai/codex/pull/8354).
* #8359
* __->__ #8354
Base automatically changed from pr8354 to main December 22, 2025 19:07
@bolinfest bolinfest enabled auto-merge (squash) December 22, 2025 19:34
@bolinfest bolinfest merged commit 314937f into main Dec 22, 2025
52 checks passed
@bolinfest bolinfest deleted the pr8359 branch December 22, 2025 19:45
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2025
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.

3 participants