Skip to content

v0.11.7 — Image Generation Persistence Fix

Choose a tag to compare

@xcl1989 xcl1989 released this 22 Jun 01:45

Fixed

  • Generated images disappear after streaming ends — root cause was a chain of issues:
    • _on_image_generated listened to TOOL_RESULT whose payload was truncated to 2k chars, causing JSON parse failures. Switched to MESSAGE_CREATED (full 20k result).
    • Tool messages now include name field for handler identification.
    • /api/files/image URL with token auth was unreliable. Server now inlines base64 image_data directly in message API response.
    • Frontend merge logic deduplicates screenshots when DB already has records.

Added

  • ImageGenerateRender — dedicated tool result renderer for image_generate, extracts image paths from JSON and renders inline.

Download

  • macOS (Apple Silicon): CrabAgent-0.11.7-arm64.dmg