Skip to content

feat(ui): load selected models before generation and edit idle TTL - #11

Open
ampersandru wants to merge 3 commits into
leejet:masterfrom
ampersandru:pr/load-generate-ttl-settings
Open

ampersandru wants to merge 3 commits into
leejet:masterfrom
ampersandru:pr/load-generate-ttl-settings

Conversation

@ampersandru

Copy link
Copy Markdown

When a selected model is asleep or unloaded, the disabled Generate button prevents generating even though its recipe/component selection is still available. This adds Load & Generate: load the current selection, wait for readiness, then submit the current prompt with its generation settings preserved. Loading failures stop submission and show the error.

  • Keep the saved command-line configuration selectable after unload or switching models.
  • Compare both recipe and component file selections when deciding whether the current selection is already ready.
  • Add Model idle timeout (TTL) to Settings, showing the running server value and allowing runtime updates (0 disables). Restart restores the startup flag.
  • Prevent status refresh during loading from overwriting the current generation settings; display loading/submission states and disable conflicting model operations.

Requires the additive model-status/settings API in leejet/stable-diffusion.cpp#2385. Related: leejet/stable-diffusion.cpp#2239 and the reload problem reported in leejet/stable-diffusion.cpp#2243. TTL settings are unavailable on servers that do not expose the new value. The main server PR intentionally leaves the frontend submodule pin unchanged for normal upstream synchronization.

Verification: merged with current upstream c870e1c; vue-tsc --noEmit, Vite production build and embedded-header generation passed. The earlier Docker revision was tested by the contributor in the native UI. Local checks covered readiness states, selected component matching, load-before-submit ordering, preserved prompt/settings, explicit unload, switching recipes, failed loading without submission, and runtime TTL editing. The merged revision has not been rerun on the CUDA server yet.

Developed with AI assistance. No generated frontend output or local test artifacts are included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant