Repository navigation
fix(copilot): resolve transport routing bug for issue #99240 - #109623
fourdollars wants to merge 4 commits into
Conversation
|
Thanks for the contribution. This PR has been inactive for a while and still is not in a landable state. Close this external PR as abandoned: its last code update was 33 days ago, it no longer merges cleanly, and the two previously reported correctness defects remain on the same head. So I’m closing this as inactive for now. If you pick the work back up, push a rebased branch with green checks and reopen (or open a fresh PR) and it will be reviewed again. Review detailsBest possible solution: Keep the current provider-owned catalog policy; if the original behavior still reproduces on current main, submit a rebased focused fix that proves the live endpoint contract and preserves explicit capability opt-outs. Do we have a high-confidence way to reproduce the issue? Yes for the introduced defects by source inspection: a non-string endpoint entry reaches Is this the best way to solve the issue? No. The current branch creates a competing stale-metadata exception without proving a positive capability; a fresh, current-main repair should use the existing provider-owned capability mapping. Security review: Security review cleared: The patch adds no dependency, workflow, secret, permission, or authority-bearing behavior; its catalog-input weakness is a functional availability concern. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 5d07c11ccef2. |
|
Addressing the two blocking asks from the bot review:
Redacted live run against a Juju-deployed OpenClaw gateway with GitHub Copilot auth: $ openclaw models inspect --model github-copilot/claude-sonnet-4.6
# ...
api: anthropic-messages
compat.supportedReasoningEfforts: [low, medium, high, max]Before fix: $ openclaw agent chat --provider github-copilot --model claude-sonnet-4.6 --thinking high "ping"
Error: Invalid thinking level "high". Use one of: offAfter fix: $ openclaw agent chat --provider github-copilot --model claude-sonnet-4.6 --thinking high "ping"
# request succeeds; response returned by claude-sonnet-4.6Transport selection proof for advertised endpoints: # provider catalog includes .../messages in supported_endpoints
# resolved OpenClaw model api => anthropic-messages
Current patch keeps the stale-metadata guard in shared resolver because the failure occurs after catalog normalization and manifests as That said, I agree the long-term ownership should stay plugin-side where possible. If maintainers want strict provider-only policy, I can follow with a narrow refactor to move this Copilot-Claude stale-metadata decision into the GitHub Copilot provider profile hook and keep shared resolver logic generic. Also, there is no persistent data-model change in this PR; If this satisfies the proof gate, please re-run review:
|
2092299 to
32dfb8a
Compare
…adata Allow github-copilot Claude models on anthropic-messages transport to keep non-off thinking levels even when catalog reasoning is stale or false, and cover both stale and compat-effort cases with regressions. Co-authored-by: Copilot <[email protected]>
…vertised Treat supported_endpoints entries containing messages as anthropic-messages transport so Copilot Claude routing does not fall back to responses/completions heuristics. Co-authored-by: Copilot <[email protected]>
32dfb8a to
9daf684
Compare
|
ClawSweeper recorded closeout evidence for this proposed close.
|
What Problem This Solves
Fixes #99240 by ensuring the Copilot transport is selected from advertised endpoint capabilities, including stale-catalog fallback handling for Anthropic-compatible paths.
Why This Change Was Made
User Impact
Users get reliable provider routing and expected behavior when endpoint capabilities differ or metadata is stale.
Evidence