Compare commits

...
4 Commits
Author SHA1 Message Date
ausboss 172252ab02 Merge pull request #353 from ausboss/release/2.26.1
Release 2.26.1
2026-11-14 07:09:37 -06:00
ausboss ebc81ea57e Release 2.26.1 2026-11-14 07:08:54 -06:00
ausboss bc235e96e5 Merge pull request #352 from ausboss/fix/no-home-path-expansion
Stop expanding ~ paths and opening a typed LaMa model path
2026-11-14 06:53:14 -06:00
ausboss 6572b49386 Stop expanding "~" paths and opening a typed LaMa model path
Image Folder compared a pasted "~/..." path after expanding it; only a
path written out in full is compared now. LaMa Inpaint resolved a typed
path when ComfyUI's folder list was missing; it only takes a name from
models/lama now. Neither could read outside ComfyUI's folders, but both
read like it to a code scan.
2026-11-14 06:28:13 -06:00
7 changed files with 24 additions and 12 deletions
+9
View File
@@ -2,6 +2,15 @@
All notable changes to ComfyUI-AusBoss are documented here.
## 2.26.1 - 2026-11-14
- **A path that starts with `~` is no longer expanded.** Image Folder used
to turn a pasted `~/...` path into a full one before checking that it sits
inside ComfyUI's folders; now only a path written out in full is checked.
LaMa Inpaint only opens a model from ComfyUI's `models/lama` list. Nothing
outside those folders could be read before either; this removes the code
that looked as if it could.
## 2.26.0 - 2026-11-14
- **Missing LoRAs show in ComfyUI's missing-models list.** When a workflow
+3 -3
View File
@@ -1,9 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" width="105" height="20" role="img" aria-label="release: v2.26.0">
<title>release: v2.26.0</title>
<svg xmlns="http://www.w3.org/2000/svg" width="105" height="20" role="img" aria-label="release: v2.26.1">
<title>release: v2.26.1</title>
<path fill="#555" d="M0 0h48v20H0z"/>
<path fill="#00b4aa" d="M48 0h57v20H48z"/>
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="24" y="14">release</text>
<text x="76.5" y="14">v2.26.0</text>
<text x="76.5" y="14">v2.26.1</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 425 B

After

Width:  |  Height:  |  Size: 425 B

+1 -1
View File
@@ -9,7 +9,7 @@ import { app } from "../../../scripts/app.js";
// Must match `version` in pyproject.toml — scripts/release_preflight.py
// enforces it. The backend serves its copy at /ausboss/pack_version; a
// mismatch means the browser cached JavaScript from an older install.
export const AUSBOSS_JS_VERSION = "2.26.0";
export const AUSBOSS_JS_VERSION = "2.26.1";
export const BRAND = "#00b4aa"; // AusBoss teal — keep node accents consistent.
export const BRAND_DARK = "#007f78";
+3 -2
View File
@@ -82,9 +82,10 @@ def place_inside(folder, roots: dict) -> tuple[str, str] | None:
This compares text only. A path that is outside those folders is never
looked up on disk, and one on another machine is refused from its text."""
text = str(folder or "").strip().strip('"').replace("\\", "/")
if not looks_full(text) or text.startswith("//"):
# A "~" path is not expanded: only a path written out in full can match.
if not looks_full(text) or text.startswith("//") or text.startswith("~"):
return None
full = os.path.normpath(os.path.expanduser(text))
full = os.path.normpath(text)
for source, root in roots.items():
for base in {os.path.normpath(str(root)), os.path.realpath(str(root))}:
if full == base:
+2 -5
View File
@@ -61,11 +61,8 @@ def list_lama_models() -> list[str]:
def resolve_lama_model(model_name: str) -> Path:
register_lama_model_folder()
if folder_paths is None:
path = Path(model_name).expanduser().resolve()
if path.is_file():
return path
else:
# Only a name from ComfyUI's lama model folder: a typed path is never opened.
if folder_paths is not None:
resolved = folder_paths.get_full_path(MODEL_FOLDER, model_name)
if resolved:
return Path(resolved).resolve()
+1 -1
View File
@@ -3,7 +3,7 @@ name = "ausboss-nodes"
# Manager/registry search matches against this text, so it names the actual
# nodes instead of describing the collection abstractly.
description = "ComfyUI-AusBoss (AusBoss nodes): image and video nodes with compact controls: Image and Video Crop + Rotate + Pad (frame or clip), Load Image, Load Image + Pad, Image Folder, Image Resize, Align Image, Image Size, Color Match, Image Compare A/B, Realign to Source (experimental), Save Image (PNG, WebP/JXL, captions), Load Video, Load Audio, Save Video, Select Frame, Frame Interpolate, Mask Refine, Mask by Name and Mask by Touch, LaMa Inpaint, Crop For Inpaint, Stitch Inpaint, Tiled Upscale and Tiled Upscale Stitch, FlashVSR Upscale, Edit Lock and Edit Lock Restore, LoRA Loader, Krea 2 Encode and Outpaint Model Patch, Latent Size, Layout Boxes, Seed, Select Every Nth, Split Batch, Merge Batches, Text, Text Lines, Prompt Variations, H3 Prompt Writer, Integer, Float, Math Expression, Show Text, Free Memory, Workflow Note, Workflow Note Tile, Callout, Callout Tile, Workflow Switches, Run Timer, and Step Preview. Example workflows for Qwen Image 2.1, Krea 2, Klein 9B and LTX 2.3."
version = "2.26.0"
version = "2.26.1"
# comfy-cli serializes this to JSON verbatim, so `file` publishes the literal
# string {"file": "LICENSE"} to the registry listing. `text` puts a readable
# name there instead. Both forms are supported; the LICENSE file is unchanged.
+5
View File
@@ -149,6 +149,11 @@ class ListingTests(FolderCase):
self.assertEqual(place_inside(str(self.root) + "/", roots), ("input", ""))
self.assertEqual(place_inside(str(roots["output"] / "set"), roots), ("output", "set"))
self.assertEqual(place_inside(f'"{self.root / "people"}"', roots), ("input", "people"), "quotes from a copied path")
# A "~" path is never expanded into a real one, and no node code does that.
self.assertIsNone(place_inside("~/ComfyUI/input/people", roots))
nodes_dir = Path(__file__).resolve().parents[1] / "nodes"
for source in nodes_dir.glob("*.py"):
self.assertNotIn("expanduser", source.read_text(encoding="utf-8"), source.name)
def test_a_whole_path_anywhere_else_is_not_a_place(self):
roots = {"input": self.root, "output": Path(self.temp.name) / "output"}