- Add extra positive/negative prompt textareas to all 9 detail pages with session persistence
- Add Endless generation button to all detail pages (continuous preview generation until stopped)
- Default character selector to "Random Character" on all secondary detail pages
- Fix queue clear endpoint (remove spurious auth check)
- Refactor app.py into routes/ and services/ modules
- Update CLAUDE.md with new architecture documentation
- Various data file updates and cleanup
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Increase card density with more columns per breakpoint (2→6 across sm/xl).
Refactor style.css for consistent card sizing, spacing, and responsive layout.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Implements sequential job queue with background worker thread (_enqueue_job, _queue_worker)
- All generate routes now return job_id instead of prompt_id; frontend polls /api/queue/<id>/status
- Queue management UI in navbar with live badge, job list, pause/resume/remove controls
- Fix: replaced url_for() calls inside finalize callbacks with direct string paths (url_for raises RuntimeError without request context in background threads)
- Batch cover generation now uses two-phase pattern: queue all jobs upfront, then poll concurrently via Promise.all so page navigation doesn't interrupt the process
- Strengths gallery sweep migrated to same two-phase pattern; sgStop() cancels queued jobs server-side
- LoRA weight randomisation via lora_weight_min/lora_weight_max already present in _resolve_lora_weight
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- app.py: add subprocess import; add _ensure_mcp_repo() to clone/pull
danbooru-mcp from https://git.liveaodh.com/aodhan/danbooru-mcp into
tools/danbooru-mcp/ at startup; add ensure_mcp_server_running() which
calls _ensure_mcp_repo() then starts the Docker container if not running;
add GET /api/status/comfyui and GET /api/status/mcp health endpoints;
fix call_llm() to retry up to 3 times on unexpected response format
(KeyError/IndexError), logging the raw response and prompting the LLM
to respond with valid JSON before each retry
- templates/layout.html: add ComfyUI and MCP status dot indicators to
navbar; add polling JS that checks both endpoints on load and every 30s
- static/style.css: add .service-status, .status-dot, .status-ok,
.status-error, .status-checking styles and status-pulse keyframe animation
- .gitignore: add tools/ to exclude the cloned danbooru-mcp repo