Skip to content

fix: report command respects --format html parameter#36

Merged
Dongbumlee merged 1 commit into
developfrom
feature/copilot-skill-baseline-comparison
Mar 24, 2026
Merged

fix: report command respects --format html parameter#36
Dongbumlee merged 1 commit into
developfrom
feature/copilot-skill-baseline-comparison

Conversation

@Dongbumlee
Copy link
Copy Markdown
Collaborator

Summary

Fixes a bug where agentops report -f html would generate a markdown file instead of HTML.

Problem

In src/agentops/services/reporting.py, generate_report_from_results() had two issues:

  1. Default output filename was hardcoded to report.md regardless of report_format
  2. Returned output_report_path always pointed to .md, even when only HTML was generated

Fix

  • Default output suffix now matches report_format (report.html when html)
  • Returned path tracks the actually-written file

Testing

All 80 existing tests pass (python -m pytest tests/ -x -q)

The default output path was hardcoded to report.md regardless of the
--format flag. When -f html was passed, the file was still named
report.md and the returned path did not reflect the actual format.

- Default output filename now uses the correct suffix based on
  report_format (report.html when html, report.md otherwise)
- Returned output_report_path now tracks which file was actually
  written
@Dongbumlee Dongbumlee merged commit 8e2f428 into develop Mar 24, 2026
11 checks passed
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.

1 participant