Skip to content

[FIX] Metadata Holes - #83

Merged
Avni2000 merged 1 commit into
mainfrom
holes
Feb 12, 2026
Merged

Avni2000 merged 1 commit into
mainfrom
holes

Conversation

@Avni2000

@Avni2000 Avni2000 commented Feb 12, 2026 •

Copy link
Copy Markdown
Owner

Fixes:

  • Notebook top-level metadata is always taken from current (unless auto-resolve produced a replacement). Incoming-only notebook metadata changes can be silently lost even if you “Use Incoming” per-cell. This is in the reconstruction path in resolver.ts.
  • “Cell added in both” only compares source; if both sides add same source but differ in metadata/outputs, it’s treated as non-conflict and will deterministically pick current (potentially dropping incoming metadata/outputs). This is in conflictDetector.ts.
  • Conflict detection uses JSON.stringify() for metadata/outputs comparison; key-order differences can create false positives/negatives. Switching to a stable stringify would reduce noise.

closes #39 #35

Summary by CodeRabbit

  • New Features

    • Added settings-aware conflict detection and auto-resolution for execution counts, outputs, and kernel versions.
    • Improved metadata conflict detection and merging across notebook versions.
  • Bug Fixes

    • Enhanced deterministic comparisons for outputs, metadata, and kernel information to ensure consistent conflict detection.
    • UI now accurately reflects auto-resolved notebook changes.
  • Tests

    • Added regression test for metadata-changed conflicts in cells.

- Notebook top-level metadata is always taken from current (unless auto-resolve produced a replacement). Incoming-only notebook metadata changes can be silently lost even if you “Use Incoming” per-cell. This is in the reconstruction path in resolver.ts.
- “Cell added in both” only compares source; if both sides add same source but differ in metadata/outputs, it’s treated as non-conflict and will deterministically pick current (potentially dropping incoming metadata/outputs). This is in conflictDetector.ts.
- Conflict detection uses JSON.stringify() for metadata/outputs comparison; key-order differences can create false positives/negatives. Switching to a stable stringify (like the one I added) would reduce noise.
@coderabbitai

coderabbitai Bot commented Feb 12, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch holes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Avni2000
Avni2000 changed the base branch from incoming-only-changes to main February 12, 2026 16:26
@Avni2000
Avni2000 merged commit 130d993 into main Feb 12, 2026
4 checks passed
@Avni2000
Avni2000 deleted the holes branch March 1, 2026 01:38
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.

[Test] Improve metadata comparison robustness

1 participant