Skip to content

Codex: a command whose output contains "rejected by user" is recorded as interrupted #172

Open

Description

@aayank13

The Codex parser checks the whole output for "rejected by user" / "aborted by user" before reading the exit code header. rg -n 'rejected by user' src with Process exited with code 0, or a test run that prints such a string, becomes interrupted, and a real passing check can drop out of the trace.

Applies to the agent support in #149.

Files:

  • crates/trodden-capture/src/codex.rs

Fix idea: use the exit code header when there is one, and only treat header-less outputs (the refusal text Codex writes instead of running the command) as interruptions.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions