Skip to content

Conversation

@sepro
Copy link
Owner

@sepro sepro commented Jan 13, 2026

When add_game_to_file() validated existing records with relative screenshot paths,
it would fail because validation occurred from the wrong working directory. This fix
ensures the method changes to the JSON file's directory before validation, matching
the pattern already used in add_record_to_file().

  • Updated add_game_to_file to change working directory before validation
  • Added test case to reproduce and verify the fix
  • All existing tests continue to pass

claude and others added 2 commits January 13, 2026 21:22
When add_game_to_file() validated existing records with relative screenshot paths,
it would fail because validation occurred from the wrong working directory. This fix
ensures the method changes to the JSON file's directory before validation, matching
the pattern already used in add_record_to_file().

- Updated add_game_to_file to change working directory before validation
- Added test case to reproduce and verify the fix
- All existing tests continue to pass
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.

3 participants