Skip to content

bug: LimitOverrunError in _receive_loop() crashes connection without recovery #62

@clementsirieix

Description

@clementsirieix

Summary

When a message exceeds the buffer limit, the _receive_loop() (acp/connection.py:151) method raises an unhandled LimitOverrunError which propagates up and terminates the entire connection, meaning that the agent becomes unresponsive.

Reproduction steps

Perform a request with a line exceeding 64kb, something like: go to unsplash to get a free picture of several MB, convert it into a base64 string, and use it your prompt.

Expected result

Large lines should be handled gracefully.

Actual result

The agent crashes.

Versions / environment

SDK 0.7.1, Zed, Mistral-Vibe ACP v2.0.2

Logs & screenshots

Open to submitting a fix?

  • I’m willing to open a PR for this bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions