Skip to content

Composio client: error payload without a successful flag is treated as success #53

Description

@YellowSnnowmann

Surfaced by CodeRabbit on #48 (client.rs ~L179-192). Pre-existing — engine original client.rs:179 has the identical unwrap_or(true); ported unchanged.

execute_direct defaults successful to true when the payload omits it, even if error is set. Consumers gate on the flag — checked_execute in google_docs.rs drives document creation from it — so an error payload can be stored as document content.

Fix: successful = successful && error.is_none() (after trimming/emptying the error string).

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