Skip to content

fix: keep an open app in place when the folder of its file gets renamed - #4292

Merged
AlexAndBear merged 2 commits into
mainfrom
fix/sse-rename-app-route
Nov 6, 2026
Merged

AlexAndBear merged 2 commits into
mainfrom
fix/sse-rename-app-route

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

When another session renamed the folder of a file open in the preview or another app, the app jumped to the folder and showed 'Failed to load'. The rename now only moves the view along when a folder list is open, an open app stays on its file, and Close still returns to the renamed folder.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: a rename of the current folder updates it without navigating while an app is open, and still follows on the folder routes of spaces, public links and guest links
  • test case 2: browser: preview open, folder renamed in another session: main switched to the folder with 'Failed to load' and Close went to the Personal root; now the preview stays, next/previous work and Close opens the renamed folder
  • test case 3: browser: the folder list still follows a rename of the open folder or subfolder, the text editor and public links behave as before

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear force-pushed the fix/sse-rename-app-route branch from 9a82f64 to 4dabe89 Compare November 5, 2026 13:50

@JammingBen JammingBen 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.

Found one issue:

  • Open pics/1.jpg in a folder with 4 or more images.
  • Rename pics in another session.
  • Click Next twice. 3.jpg requests the old path, gets a 404 and shows "Failed to load".

@AlexAndBear
AlexAndBear merged commit 8fe985f into main Nov 6, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/sse-rename-app-route branch November 6, 2026 13:56
@openclouders openclouders mentioned this pull request Nov 6, 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.

Renaming the folder of a file open in an app switches the app to the folder

2 participants