github / github/copilot-cli

/refine failures

Open
#4,747 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

Describe the bug

Session Diagnosis

Root cause found. At  06:55:33Z , the  /refine  command failed with a 400 Bad Request:

"reasoning_effort "medium" was provided, but model gpt-4o-mini-2024-07-18 does not support reasoning effort"

What happened:

  1.  /refine  internally invokes  gpt-4o-mini  (a lightweight utility model) to rewrite your prompt into    tags.
  2. The request incorrectly included  reasoningEffort: "medium"  as a parameter.
  3.  gpt-4o-mini-2024-07-18  doesn't support the  reasoning_effort  parameter at all (only reasoning-capable models like o1/o3 do) — Azure OpenAI rejected the call outright with  invalid_reasoning_effort .
  4. The call failed in 545ms,  turn_failed  fired, and the CLI silently fell back to "Your text was left unchanged" instead of surfacing the real error.

This is a CLI-side bug, not an environment/proxy/auth issue: the refine feature is passing a reasoning-effort setting to a model that categorically rejects it. It's unrelated to the Blue Coat proxy or credentials — the request reached the API fine and got a clean structured rejection.

Affected version

1.0.83

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the /refine command and trace its internal gpt-4o-mini request, focusing on how reasoningEffort is added and how turn_failed is handled. Done means the request no longer sends the unsupported setting and the actual failure is surfaced instead of silently reporting that the text was unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, shell
Domain
api, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.