Skip to content

detect remote document URL replacements during sync#12

Open
paulsonnentag wants to merge 1 commit intomainfrom
fix-pulling-changes
Open

detect remote document URL replacements during sync#12
paulsonnentag wants to merge 1 commit intomainfrom
fix-pulling-changes

Conversation

@paulsonnentag
Copy link
Copy Markdown
Contributor

Add URL replacement detection in ChangeDetector: when a peer replaces a document entirely (creating a new URL in the directory entry), the old snapshot-centric scan misses it. Now detected during the directory walk when a path's URL differs from the snapshot entry.

I've decided it's better to make a relative local change instead of reconciling this problem properly.

I tried to match the current code formatting with the .prettierrc. I couldn't figure out fully what configuration the code currently uses. I can fix this if you let me know what configuration you are using

Add URL replacement detection in ChangeDetector: when a peer replaces a
document entirely (creating a new URL in the directory entry), the old
snapshot-centric scan misses it. Now detected during the directory walk
when a path's URL differs from the snapshot entry.

Also add prettier for code formatting and remoteUrl field to DetectedChange.

Made-with: Cursor
@paulsonnentag paulsonnentag requested a review from chee March 3, 2026 12:35
@chee
Copy link
Copy Markdown
Member

chee commented Mar 3, 2026

could you add a failing test for this and show that this fixes it?

I tried to match the current code formatting with the .prettierrc. I couldn't figure out fully what configuration the code currently uses. I can fix this if you let me know what configuration you are using

the current configuration is "whatever claude outputs"

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