continue icon indicating copy to clipboard operation
continue copied to clipboard

GPT-5.5 Agent mode fails after terminal tool execution with “function_call was provided without its required reasoning item”

Open 7d4b9 opened this issue 4 months ago • 4 comments

Before submitting your bug report

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

  1. Configure Continue with OpenAI GPT-5.5.
  2. Open a local git repository.
  3. Ask Continue to analyze all *.hcl files.
  4. Continue invokes the Terminal tool.
  5. The terminal command completes successfully.
  6. Continue crashes while processing the model response.

Example command executed:

from pathlib import Path
for p in Path(".").rglob("*.hcl"):
    print(p)
Image Image

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

7d4b9 avatar Jul 02 '26 05:07 7d4b9

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).

joerno avatar Jul 21 '26 08:07 joerno

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.

d3f4w2 avatar Jul 29 '26 03:07 d3f4w2

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.

github-actions[bot] avatar Oct 28 '26 01:10 github-actions[bot]

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.

github-actions[bot] avatar Nov 08 '26 01:11 github-actions[bot]