Skip to content

Commit fd2c543

Browse files
committed
Update Open Codex commit attribution identity
Switch the default co-author trailer from the upstream Codex identity to the Open Codex identity, and keep the config reference/schema/docs aligned with that default while preserving the existing feature-gated semantics. Tests: - cargo test -p codex-core commit_attribution
1 parent 7dacff0 commit fd2c543

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

codex-rs/config/src/config_toml.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ pub struct ConfigToml {
179179
/// This top-level setting only takes effect when `[features].codex_git_commit`
180180
/// is enabled.
181181
///
182-
/// When enabled and unset, Codex uses `Codex <noreply@openai.com>`.
182+
/// When enabled and unset, Codex uses `Open Codex <hff582580@gmail.com>`.
183183
/// Set to an empty string to disable automatic commit attribution.
184184
pub commit_attribution: Option<String>,
185185

codex-rs/core/config.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3851,7 +3851,7 @@
38513851
"description": "Preferred backend for storing CLI auth credentials. file (default): Use a file in the Codex home directory. keyring: Use an OS-specific keyring service. auto: Use the keyring if available, otherwise use a file."
38523852
},
38533853
"commit_attribution": {
3854-
"description": "Optional commit attribution text for commit message co-author trailers. This top-level setting only takes effect when `[features].codex_git_commit` is enabled.\n\nWhen enabled and unset, Codex uses `Codex <noreply@openai.com>`. Set to an empty string to disable automatic commit attribution.",
3854+
"description": "Optional commit attribution text for commit message co-author trailers. This top-level setting only takes effect when `[features].codex_git_commit` is enabled.\n\nWhen enabled and unset, Codex uses `Open Codex <hff582580@gmail.com>`. Set to an empty string to disable automatic commit attribution.",
38553855
"type": "string"
38563856
},
38573857
"compact_prompt": {

codex-rs/core/src/commit_attribution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const DEFAULT_ATTRIBUTION_VALUE: &str = "Codex <noreply@openai.com>";
1+
const DEFAULT_ATTRIBUTION_VALUE: &str = "Open Codex <hff582580@gmail.com>";
22

33
fn build_commit_message_trailer(config_attribution: Option<&str>) -> Option<String> {
44
let value = resolve_attribution_value(config_attribution)?;

codex-rs/core/src/commit_attribution_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ fn blank_attribution_disables_trailer_prompt() {
1212
fn default_attribution_uses_codex_trailer() {
1313
assert_eq!(
1414
build_commit_message_trailer(/*config_attribution*/ None).as_deref(),
15-
Some("Co-authored-by: Codex <noreply@openai.com>")
15+
Some("Co-authored-by: Open Codex <hff582580@gmail.com>")
1616
);
1717
}
1818

1919
#[test]
2020
fn resolve_value_handles_default_custom_and_blank() {
2121
assert_eq!(
2222
resolve_attribution_value(/*config_attribution*/ None),
23-
Some("Codex <noreply@openai.com>".to_string())
23+
Some("Open Codex <hff582580@gmail.com>".to_string())
2424
);
2525
assert_eq!(
2626
resolve_attribution_value(Some("MyAgent <me@example.com>")),

codex-rs/core/src/config/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ pub struct Config {
474474
/// This top-level setting only takes effect when `[features].codex_git_commit`
475475
/// is enabled.
476476
///
477-
/// - `None`: use default attribution (`Codex <noreply@openai.com>`)
477+
/// - `None`: use default attribution (`Open Codex <hff582580@gmail.com>`)
478478
/// - `Some("")` or whitespace-only: disable commit attribution
479479
/// - `Some("...")`: use the provided attribution text verbatim
480480
pub commit_attribution: Option<String>,

docs/config.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ For a full configuration reference, see [this documentation](https://developers.
88

99
## Commit attribution
1010

11-
Codex can add a [git trailer](https://git-scm.com/docs/git-interpret-trailers) to
12-
generated commit messages so commits make Codex's involvement explicit. This
13-
behavior is gated by the `codex_git_commit` feature flag; the top-level
11+
Open Codex can add a [git trailer](https://git-scm.com/docs/git-interpret-trailers)
12+
to generated commit messages so commits make Open Codex's involvement explicit.
13+
This behavior is gated by the `codex_git_commit` feature flag; the top-level
1414
`commit_attribution` setting is only used when that feature is enabled.
1515

1616
Add the following to `~/.codex/config.toml`:
1717

1818
```toml
19-
commit_attribution = "Codex <noreply@openai.com>"
19+
commit_attribution = "Open Codex <hff582580@gmail.com>"
2020

2121
[features]
2222
codex_git_commit = true
2323
```
2424

25-
When enabled, Codex appends a `Co-authored-by:` trailer using the configured
26-
attribution value. If `commit_attribution` is omitted, Codex uses
27-
`Codex <noreply@openai.com>`. Set `commit_attribution = ""` to disable the
25+
When enabled, Open Codex appends a `Co-authored-by:` trailer using the configured
26+
attribution value. If `commit_attribution` is omitted, Open Codex uses
27+
`Open Codex <hff582580@gmail.com>`. Set `commit_attribution = ""` to disable the
2828
trailer while leaving the feature flag enabled.
2929

3030
## OpenTelemetry Trace Metadata

0 commit comments

Comments
 (0)