fix: route remaining cli-backed helper runs through CLI paths#57327
fix: route remaining cli-backed helper runs through CLI paths#57327nicko-ai wants to merge 15 commits into
Conversation
Greptile SummaryThis PR fixes Changes:
Confidence Score: 5/5Safe to merge — the fix is minimal and correct, all changed paths are covered by new and updated tests, and no regressions were introduced. All findings are P2 or lower. The core logic change in providers.ts is small (adds one OR-clause to an existing filter), the hookAliases additions match the established pattern already used by google-vertex, and the tests properly exercise the two-hop codex-cli → openai → openai-codex resolution path that is the most subtle part of the fix. No files require special attention.
|
| Filename | Overview |
|---|---|
| src/plugins/providers.ts | Extends resolveOwningPluginIdsForProvider to match against plugin.cliBackends in addition to plugin.providers. The change is a single OR-clause addition consistent with how PluginManifestRecord.cliBackends is already populated from the manifest. |
| extensions/anthropic/index.ts | Adds hookAliases: ['claude-cli'] to the Anthropic provider registration, following the same pattern as google-vertex. Allows matchesProviderId() in provider-runtime.ts to resolve the runtime hook plugin when the provider namespace is claude-cli. |
| extensions/openai/openai-codex-provider.ts | Adds hookAliases: ['codex-cli'] to the OpenAI Codex provider. Mirrors the Anthropic change and enables the two-hop resolution: manifest openai.cliBackends=['codex-cli'] → load openai plugin → openai-codex provider matched via hookAliases. |
| src/plugins/provider-runtime.test.ts | Adds a new test covering the CLI backend → owning plugin → runtime provider hook chain, including the non-trivial codex-cli → openai (owning plugin) → openai-codex (matched provider) case. |
| src/plugins/providers.test.ts | Adds anthropic and openai entries (with cliBackendIds) to the shared manifest fixture and adds a focused ownership test. An existing snapshot assertion is correctly widened to include the two new provider plugins. |
Reviews (1): Last reviewed commit: "fix: resolve provider runtime hooks for ..." | Re-trigger Greptile
bfd2355 to
71e5b52
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d080578d1c
ℹ️ 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".
d080578 to
62bbcd9
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d860fc05a5
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 52dd394612
ℹ️ 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".
965dbb9 to
c707fdc
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c707fdc0f5
ℹ️ 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".
c707fdc to
743376d
Compare
743376d to
e5e1fa5
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2f4b2501ec
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b4871863f0
ℹ️ 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".
b487186 to
b2777ff
Compare
b2777ff to
8b204c4
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8b204c41c8
ℹ️ 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".
b2fc749 to
a748701
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a7487018a1
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1baad9112d
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 549d770fb2
ℹ️ 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".
549d770 to
cec022f
Compare
Summary
Latest
mainalready has the primary/direct CLI backend dispatch fix from #57326.This PR keeps the remaining helper paths on the same dispatch path when the selected runtime is CLI-backed:
models status --probeChanges
runCliAgent()Fixes #57326