Skip to content

[Auto] session_failure: OpenAI API error: 400 {"error":{"message":"tool message could not be matched to  #510

Description

@igorcosta

Auto-Reported Error

Field Value
Error Type session_failure
CLI Version 0.8.3
Model gpt-5.6-luna
Provider openai
Platform darwin 25.1.0
Session ID d447dbc5-9ac4-44ff-bcaf-88915cbbc5ad-1786919751069
Report ID I8mIhB8T2hY7QHSWVhrUg

Error Message

OpenAI API error: 400 {"error":{"message":"tool message could not be matched to a preceding tool call; the Responses API requires every function_call_output to reference a function_call (supply tool_call_id)","type":"invalid_request_error","param":null,"code":null}}

Stack Trace

Error: OpenAI API error: 400 {"error":{"message":"tool message could not be matched to a preceding tool call; the Responses API requires every function_call_output to reference a function_call (supply tool_call_id)","type":"invalid_request_error","param":null,"code":null}}
    at OpenAIProvider.complete (file://~/.npm-global/lib/node_modules/autohand-cli/dist/chunk-B53A2NM2.js:554:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async AutohandAgent.runReactLoop (file://~/.npm-global/lib/node_modules/autohand-cli/dist/index.js:15029:22)
    at async AutohandAgent.runInstruction (file://~/.npm-global/lib/node_modules/autohand-cli/dist/index.js:14737:7)
    at async AutohandAgent.runCommandMode (file://~/.npm-global/lib/node_modules/autohand-cli/dist/index.js:13946:5)
    at async runCLI (file://~/.npm-global/lib/node_modules/autohand-cli/dist/index.js:23448:7)
    at async Command.<anonymous> (file://~/.npm-global/lib/node_modules/autohand-cli/dist/index.js:22986:3)
    at async Command.parseAsync (~/.npm-global/lib/node_modules/autohand-cli/node_modules/commander/lib/command.js:1122:5)

Session Context

  • Conversation length: 4 messages
  • Context usage: 18%
  • Last tools used: git_status
  • Retry attempt: 1 / 3

Additional Context

{
  "retryAttempt": 1,
  "maxRetries": 3
}

Auto-reported by Autohand CLI v0.8.3 | Report ID: I8mIhB8T2hY7QHSWVhrUg

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions