Skip to content

When FormatError in the traj.json No Assistant response information and step number is not correct. #8

Description

@yishangupenn

Copied from upstream: SWE-agent/mini-swe-agent#737
Original author: @RobinChiu
Originally created: 2026-02-09


Describe the bug

When FormatError with no tool or json.loads, it will raise the FormatError exception. It didn't add the assistant message to history, it will cause

  1. mini-extra inspect didn't see the error format mesasage and the step number is not correct.
Image
  1. LLM server lack the error format message will be not able to correct it. It will over the step limit and stop.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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