Skip to content

[codex] Bind local previews to hydrated backend CDE files#42

Merged
ActiveInAI merged 1 commit into
mainfrom
codex/cde-refresh-dedupe-20260518
May 18, 2026
Merged

[codex] Bind local previews to hydrated backend CDE files#42
ActiveInAI merged 1 commit into
mainfrom
codex/cde-refresh-dedupe-20260518

Conversation

@ActiveInAI

Copy link
Copy Markdown
Owner

Summary

  • Bind local preview metadata onto an existing backend CDE file node when backend metadata hydrates before the local upload index.
  • Match backend/local records by module, parent, filename, size, and checksum so the CDE workbench keeps one canonical row while still enabling local lightweight preview.
  • Add a frontend adapter contract test for the backend-first hydration order.

Root Cause

The previous upload/metadata dedupe handled the local-first order. After a refresh, backend CDE nodes can hydrate first and the local upload index can hydrate later; in that order the adapter could add a second local-upload row instead of enriching the backend row with preview metadata.

Validation

  • bun run test -- lib/business-workflow.test.ts
  • bun run test
  • bun run typecheck
  • bun run lint
  • bun run build
  • python3 tools/production_readiness_contract.py

@ActiveInAI ActiveInAI merged commit 5d475ec into main May 18, 2026
6 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