Skip to content

bug: ValidationException "Improperly formed request" after long conversation + str_replace #3647

@RichardScottOZ

Description

@RichardScottOZ

Checks

Operating system

wsl linux ubuntu

Expected behaviour

Description: After a lengthy conversation (with context summary loaded), attempting a str_replace edit triggers two
consecutive ValidationException errors with "Improperly formed request" at crates/chat-cli/src/cli/chat/mod.rs:1467. The
edit actually succeeds but the response fails. No user-friendly recovery message — just raw Rust backtraces. Should
suggest /compact instead.

Actual behaviour

Description: After a lengthy conversation (with context summary loaded), attempting a str_replace edit triggers two
consecutive ValidationException errors with "Improperly formed request" at crates/chat-cli/src/cli/chat/mod.rs:1467. The
edit actually succeeds but the response fails. No user-friendly recovery message — just raw Rust backtraces. Should
suggest /compact instead.

Steps to reproduce

fill a context and keep going with a query

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions