Skip to content

Build broken on main: bad merge in openai_compat.rs leaves duplicated send_message tail (ae2f203) #3235

@Mic92

Description

@Mic92

Merge commit ae2f203 (PR #3232) has a botched conflict resolution in rust/crates/api/src/providers/openai_compat.rs: a duplicated tail of the old send_message body (the {"error": ...} pre-check and final deserialization block, lines 286-328) was left behind after the function's closing brace. This unbalances the braces and the crate no longer compiles:

error: unexpected closing delimiter: `}`
   --> crates/api/src/providers/openai_compat.rs:432:1
    |
121 | impl OpenAiCompatClient {
    |                         - this delimiter might not be properly closed...
...
328 |     }
    |     - ...as it matches this but it has different indentation
...
432 | }
    | ^ unexpected closing delimiter

error: could not compile `api` (lib) due to 1 previous error

Fix: delete the stray duplicated block at lines 286-328 (everything between the } that closes send_message at line 285 and the pub async fn stream_message definition at line 330).

Found while packaging claw-code for Nix in https://github.com/numtide/llm-agents.nix; we are carrying the deletion as a downstream patch until this is fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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