Skip to content

fix: follow a rename of the file open in an app - #4300

Merged
JammingBen merged 1 commit into
mainfrom
fix/text-editor-rename-conflict
Nov 5, 2026
Merged

JammingBen merged 1 commit into
mainfrom
fix/text-editor-rename-conflict

Conversation

@JammingBen

Copy link
Copy Markdown
Member

Description

Renaming a file while it's open in an app (in another tab, or from the app's own sidebar) made the next save fail with a conflict, because saves still went to the old path.

The app wrapper now follows such a rename: it updates the resource and replaces the route with the new path, without reloading the content. Unsaved changes are kept, and the next save goes to the renamed file.

Not followed (they behave as before):

  • moves to another folder, since the new parent may not be reachable from the current space
  • renames that change the extension, since the app would read the content in another format

Related Issue

@JammingBen JammingBen self-assigned this Nov 5, 2026
@JammingBen
JammingBen force-pushed the fix/text-editor-rename-conflict branch from 6be7128 to 8003839 Compare November 5, 2026 12:10
@JammingBen
JammingBen marked this pull request as ready for review November 5, 2026 12:23

@AlexAndBear AlexAndBear left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 👍

@JammingBen
JammingBen merged commit 0d21383 into main Nov 5, 2026
28 checks passed
@JammingBen
JammingBen deleted the fix/text-editor-rename-conflict branch November 5, 2026 12:49
@openclouders openclouders mentioned this pull request Nov 5, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text-editor: Renaming a file while it's edited leads to a conflict

2 participants