Skip to content

Fix #86: Validate config key in ReportManager.reconstruct()#150

Merged
himanshu231204 merged 2 commits into
OpenAgentHQ:mainfrom
fazalpsinfo-cmyk:fix-86-reconstruct-config-validation
Jul 15, 2026
Merged

Fix #86: Validate config key in ReportManager.reconstruct()#150
himanshu231204 merged 2 commits into
OpenAgentHQ:mainfrom
fazalpsinfo-cmyk:fix-86-reconstruct-config-validation

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Description

Fixes #86 - ReportManager.reconstruct() silently creates a default Config(**{}) when the saved report data has no config key (or an empty dict). This means reconstructed reports silently get wrong configuration values (wrong model, wrong dataset path, wrong provider), corrupting experiment records without warning.

Changes

  • Added validation that the config key exists and has values
  • Raises ValueError with a clear message when config is missing

Related

Fixes #86


Support open-source contributions: https://buymeacoffee.com/muhamedfazalps

@himanshu231204 himanshu231204 requested review from himanshu231204 and removed request for himanshu231204 July 15, 2026 12:11
@himanshu231204 himanshu231204 merged commit 016a4e3 into OpenAgentHQ:main Jul 15, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congratulations @fazalpsinfo-cmyk!

Your pull request has been successfully merged into main. 🚀

Thank you for contributing to OpenAgentHQ and helping improve the project.

We truly appreciate your contribution and hope to see you back with more amazing PRs!

Happy Open Sourcing! ❤️

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.

reports(manager): reconstruct() silently creates default Config when config section is missing

2 participants