GPT-5.5 Agent mode fails after terminal tool execution with “function_call was provided without its required reasoning item”
Before submitting your bug report
- [x] I've tried finding an answer on the Continue docs site
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: macOS
- Continue version: 2.0.0
- IDE version:
- Model:gpt-5.5
- config:
name: Main Config
version: 1.0.0
schema: v1
models:
- name: GPT-5.5
provider: openai
model: gpt-5.5
apiKey: ${OPENAI_API_KEY}
roles:
- chat
- edit
- apply
Description
When using GPT-5.5 in Agent mode, Continue successfully executes terminal commands, but fails immediately after the tool execution.
The terminal command completes successfully, however Continue displays:
Error handling model response
and the request fails with:
{
"message":"Item 'fc_...' of type 'function_call'
was provided without its required 'reasoning' item:
'rs_...'.",
"type":"invalid_request_error",
"param":"input"
}
To reproduce
⸻
Reproduction
- Configure Continue with OpenAI GPT-5.5.
- Open a local git repository.
- Ask Continue to analyze all *.hcl files.
- Continue invokes the Terminal tool.
- The terminal command completes successfully.
- Continue crashes while processing the model response.
Example command executed:
from pathlib import Path
for p in Path(".").rglob("*.hcl"):
print(p)
The command finishes correctly.
The failure happens after tool execution.
⸻
Additional information
This issue is reproducible.
Initially I suspected DNS or NFS latency, but I reproduced it with:
- local repository
- local filesystem (no NFS)
- successful OpenAI API connectivity
- successful terminal execution
So the failure appears unrelated to networking.
Log output
The OpenAI Responses API works correctly when called directly with curl.
⸻
Error
Item 'fc_...' of type 'function_call' was provided without its required 'reasoning' item:
'rs_...'.
type=invalid_request_error
param=input
Can confirm this issue in my setup.
Environment:
- Continue in VS Code
- Remote-SSH project (Linux host)
- OpenAI-compatible endpoint via internal proxy
Continue config: name: ChatCompany version: 1.0.0 schema: v1 models:
- name: gpt-5.3-codex-company
provider: openai
model: gpt-5.3-codex
apiBase: https://chat.company-domain.cloud/en/api/openai/v1
capabilities:
- tool_use roles:
- chat
- edit
- apply
Behavior:
- Reproducible even with very small tool output (1–2 lines).
- Sometimes happens right after the first tool call in a fresh session, i.e. "grep ...".
- Error: "Item 'msg_...' of type 'message' was provided without its required 'reasoning' item: 'rs_...'" (also seen with function_call + missing reasoning item).
So this does not look like a large-output issue, but more like conversation item/state handling (possibly Responses API item forwarding with proxy in between).
Hi, I'd like to investigate this. I'll focus on the Responses API conversation-item path: preserving the reasoning item associated with a function call across terminal tool execution and the following request. I plan to add a focused regression test for a function-call/reasoning turn followed by a tool result, and keep the change scoped to message serialization/state handling. I searched the current open PRs and did not find an implementation for #12935.
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, you are welcome to leave a comment and this will keep the issue open. However please note that this repo is no longer being actively maintained.