Skip to content

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

Description

@7d4b9

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolsRelates to tool usagekind:bugIndicates an unexpected problem or unintended behavioros:macHappening specifically on Mac

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions