/refine failures
Nobody has claimed this yet.
- 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:
- /refine internally invokes gpt-4o-mini (a lightweight utility model) to rewrite your prompt into tags.
- The request incorrectly included reasoningEffort: "medium" as a parameter.
- 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 .
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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