Skip to content

Put back the sessions json. It was useful after all#1597

Merged
dgageot merged 2 commits intodocker:mainfrom
dgageot:cagent-evals-json
Feb 4, 2026
Merged

Put back the sessions json. It was useful after all#1597
dgageot merged 2 commits intodocker:mainfrom
dgageot:cagent-evals-json

Conversation

@dgageot
Copy link
Member

@dgageot dgageot commented Feb 4, 2026

No description provided.

Signed-off-by: David Gageot <david.gageot@docker.com>
@dgageot dgageot requested a review from a team as a code owner February 4, 2026 18:21
github-actions[bot]
github-actions bot previously approved these changes Feb 4, 2026
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Approved - No bugs found in the changed code.

This PR successfully adds back the sessions JSON saving functionality. The implementation:

  • ✅ Correctly extracts sessions from run.Results and handles nil sessions
  • ✅ Uses the existing saveJSON helper for consistent serialization
  • ✅ Includes comprehensive test coverage with proper assertions
  • ✅ Provides clear documentation explaining the purpose (human-readable format complementing SQLite)
  • ✅ Properly handles errors with logging

The code follows the existing patterns in the codebase and includes thorough testing that validates the functionality works correctly, including edge cases like nil sessions.

Signed-off-by: David Gageot <david.gageot@docker.com>
@dgageot dgageot merged commit 7568d81 into docker:main Feb 4, 2026
5 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.

2 participants