Skip to content

feat: prefer git for curated plugin sync #15275

Merged
xl-openai merged 3 commits intomainfrom
xl/plugins2
Mar 20, 2026
Merged

feat: prefer git for curated plugin sync #15275
xl-openai merged 3 commits intomainfrom
xl/plugins2

Conversation

@xl-openai
Copy link
Copy Markdown
Collaborator

start with git clone, fallback to http.

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 39ada667f7

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +70 to +80
match sync_openai_plugins_repo_via_git(codex_home, git_binary) {
Ok(remote_sha) => Ok(remote_sha),
Err(GitCuratedRepoSyncError::GitUnavailable(err)) => {
warn!(
error = %err,
git_binary,
"git unavailable for curated plugin sync; falling back to GitHub HTTP"
);
sync_openai_plugins_repo_via_http(codex_home, api_base_url)
}
Err(GitCuratedRepoSyncError::SyncFailed(err)) => Err(err),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Fallback to HTTP on all git sync failures

Only GitUnavailable errors trigger HTTP fallback. Any other git failure (network/auth/timeout/non-zero exit) returns immediately, so curated sync now fails in environments where git is installed but unusable even though the HTTP path could succeed. This conflicts with the stated behavior of "start with git clone, fallback to http."

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator

@alexsong-oai alexsong-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering why git clone is preferred?

Base automatically changed from xl/plugins3 to main March 20, 2026 05:01
@xl-openai
Copy link
Copy Markdown
Collaborator Author

@alexsong-oai GitHub has rate limits for anonymous HTTP downloads.

@xl-openai xl-openai merged commit e5f4d1f into main Mar 20, 2026
44 of 56 checks passed
@xl-openai xl-openai deleted the xl/plugins2 branch March 20, 2026 07:06
@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 2026
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.

2 participants