Skip to content

Cline: a passing command counts as failed when its output mentions an exit code anywhere #171

Open

Description

@aayank13

Cline reports no exit code, so the adapter searches the result text for exit code N, anywhere in it. A passing npm test whose log says child process exited with exit code 1 (retrying) is journaled as failed with an error signature, and an error recall fires.

Applies to the agent support in #149.

Files:

  • crates/trodden/src/harness/cline.rs

Fix idea: only look at the last non-empty line (or the first and last), in the form Cline itself prints.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: hooksClaude Code hooksbugSomething isn't workingpriority: lowFix when convenient

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions