Skip to content

fix: separate CLI responses from diagnostics - #210

Open
yeunmer2006 wants to merge 2 commits into
fmagent-project:mainfrom
yeunmer2006:fix/codex-cli-structured-output
Open

fix: separate CLI responses from diagnostics#210
yeunmer2006 wants to merge 2 commits into
fmagent-project:mainfrom
yeunmer2006:fix/codex-cli-structured-output

Conversation

@yeunmer2006

Copy link
Copy Markdown
Contributor

Summary

Fix structured verification failures when FM-Agent uses the codex-cli
backend.

Local agent CLIs write their final response to stdout and their
diagnostics/session transcript to stderr. FM-Agent previously merged these
streams, causing structured responses echoed in the transcript to be parsed
again.

This change:

  • captures stdout and stderr separately;
  • parses only stdout after a successful CLI invocation;
  • preserves both streams in the error message when the CLI exits unsuccessfully.

Fixes #207.

Capture stdout and stderr independently for local CLI model calls so structured verification parses only the final response. Preserve both streams on failures and cover the duplicate post-condition output reported in fmagent-project#207.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codex-cli backend returns duplicate JSON and breaks verification

1 participant