Skip to content

fix: emit JSONL in --json mode (#676)#700

Open
didigamnithin wants to merge 1 commit intoOpenHands:mainfrom
didigamnithin:fix/676-jsonl-output
Open

fix: emit JSONL in --json mode (#676)#700
didigamnithin wants to merge 1 commit intoOpenHands:mainfrom
didigamnithin:fix/676-jsonl-output

Conversation

@didigamnithin
Copy link
Copy Markdown

Summary

  • make --json emit one valid JSON object per line instead of pretty-printed multi-line blocks
  • remove the --JSON Event-- delimiter output so the stream matches the documented JSONL contract
  • update json_callback tests to assert a single print call per event and valid JSON parsing

Testing

  • make format
  • make lint
  • uv run env HOME="$(mktemp -d)" pytest tests/test_utils.py -q

Closes #676

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.

bug: --json flag does not produce valid JSONL — emits pretty-printed blocks with --JSON Event-- markers

1 participant