Skip to content

Conversation

genevievehelsel
Copy link

@genevievehelsel genevievehelsel commented Aug 31, 2025

Summary:

I have read the CLA Document and I hereby sign the CLA

This commit teaches TrustDirectoryWidget to check for more than just Git repos. I was using codex with a repo cloned with Sapling and got a prompt saying "Since this folder is not version controlled, we recommend requiring...". This is incorrect - I'm using Sapling so the directory is version controlled, just not with Git.

Test Plan:
cargo test && cargo clippy --tests && cargo fmt -- --config imports_granularity=Item

cargo run --bin codex -- --model gpt-5 --full-auto -c model_reasoning_effort="high"

before: trust prompt shows in Sapling cloned repo

Screenshot 2025-08-31 at 1 58 17 AM

after: trust prompt doesn't appear in Sapling cloned repo

Screenshot 2025-08-31 at 1 59 35 AM

Stack created with Sapling. Best reviewed with ReviewStack.

…dget

Summary:

I have read the CLA Document and I hereby sign the CLA

Adds tests for openai#2585 but on the TrustDirectoryWidget level (tests were added in `git_info.rs`) Commits later in this stack change this code so tests on this level help verify correctness a layer up.

Test Plan:
`cargo test && cargo clippy --tests && cargo fmt -- --config imports_granularity=Item`
…ryWidget if in a git repo

Summary:

I have read the CLA Document and I hereby sign the CLA

This commit adds a short circut in `handle_trust()` - there is no need to call `resolve_root_git_project_for_trust()`, which spawns a `git` subprocess, if we're not in a git repo in the first place.

Test Plan:
`cargo test && cargo clippy --tests && cargo fmt -- --config imports_granularity=Item`
Summary:

I have read the CLA Document and I hereby sign the CLA

This commit teaches TrustDirectoryWidget to check for more than just Git repos. I was using codex with a repo cloned with [Sapling](https://sapling-scm.com/) and got shown

Test Plan:
`cargo test && cargo clippy --tests && cargo fmt -- --config imports_granularity=Item`

`cargo run --bin codex --  --model gpt-5 --full-auto -c model_reasoning_effort="high"`

before: trust prompt shows in Sapling cloned repo

after: trust prompt doesn't appear in Sapling cloned repo
Copy link

github-actions bot commented Aug 31, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@genevievehelsel
Copy link
Author

recheck

@bolinfest bolinfest self-requested a review September 3, 2025 00:02
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