Add MOSS-Image on the Image v2 path and stop the queue calling it Klein.

The bench queue labeled every engine except Krea, Qwen, MiniMax, and LTX as Klein, and the v2 starter treated any engine other than Krea as Flux.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-10-22 20:04:58 -05:00
co-authored by Cursor
parent 74edeabc39
commit 354f475866
30 changed files with 873 additions and 111 deletions
+11
View File
@@ -1,6 +1,17 @@
const terminal = new Set(['complete','failed','cancelled'])
// Include enhancing so PE is the same queue row as generate (not a vanished "Queue 0").
const running = new Set(['waking','enhancing','submitting','rendering','saving'])
/** Queue-card engine name. Only flux is Klein. */
export function queueEngineLabel(engine) {
const value = String(engine || '').trim().toLowerCase()
if (value === 'moss' || value === 'moss-image' || value === 'mossimage' || value === 'openmoss') return 'MOSS-Image'
if (value === 'krea') return 'Krea 2'
if (value === 'qwen21') return 'Qwen 2.1'
if (value === 'minimax') return 'MiniMax H3'
if (value === 'ltx') return 'LTX'
if (value === 'flux') return 'Klein'
return value || 'Klein'
}
export function queueJobs(jobs) {
return jobs.filter(j=>running.has(j.state)||['waiting','queued','held'].includes(j.state)).sort((a,b)=>Number(running.has(b.state))-Number(running.has(a.state)) || (a.queuedAt||0)-(b.queuedAt||0))
}