Skip to content

Refactor CliBackend to Eliminate Output Parsing Duplication #31

Description

@Escoto

Description

Remove parse_output explicit implementations from the individual backends and move it to the CliBackend trait.

The parse_output method is defined as a required in the CliBackend trait within src/backend/mod.rs. and every implementation (claude.rs, codex.rs, gemini.rs) implements it, but this method is identical across all backends...

TO-DO

  1. Updated CliBackend trait in src/backend/mod.rs to provide a default implementation for parse_output.
  2. The parse_output method is removed from claude.rs, codex.rs, and gemini.rs.

Definition of Done

  • No parse_output code duplication
  • All existing tests for each backend (e.g., claude_test.rs, codex_test.rs, gemini_test.rs) pass without modification.

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