mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-04-25 04:35:50 +03:00
[PR #348] [MERGED] fix: Detect script changes from remote repository to allow Script updates #379
Labels
No labels
bug
enhancement
enhancement
feature
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ProxmoxVE-Local#379
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/348
Author: @michelroegl-brunner
Created: 11/26/2025
Status: ✅ Merged
Merged: 11/26/2025
Merged by: @michelroegl-brunner
Base:
main← Head:fix/update_script📝 Commits (2)
577b965package-lock.json5d5eba7fix: detect script changes from remote repository📊 Changes
3 files changed (+90 additions, -37 deletions)
View changed files
📝
package-lock.json(+0 -14)📝
src/app/_components/ScriptDetailModal.tsx(+58 -13)📝
src/server/services/scriptDownloader.js(+32 -10)📄 Description
Problem
When a user loads a script from the default repo, it works fine. However, when the script changes in the remote repository (GitHub), the user doesn't get notified and cannot update. This happens because:
compareScriptContentquery is cached by React Query (defaultstaleTime: 30s)Solution
refetchOnMount: trueandstaleTime: 0tocompareScriptContentquery to bypass React Query cacheChanges
src/app/_components/ScriptDetailModal.tsx: Updated query options and added refresh buttonsrc/server/services/scriptDownloader.js: Added comprehensive logging and improved error handling🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.