Repository navigation
Conversation
| ### Claude models (Pro+ subscription required) | ||
|
|
||
| - `claude-opus-4.5` | ||
| - `claude-sonnet-4.5` | ||
| - `claude-sonnet-4` |
There was a problem hiding this comment.
Wrong Claude model id
This doc lists claude-sonnet-4.5, but the codebase consistently uses the dash form claude-sonnet-4-5 (and the built-in provider default list in this PR also adds the dot form). If Copilot expects the dash form, users will copy/paste an ID that gets rejected. Please align the Copilot Claude model IDs with the canonical IDs used elsewhere in this repo (e.g. claude-sonnet-4-5).
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/providers/github-copilot.md
Line: 80:84
Comment:
**Wrong Claude model id**
This doc lists `claude-sonnet-4.5`, but the codebase consistently uses the dash form `claude-sonnet-4-5` (and the built-in provider default list in this PR also adds the dot form). If Copilot expects the dash form, users will copy/paste an ID that gets rejected. Please align the Copilot Claude model IDs with the canonical IDs used elsewhere in this repo (e.g. `claude-sonnet-4-5`).
How can I resolve this? If you propose a fix, please make it concise.| timeout: [ | ||
| "timeout", | ||
| "timed out", | ||
| "deadline exceeded", | ||
| "context deadline exceeded", | ||
| "fetch failed", | ||
| ], |
There was a problem hiding this comment.
Misclassifies network failure
Adding the literal string "fetch failed" to the timeout patterns will classify generic undici/Node TypeError("fetch failed") network failures (DNS/TLS/connection refused, etc.) as timeout, which then triggers failover behavior via classifyFailoverReason. This is not necessarily a timeout and will change routing/retry behavior for non-timeout failures; consider classifying it separately or only when the underlying cause indicates an actual timeout.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/agents/pi-embedded-helpers/errors.ts
Line: 453:459
Comment:
**Misclassifies network failure**
Adding the literal string `"fetch failed"` to the timeout patterns will classify generic undici/Node `TypeError("fetch failed")` network failures (DNS/TLS/connection refused, etc.) as `timeout`, which then triggers failover behavior via `classifyFailoverReason`. This is not necessarily a timeout and will change routing/retry behavior for non-timeout failures; consider classifying it separately or only when the underlying cause indicates an actual timeout.
How can I resolve this? If you propose a fix, please make it concise.There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2d72e0e2a0
ℹ️ 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".
| timeout: [ | ||
| "timeout", | ||
| "timed out", | ||
| "deadline exceeded", | ||
| "context deadline exceeded", | ||
| "fetch failed", |
There was a problem hiding this comment.
Avoid treating generic “fetch failed” as timeout
Adding the literal "fetch failed" to the timeout patterns will classify any generic fetch failure as a timeout. In Node/undici, “fetch failed” is the default message for a wide range of network errors (DNS, TLS, connection refused), not only timeouts. This classification feeds into classifyFailoverReason and the embedded runner’s rotation/marking logic (see pi-embedded-runner/run.ts around the timeout handling), so a transient DNS/proxy misconfiguration would incorrectly mark auth profiles as timeout failures and rotate accounts instead of surfacing the connectivity issue. Consider matching more specific timeout signals (error codes) or inspecting the underlying error cause rather than the generic message.
Useful? React with 👍 / 👎.
- Add claude-opus-4.5, claude-sonnet-4.5, claude-sonnet-4 to default models - Use larger context window (200k) for Claude models - Document available models in GitHub Copilot docs - Classify 'fetch failed' as timeout error for failover handling
32c9983 to
f0fba02
Compare
bfc1ccb to
f92900f
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Add Claude model support (claude-sonnet-4, claude-opus-4.5) to the GitHub Copilot provider, enabling users to access Anthropic models through their Copilot subscription.
Greptile Overview
Greptile Summary
This PR expands the built-in
github-copilotprovider by adding Claude model IDs to the default Copilot model list and documenting the available Copilot models. It also tweaks failover classification to treat the stringfetch failedas a timeout.The main issues are around model-id correctness/consistency: the PR introduces
claude-sonnet-4.5(dot) but the rest of the repository uses the dash formclaude-sonnet-4-5; if Copilot expects the dash form, the new default will fail and the docs will cause users to copy an invalid ID. Additionally, treating genericfetch failednetwork errors as timeouts can trigger failover for non-timeout failures, altering behavior in cases like DNS/TLS/connection failures.Confidence Score: 3/5
claude-sonnet-4.5identifier appears inconsistent with established model-id conventions in this repo and may cause immediate runtime model-selection failures if Copilot expectsclaude-sonnet-4-5. Separately, classifying the generic undicifetch failederror as a timeout can change failover routing for non-timeout network failures.(2/5) Greptile learns from your feedback when you react with thumbs up/down!