Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

add HiDream + Qwen runner-family mappings for Civitai LoRA suggestions

[._.]/ Adam Eivyd6ae100ecddd
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index df47ddf889..35a6febef3 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -15,6 +15,7 @@
## Fixed
+- **[civitai-hidream-qwen-baseModels] Civitai LoRA suggestions now include HiDream and Qwen.** Both runner families existed in `RUNNER_FAMILIES` but were missing from the Civitai `baseModels` search map and the LoRA Manager UI — so every page load logged `Unknown runner family for Civitai search: hidream` / `qwen`, neither family got a "Top for …" section, and any HiDream/Qwen LoRA installed via URL ended up with `runnerFamily=null` (broken compat filter). The two families now map to Civitai's `HiDream` / `Qwen` baseModel strings and render alongside Flux 1, Flux 2, Z-Image, and ERNIE in the suggestions panel.
- **Creative Director long sessions stay fast.** Per-scene render orchestration no longer slows down as a project accumulates more scenes — previously a project could degrade from ~3.5 minutes per scene to 10–30 minutes after a long run, because every render reread and rewrote the full per-project run history as that history grew unbounded. The Runs tab now shows up to 200 of the most recent run entries per project; older completed/failed runs are dropped automatically while every in-flight task is always preserved.
- **[triage-gemini-out-of-scope-findings] Editor and Claude Code can now open managed apps on Windows.** "Open in Editor" and "Open in Claude" buttons now resolve `.cmd`/`.bat` shims (e.g. `code.cmd`, `claude.cmd`) that Node otherwise refuses to spawn — previously these actions silently failed on Windows installs.
- **[triage-gemini-out-of-scope-findings] Custom app start commands keep quoted arguments intact.** Apps whose start command includes a quoted path or option (`node --opt "arg with spaces"`) now launch with that argument preserved; previously the runner shredded the quotes and PM2 received the broken pieces.
diff --git a/client/src/pages/Loras.jsx b/client/src/pages/Loras.jsx
index f187b6dc85..addabd9b82 100644
--- a/client/src/pages/Loras.jsx
+++ b/client/src/pages/Loras.jsx
@@ -30,12 +30,16 @@ const RUNNER_LABEL = {
[RUNNER_FAMILIES.FLUX2]: 'Flux 2',
[RUNNER_FAMILIES.Z_IMAGE]: 'Z-Image',
[RUNNER_FAMILIES.ERNIE]: 'ERNIE',
+ [RUNNER_FAMILIES.HIDREAM]: 'HiDream',
+ [RUNNER_FAMILIES.QWEN]: 'Qwen',
};
const RUNNER_BADGE_CLASS = {
[RUNNER_FAMILIES.MFLUX]: 'bg-port-accent/20 text-port-accent border-port-accent/30',
[RUNNER_FAMILIES.FLUX2]: 'bg-purple-600/20 text-purple-300 border-purple-500/30',
[RUNNER_FAMILIES.Z_IMAGE]: 'bg-emerald-600/20 text-emerald-300 border-emerald-500/30',
[RUNNER_FAMILIES.ERNIE]: 'bg-amber-600/20 text-amber-300 border-amber-500/30',
+ [RUNNER_FAMILIES.HIDREAM]: 'bg-rose-600/20 text-rose-300 border-rose-500/30',
+ [RUNNER_FAMILIES.QWEN]: 'bg-sky-600/20 text-sky-300 border-sky-500/30',
};
export default function Loras() {
@@ -238,6 +242,8 @@ function SuggestionsPanel({ suggestions, loading, installedFilenames, installing
{ key: RUNNER_FAMILIES.FLUX2, label: 'Top for Flux 2', cards: runners[RUNNER_FAMILIES.FLUX2] || [], hint: 'Most-downloaded LoRAs trained against Flux.2 Klein 4B / 9B.', alwaysShow: true },
{ key: RUNNER_FAMILIES.Z_IMAGE, label: 'Top for Z-Image', cards: runners[RUNNER_FAMILIES.Z_IMAGE] || [], hint: 'Most-downloaded LoRAs trained against Z-Image / Z-Image-Turbo.', alwaysShow: true },
{ key: RUNNER_FAMILIES.ERNIE, label: 'Top for ERNIE', cards: runners[RUNNER_FAMILIES.ERNIE] || [], hint: 'Most-downloaded LoRAs trained against ERNIE-Image.', alwaysShow: true },
+ { key: RUNNER_FAMILIES.HIDREAM, label: 'Top for HiDream', cards: runners[RUNNER_FAMILIES.HIDREAM] || [], hint: 'Most-downloaded LoRAs trained against HiDream.', alwaysShow: true },
+ { key: RUNNER_FAMILIES.QWEN, label: 'Top for Qwen', cards: runners[RUNNER_FAMILIES.QWEN] || [], hint: 'Most-downloaded LoRAs trained against Qwen-Image.', alwaysShow: true },
];
return (
<div className="space-y-4">
@@ -305,13 +311,6 @@ function SuggestionsSection({ label, hint, cards, alwaysShow = false, installedF
);
}
-const RUNNER_LABELS_SHORT = {
- [RUNNER_FAMILIES.MFLUX]: 'Flux 1',
- [RUNNER_FAMILIES.FLUX2]: 'Flux 2',
- [RUNNER_FAMILIES.Z_IMAGE]: 'Z-Image',
- [RUNNER_FAMILIES.ERNIE]: 'ERNIE',
-};
-
function SuggestionCard({ card, installedFilenames, installingSuggestionKey, onInstall }) {
const installs = card.curated && card.installs && Object.keys(card.installs).length > 0 ? card.installs : null;
// Badges: prefer the installs map's keys (per-family with versions), else
@@ -344,7 +343,7 @@ function SuggestionCard({ card, installedFilenames, installingSuggestionKey, onI
<div className="flex flex-wrap gap-1">
{badgeFamilies.map((f) => (
<span key={f} className={`text-[10px] px-1.5 py-0.5 rounded border whitespace-nowrap ${RUNNER_BADGE_CLASS[f] || 'bg-gray-600/20 text-gray-300 border-gray-500/30'}`}>
- {RUNNER_LABELS_SHORT[f] || f}
+ {RUNNER_LABEL[f] || f}
</span>
))}
</div>
@@ -380,7 +379,7 @@ function SuggestionCard({ card, installedFilenames, installingSuggestionKey, onI
className={`text-[11px] px-2 py-1 rounded border flex items-center gap-1 ${baseClass} hover:brightness-125 disabled:opacity-60 disabled:cursor-not-allowed`}
>
{installed ? <Check size={11} /> : null}
- {installing ? 'Installing…' : (RUNNER_LABELS_SHORT[family] || family)}
+ {installing ? 'Installing…' : (RUNNER_LABEL[family] || family)}
</button>
);
})}
diff --git a/server/lib/civitai.js b/server/lib/civitai.js
index 42064382f5..07bf139f81 100644
--- a/server/lib/civitai.js
+++ b/server/lib/civitai.js
@@ -34,6 +34,8 @@ export const baseModelToRunner = (baseModel) => {
if (b.startsWith('flux.2') || b.startsWith('flux 2') || b === 'flux2') return RUNNER_FAMILIES.FLUX2;
if (b.startsWith('z-image') || b.startsWith('zimage') || b.startsWith('z image')) return RUNNER_FAMILIES.Z_IMAGE;
if (b.startsWith('ernie-image') || b.startsWith('ernie image') || b.startsWith('ernieimage') || b === 'ernie') return RUNNER_FAMILIES.ERNIE;
+ if (b.startsWith('hidream') || b.startsWith('hi-dream') || b.startsWith('hi dream')) return RUNNER_FAMILIES.HIDREAM;
+ if (b === 'qwen' || b.startsWith('qwen-image') || b.startsWith('qwen image') || b.startsWith('qwenimage')) return RUNNER_FAMILIES.QWEN;
// SDXL / SD1.5 / Pony / Illustrious / etc. — none currently supported by
// any PortOS runner. Surfacing them in the UI as "incompatible" is more
// useful than hiding them entirely.
@@ -310,6 +312,8 @@ const RUNNER_TO_BASE_MODELS = {
[RUNNER_FAMILIES.FLUX2]: ['Flux.2 Klein 4B', 'Flux.2 Klein 9B'],
[RUNNER_FAMILIES.Z_IMAGE]: ['ZImageBase', 'ZImageTurbo'],
[RUNNER_FAMILIES.ERNIE]: ['Ernie'],
+ [RUNNER_FAMILIES.HIDREAM]: ['HiDream'],
+ [RUNNER_FAMILIES.QWEN]: ['Qwen'],
};
// Search Civitai for LoRA-family models targeting the given runner family.
diff --git a/server/lib/civitai.test.js b/server/lib/civitai.test.js
index d3ca3907f1..cbeb0d3337 100644
--- a/server/lib/civitai.test.js
+++ b/server/lib/civitai.test.js
@@ -71,6 +71,16 @@ describe('baseModelToRunner', () => {
expect(baseModelToRunner('ERNIE-Image-Turbo')).toBe('ernie');
expect(baseModelToRunner('ernieimage')).toBe('ernie');
});
+ it('maps HiDream variants to hidream', () => {
+ expect(baseModelToRunner('HiDream')).toBe('hidream');
+ expect(baseModelToRunner('hidream')).toBe('hidream');
+ expect(baseModelToRunner('Hi-Dream')).toBe('hidream');
+ });
+ it('maps Qwen variants to qwen', () => {
+ expect(baseModelToRunner('Qwen')).toBe('qwen');
+ expect(baseModelToRunner('qwen-image')).toBe('qwen');
+ expect(baseModelToRunner('Qwen Image')).toBe('qwen');
+ });
it('returns null for unsupported families', () => {
expect(baseModelToRunner('SDXL 1.0')).toBe(null);
expect(baseModelToRunner('SD 1.5')).toBe(null);