From 4c65eaf501f3ba9f56c5f669eac7cfb5a582f3f8 Mon Sep 17 00:00:00 2001 From: Lycidias93 <42116872+Lycidias93@users.noreply.github.com> Date: Thu, 17 Sep 2026 17:42:01 +0200 Subject: [PATCH] fix: keep Sortify Action WebUI alive --- .webui-core | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 8 ++++++++ RELEASE_NOTES_v4.8.8-webui-action-sighup-hotfix.md | 10 ++++++++++ module/module.prop | 6 +++--- tools/build-release.sh | 4 ++-- tools/test-vnext.sh | 4 ++-- tools/test-webui-actions-hotfix.sh | 2 +- webui.lock | 6 +++--- 9 files changed, 38 insertions(+), 12 deletions(-) create mode 100644 RELEASE_NOTES_v4.8.8-webui-action-sighup-hotfix.md diff --git a/.webui-core b/.webui-core index 1763a18..0d5c724 160000 --- a/.webui-core +++ b/.webui-core @@ -1 +1 @@ -Subproject commit 1763a1885f7734f2bd425e9e079947d921f29240 +Subproject commit 0d5c724711733b6f794790ef96d718e96c64c258 diff --git a/CHANGELOG.md b/CHANGELOG.md index 28aaa5b..a50d949 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ + +## 4.8.8-webui-action-sighup-hotfix - Magisk Action WebUI lifetime + +- Fixed the Magisk **Action** browser launch sometimes reaching a stopped `127.0.0.1` WebUI server. +- Updated the shared WebUI Core so the standalone server survives the Action shell ending. +- Existing Sortify settings and sorting behavior remain unchanged. + + ## 4.8.7-sort-performance - Single-pass productive sorting diff --git a/README.md b/README.md index e6e8c83..dea1524 100755 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ + +## vNext: Sortify Dispatch 4.8.8 + +Candidate hotfix for the Magisk **Action** button: the standalone loopback WebUI server now uses shared WebUI Core 0.6.6, which keeps the server alive after the Action shell exits instead of leaving the browser on `ERR_CONNECTION_REFUSED`. Existing Sortify settings and sorting behavior are unchanged. + +Stable `update.json` remains on 4.8.7 until exact-device Action-button acceptance passes. + + ## Sortify Dispatch 4.8.7 diff --git a/RELEASE_NOTES_v4.8.8-webui-action-sighup-hotfix.md b/RELEASE_NOTES_v4.8.8-webui-action-sighup-hotfix.md new file mode 100644 index 0000000..08f2716 --- /dev/null +++ b/RELEASE_NOTES_v4.8.8-webui-action-sighup-hotfix.md @@ -0,0 +1,10 @@ +# Sortify Dispatch 4.8.8 - Magisk Action WebUI hotfix + +Candidate hotfix for the module-manager Action button. + +- Keeps the loopback WebUI server alive after the Magisk Action shell exits. +- Prevents the external browser from landing on `ERR_CONNECTION_REFUSED` because the server stopped before the first request. +- Updates the shared WebUI Core to 0.6.6. +- Preserves existing Sortify settings and sorting behavior. + +Stable update metadata remains on 4.8.7 until exact-device Action-button acceptance passes. diff --git a/module/module.prop b/module/module.prop index 7472d65..fb254a6 100644 --- a/module/module.prop +++ b/module/module.prop @@ -1,8 +1,8 @@ id=sortify name=Sortify Dispatch -version=4.8.7-sort-performance -versionCode=34 +version=4.8.8-webui-action-sighup-hotfix +versionCode=35 author=xCaptaiN09 + Lycidias93 -description=Sortify Dispatch with single-pass sorting, 30-day local protected-artifact retention, reliable WebUI jobs, persistent config and SDD policy v4115. +description=Sortify Dispatch with SIGHUP-safe Magisk Action WebUI, single-pass sorting, protected retention, persistent config and SDD policy v4115. updateJson=https://raw.githubusercontent.com/Lycidias93/Sortify-Dispatch/main/update.json banner=banner.png diff --git a/tools/build-release.sh b/tools/build-release.sh index f6218dc..c2bf2d4 100755 --- a/tools/build-release.sh +++ b/tools/build-release.sh @@ -3,8 +3,8 @@ set -euo pipefail ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd) CORE="$ROOT/.webui-core" -CORE_COMMIT=1763a1885f7734f2bd425e9e079947d921f29240 -CORE_VERSION=0.6.4 +CORE_COMMIT=0d5c724711733b6f794790ef96d718e96c64c258 +CORE_VERSION=0.6.6 MODULE_SRC="$ROOT/module" DIST="$ROOT/dist" diff --git a/tools/test-vnext.sh b/tools/test-vnext.sh index 23fba55..6339503 100644 --- a/tools/test-vnext.sh +++ b/tools/test-vnext.sh @@ -3,8 +3,8 @@ set -euo pipefail ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd) CORE="$ROOT/.webui-core" -CORE_COMMIT=1763a1885f7734f2bd425e9e079947d921f29240 -CORE_VERSION=0.6.4 +CORE_COMMIT=0d5c724711733b6f794790ef96d718e96c64c258 +CORE_VERSION=0.6.6 MODE=${1:-all} required=( diff --git a/tools/test-webui-actions-hotfix.sh b/tools/test-webui-actions-hotfix.sh index e2e1c08..e2a1647 100644 --- a/tools/test-webui-actions-hotfix.sh +++ b/tools/test-webui-actions-hotfix.sh @@ -55,7 +55,7 @@ assert 'guard_status=timeout' in payload.get('message', ''), payload PY echo 'guard_status_timeout_semantic_transport=PASS' -[[ "$(tr -d '\r\n' < "$ROOT/.webui-core/CORE_VERSION")" == "0.6.4" ]] +[[ "$(tr -d '\r\n' < "$ROOT/.webui-core/CORE_VERSION")" == "0.6.6" ]] grep -Fq 'server_detach=hup_safe' "$ROOT/.webui-core/module/action.sh" grep -Fq 'nohup "$@" > "$LOG_FILE" 2>&1 &' "$ROOT/.webui-core/module/action.sh" grep -Fq "trap '' HUP" "$ROOT/.webui-core/module/action.sh" diff --git a/webui.lock b/webui.lock index 432e74a..accf52b 100644 --- a/webui.lock +++ b/webui.lock @@ -1,8 +1,8 @@ schema=sortify-dispatch-webui-core-lock-v1 template_repository=Lycidias93/android-root-module-webui-template -template_commit=1763a1885f7734f2bd425e9e079947d921f29240 -core_version=0.6.4 -core_manifest_sha256=94600c81b15571571e175f8a16e92177a77269541165f19886c86c0c332e1119 +template_commit=0d5c724711733b6f794790ef96d718e96c64c258 +core_version=0.6.6 +core_manifest_sha256=50f92987c0cb2f17e0a4374be2922d6e7b1f2ca8f4bfc384ee7842cdbbd87b83 consumption_model=pinned_gitlink_build_stage_sync browser_transport=loopback_only bootstrap=one_time_token_to_httponly_cookie