Pass through PE refusals to the raw prompt and pin adult PE system prompts.

Enhance no longer fails the studio job when the rewrite refuses or comes back empty; host prompt copies keep the official steps plus the adult appendix after a node re-clone.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-26 14:46:24 -05:00
co-authored by Cursor
parent 99b61e67d7
commit a51118d92a
8 changed files with 512 additions and 16 deletions
+19
View File
@@ -219,6 +219,25 @@ if (-not $SkipNode) {
}
}
# PE system prompts (official steps + Adult appendix). Re-copy after the node pack is re-cloned.
Write-Step "Install Qwen PE system prompts (host/qwen21-pe-prompts)"
$peSrc = Join-Path (Split-Path $PSScriptRoot -Parent) 'host\qwen21-pe-prompts'
$peDest = Join-Path $root 'custom_nodes\ComfyUI-Qwen-Image-2.1-Prompt-Enhancer\prompts'
if (-not (Test-Path $peSrc)) {
Write-Warn "Missing $peSrc — skip PE prompt install"
} elseif (-not (Test-Path (Join-Path $root 'custom_nodes\ComfyUI-Qwen-Image-2.1-Prompt-Enhancer'))) {
Write-Warn "PE node pack not installed at $peDest — skip prompt copy"
} else {
Ensure-Dir $peDest
foreach ($name in @('system_prompt_t2i.txt', 'system_prompt_edit.txt')) {
$from = Join-Path $peSrc $name
$to = Join-Path $peDest $name
if (-not (Test-Path $from)) { throw "Missing PE prompt source: $from" }
Copy-Item -Force $from $to
Write-Ok "Copied $name -> $to"
}
}
Write-Host ""
Write-Host "Done. Restart Comfy only when /status shows gpu.busy=false." -ForegroundColor Cyan
Write-Host "ComfyRoot=$root"