Skip to content

Conversation

@anantham
Copy link
Owner

Summary\nFixes a full-session import failure when exported diff results include fanVersionId: null.\n\n## Root Cause\nIndexedDB composite keys require valid key values; diffResults are exported with fanVersionId: null, but the store keyPath uses fanVersionId (normalized to "" at write time elsewhere). Import bypassed that normalization and wrote records directly, causing DataError.\n\n## Changes\n- services/db/operations/imports.ts: normalize diffResults records before storing.\n- Tests: strengthen diffResults export/import assertions + add adversarial/unit coverage for provider/telemetry paths.\n- docs/WORKLOG.md: log entry.\n\n## Testing\n- npx tsc --noEmit\n- npm test -- --run

@vercel
Copy link

vercel bot commented Dec 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
lexicon-forge Ready Ready Preview, Comment Dec 24, 2025 11:17am

@anantham anantham merged commit 720da27 into main Dec 24, 2025
3 checks passed
@anantham anantham deleted the fix/import-diffresults branch December 24, 2025 11:27
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