fix(ui): preserve plugin trigger mark

This commit is contained in:
DemonGatanjieu
2026-08-04 21:19:06 +08:00
parent e13bf70296
commit 36eb970893
3 changed files with 9 additions and 1 deletions
+6
View File
@@ -14,6 +14,12 @@
- `node tests/recipe_parser_roundtrip.mjs`
- `python_embeded/python.exe tests/test_recipe_roundtrip.py`
- `git diff --check`
## [Snapshot] 2026-08-04 - Restore the original plugin mark
- Restored the original 📦 floating trigger mark after the startup-resilience audit; no functional behavior changed.
- `node --check web/main.js`
- `git diff --check`
## [Snapshot] 2026-08-03 - Preserve model grid return position
**Implemented**
+2
View File
@@ -504,3 +504,5 @@ The floating trigger is the recovery path for the entire extension, so it must n
## 76. An optional auto-hook must not own extension startup
ComfyUI loads every JavaScript file under a custom node's `WEB_DIRECTORY`. A resolver that assumes the legacy global `LGraph` can fail before the visible browser entry point is initialized. Optional graph hooks must detect the current graph constructor, guard duplicate patching, and return cleanly when the host API is unavailable.
Keep visual identifiers stable during bug fixing. Restore the established 📦 trigger mark unless the user explicitly asks for a new icon; visibility and startup resilience are separate concerns.
+1 -1
View File
@@ -472,7 +472,7 @@ app.registerExtension({
let browser = null;
const btn = document.createElement('button');
btn.id = 'anomalous-trigger-btn';
btn.textContent = '🧩';
btn.textContent = '📦';
btn.setAttribute('aria-label', 'Anomalous Model Browser');
const ensureBrowser = () => {