Skip to content

[Auto] session_failure: The request was malformed and could not be processed. An assistant message with  #630

Description

@igorcosta

Auto-Reported Autohand CLI Error

Field Value
Error Type session_failure
CLI Version 0.8.2
Model gpt-5.4
Provider openai
Platform linux 7.0.0-34-generic
Session ID 3388b01a-9292-4854-8a34-921f59c0b9c4-1790643576589
Report ID 6EwKzKYIitVuDYUV3kqKa

Error Message

The request was malformed and could not be processed.
An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_NmMkE121iubUnNtsbeKqFvS0, call_tA5QliIFHtaY8zSz06UGovQl, call_OUwsUq6W8Y3BCbOK80UNupnd, call_lBZi530EUELsuwSHRnMA0cu9, call_RvdvfiJbUGOO7it4JiwbnoBG

Stack Trace

ApiError: The request was malformed and could not be processed.
An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_NmMkE121iubUnNtsbeKqFvS0, call_tA5QliIFHtaY8zSz06UGovQl, call_OUwsUq6W8Y3BCbOK80UNupnd, call_lBZi530EUELsuwSHRnMA0cu9, call_RvdvfiJbUGOO7it4JiwbnoBG
    at makeError (/$bunfs/root/autohand-linux-x64:71223:22)
    at buildApiError (/$bunfs/root/autohand-linux-x64:91888:51)
    at async complete (/$bunfs/root/autohand-linux-x64:91773:37)
    at async runAgentReactLoop (/$bunfs/root/autohand-linux-x64:153618:45)
    at processTicksAndRejections (native:7:39)

Session Context

  • Conversation length: 10 messages
  • Context usage: 3%
  • Last tools used: fff_find, list_tree, read_file, read_file, read_file, read_file, read_file, read_file, read_file
  • Retry attempt: 0 / 3

Additional Context

{
  "clientType": "cli",
  "retryAttempt": 0,
  "maxRetries": 3
}

Auto-reported by Autohand CLI v0.8.2 | Report ID: 6EwKzKYIitVuDYUV3kqKa

Activity

  1. igorcosta commented on Oct 8, 2026

    @igorcosta
    ContributorAuthor

    Triaged report 6EwKzKYIitVuDYUV3kqKa (CLI 0.8.2, OpenAI gpt-5.4). This is an outbound tool-history integrity failure. Current main already has recovery in ReactLoopRunner from commit 87dc29a, plus context-crop coverage, but that does not establish that this reported history is repaired. The report omits the outbound message sequence needed to reproduce the missing results.

    Keeping this issue open. Next step: reproduce the reported assistant/tool sequence, including context cropping or session resume, and assert that every tool call has its result in the actual OpenAI request. The feedback/reporting PR does not change this provider path. The identical auto-report #629 is being consolidated here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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