From a8dd6a27e075f1a340d0e1659015d0f0fe017792 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 23 Dec 2025 15:10:30 +0000 Subject: [PATCH 1/2] Update AI Overhaul plugin for 0.9.1 --- plugins/AIOverhaul/AIOverhaul.yml | 3 +-- plugins/AIOverhaul/BackendBase.js | 20 ++++++++++++++++++++ plugins/AIOverhaul/README.md | 6 ------ 3 files changed, 21 insertions(+), 8 deletions(-) delete mode 100644 plugins/AIOverhaul/README.md diff --git a/plugins/AIOverhaul/AIOverhaul.yml b/plugins/AIOverhaul/AIOverhaul.yml index 8508554c..7fc2d9f6 100644 --- a/plugins/AIOverhaul/AIOverhaul.yml +++ b/plugins/AIOverhaul/AIOverhaul.yml @@ -1,7 +1,6 @@ name: AIOverhaul description: AI Overhaul for Stash with a full plugin engine included to install and manage asynchronous stash plugins for AI or other purposes. -version: 0.9.0 -url: https://discourse.stashapp.cc/t/aioverhaul/4847 +version: 0.9.1 ui: javascript: - VersionInfo.js diff --git a/plugins/AIOverhaul/BackendBase.js b/plugins/AIOverhaul/BackendBase.js index 3794d143..2c995dce 100644 --- a/plugins/AIOverhaul/BackendBase.js +++ b/plugins/AIOverhaul/BackendBase.js @@ -7,6 +7,7 @@ defaultBackendBase; const PLUGIN_NAME = 'AIOverhaul'; // Local default to keep the UI functional before plugin config loads. const DEFAULT_BACKEND_BASE = 'http://localhost:4153'; +const STORAGE_KEY = 'ai_backend_base_url'; const CONFIG_QUERY = `query AIOverhaulPluginConfig($ids: [ID!]) { configuration { plugins(include: $ids) @@ -138,6 +139,15 @@ function applyPluginConfig(base, captureEvents, sharedKey) { const value = normalized || ''; try { window.AI_BACKEND_URL = value; + try { + if (value) { + sessionStorage.setItem(STORAGE_KEY, value); + } + else { + sessionStorage.removeItem(STORAGE_KEY); + } + } + catch { } window.dispatchEvent(new CustomEvent('AIBackendBaseUpdated', { detail: value })); } catch { } @@ -202,6 +212,16 @@ function defaultBackendBase() { loadPluginConfig(); } catch { } + try { + const stored = sessionStorage.getItem(STORAGE_KEY); + if (stored && typeof stored === 'string') { + const normalized = normalizeBase(stored); + if (normalized !== null && normalized !== undefined) { + return normalized; + } + } + } + catch { } if (typeof window.AI_BACKEND_URL === 'string') { const explicit = normalizeBase(window.AI_BACKEND_URL); if (explicit !== null && explicit !== undefined) { diff --git a/plugins/AIOverhaul/README.md b/plugins/AIOverhaul/README.md deleted file mode 100644 index 50a522ea..00000000 --- a/plugins/AIOverhaul/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# AI Overhaul - -https://discourse.stashapp.cc/t/aioverhaul/4847 - -# For details around this plugin and using and configuring it, see the official documentation here: -https://github.com/skier233/Stash-AIServer/wiki/AI-Overhaul-Installation-Instructions \ No newline at end of file From 0022ef7cf5ede2172048df54eb7ce05ae798dfbb Mon Sep 17 00:00:00 2001 From: skier233 Date: Tue, 23 Dec 2025 10:16:19 -0500 Subject: [PATCH 2/2] discourse --- plugins/AIOverhaul/AIOverhaul.yml | 1 + plugins/AIOverhaul/README.md | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 plugins/AIOverhaul/README.md diff --git a/plugins/AIOverhaul/AIOverhaul.yml b/plugins/AIOverhaul/AIOverhaul.yml index 7fc2d9f6..2a854884 100644 --- a/plugins/AIOverhaul/AIOverhaul.yml +++ b/plugins/AIOverhaul/AIOverhaul.yml @@ -1,6 +1,7 @@ name: AIOverhaul description: AI Overhaul for Stash with a full plugin engine included to install and manage asynchronous stash plugins for AI or other purposes. version: 0.9.1 +url: https://discourse.stashapp.cc/t/aioverhaul/4847 ui: javascript: - VersionInfo.js diff --git a/plugins/AIOverhaul/README.md b/plugins/AIOverhaul/README.md new file mode 100644 index 00000000..55c45ee7 --- /dev/null +++ b/plugins/AIOverhaul/README.md @@ -0,0 +1,6 @@ +# AI Overhaul + +https://discourse.stashapp.cc/t/aioverhaul/4847 + +# For details around this plugin and using and configuring it, see the official documentation here: +https://github.com/skier233/Stash-AIServer/wiki/AI-Overhaul-Installation-Instructions