Skip to content

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

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 a69a77a9-11f2-484f-aa3a-75722221a7e5-1790643400042
Report ID GoB9dqFc9uC4nN16dmWw6

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_Le8xDj8196oSeDErGhfY4mke

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_Le8xDj8196oSeDErGhfY4mke
    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: 7 messages
  • Context usage: 3%
  • Last tools used: git_status, list_tree
  • Retry attempt: 0 / 3

Additional Context

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

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

Activity

  1. igorcosta commented on Oct 8, 2026

    @igorcosta
    ContributorAuthor

    Triaged report GoB9dqFc9uC4nN16dmWw6 (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 #627 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