Skip to content

feat(queue): Queue page, and paste images into Generate - #449

Closed
lightningpixel wants to merge 2 commits into
devfrom
feat/queue-and-paste
Closed

lightningpixel wants to merge 2 commits into
devfrom
feat/queue-and-paste

Conversation

@lightningpixel

Copy link
Copy Markdown
Owner

Closes #412 · Part of #420

Queue page (#412)

A new Queue page (Manage, after Library) follows every job from one place:

  • Running: the workflow started in this window with its live steps and elapsed time, plus any generation the backend is running
  • Queued: generations waiting for the single backend worker
  • History: past runs, newest first, with "Load more"

Each run shows its name, an input or output thumbnail, step progress, elapsed time and status. A finished mesh opens in Generate or is shown in the Library, which now selects and scrolls to it. Expanding a workflow run lists its steps and the generations it started.

Under the hood:

  • Run records get parent_run_id; workflow model nodes pass it when they start a generation, so history lists a workflow once with its generations as its steps (GET /workflow-runs?top_level=true, GET /workflow-runs/{id}/children).
  • Workflow records now take their input image from the Image nodes (they were empty when a run started from Generate).
  • workflowRunStore exposes the live run (useLiveWorkflowRun) without changing existing consumers.

Out of scope: cancel / retry / reorder (#413), run detail (#414), top-bar indicator (#415), a real priority queue (#322).

Paste into Generate (part of #420)

Ctrl+V outside text fields puts a clipboard image into Generate's first image input. The pasted image is saved to <workspace>/Images/ through a narrow workspace:images:save IPC (PNG / JPEG / WebP checked by signature, 40 MB cap, sanitized unique names, never overwrites, never in tmp/).

The Image Studio page itself (#420) will ship together with background removal (#421), so it doesn't land empty.

Testing

  • npm test passes (Python 460, JS 331 + 237, 0 failures); lint clean; tsc unchanged from dev
  • New tests: queueModel.test.ts, workflowRunRecord.test.ts additions, test_run_history.py (+13 cases), workspace-images.test.ts, imageInput.test.ts
  • Not yet clicked through in the app

A new Queue page (Manage, after Library) follows every job from one place:
- Running: the workflow started in this window with its live steps and
  elapsed time, plus any generation the backend is running.
- Queued: generations waiting for the single backend worker.
- History: past runs, newest first, with "Load more".
Each run shows its name, an input or output thumbnail, step progress,
elapsed time and status; a finished mesh opens in Generate or is shown
in the Library (which now selects and scrolls to it).

Backend: run records get parent_run_id. Model nodes of a workflow pass it
when they start a generation, so the history lists the workflow once and
its generations as its steps (GET /workflow-runs?top_level=true,
GET /workflow-runs/{id}/children).

Workflow records now take their input image from the Image nodes
(they were empty when started from Generate).

Closes #412
Ctrl+V outside text fields puts a clipboard image into Generate's first
image input; the empty input hints at it.

The image node needs a file path, so the pasted image is saved to
<workspace>/Images/ through a narrow workspace:images:save IPC (PNG,
JPEG or WebP checked by signature, 40 MB cap, sanitized unique names,
never overwrites, never in tmp/).

Part of #420 (the Image Studio page ships with background removal, #421).
@lightningpixel

Copy link
Copy Markdown
Owner Author

Replaced by #450, which also includes the Image Studio page.

@lightningpixel
lightningpixel deleted the feat/queue-and-paste branch November 16, 2026 12:41
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