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

Show the universe base style image in the /universes list thumbnail

[._.]/ Adam Eivy5c1cedec53b0
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index b388a985b3..3cd049c419 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -89,6 +89,8 @@
## Fixed
+- **The Universes list row thumbnail now shows the universe's base style image, matching the detail page.** The `/universes` index thumbnail read the *latest* image from the universe's auto-managed media collection, which is often a contact sheet or character reference render — so a universe whose detail page proudly shows its subject-less "Base style" probe (e.g. the Neon Expanse cityscape) was previewed in the list as an unrelated grid of figures. The row thumbnail now prefers the universe's base style image (last entry in `styleImageRefs`, the same selection the Universe Builder's `StyleProbeImage` → `EntryThumbSlot` makes), falling back to the latest media-collection image, then the Globe placeholder — so the list and detail views agree. (`client/src/pages/Universes.jsx`)
+
- **[issue-1356] The idea / beat-sheet prompt no longer renders parts of itself as `[object Object]`.** When an issue had a prior/next neighbor in its volume, the idea-stage prompt was supposed to quote that neighbor's beat sheet (or synopsis) and the arc role of each, so the new beats hand cleanly off the surrounding issues. A templating bug meant those neighbor beat sheets, synopses, and arc-role labels were emitted as the literal text `[object Object]` instead of their real content — silently degrading the context the beat sheet was generated against. They now render correctly, so neighbor continuity actually reaches the model. (#1356)
- **[issue-1345] Editorial-check findings now show a "stale" badge when the manuscript or canon they analyzed has since changed.** #1285's acceptance called for a stale badge on findings — mirroring the editorial-analysis snapshot's `sourceContentHash` — but the editorial-check runner seeded findings into the manuscript review without recording any per-check source hash, so the UI had nothing to compare against and the badge shipped missing. The runner now **stamps each finding with a fingerprint of the exact content its check analyzed**: a manuscript-consuming check hashes the stitched corpus + canon, while a canon-only check (naming, object-attachment) hashes canon alone — so a prose edit doesn't falsely stale a finding that never read the prose. The manuscript-review GET annotates each finding with a `stale` flag (computed per-read, never stored, so it stays local to each install's current content), and the Editorial Checks triage view surfaces an amber **Stale** badge per-finding plus a per-check **"N stale"** count in the group header. Re-running a check against edited content refreshes the finding's hash (clearing the badge), and the hash survives cross-machine sync (additive, sanitized through the same shaper) while legacy/completeness findings with no hash are treated as never-stale. (`server/services/pipeline/editorial/checkRunner.js`, `server/services/pipeline/manuscriptReview.js`, `server/routes/pipeline/manuscript.js`, `client/src/lib/editorialChecks.js`, `client/src/components/pipeline/editorial/EditorialFindingsTriage.jsx`, #1345)
diff --git a/client/src/pages/Universes.jsx b/client/src/pages/Universes.jsx
index 28ce7a4717..bb957d83ea 100644
--- a/client/src/pages/Universes.jsx
+++ b/client/src/pages/Universes.jsx
@@ -53,10 +53,21 @@ const buildLatestImageByUniverse = (collections) => {
return out;
};
-// 48px square thumbnail showing the latest image from the universe's
-// auto-managed media collection (or a Globe placeholder when the collection
-// is empty or hasn't loaded yet). onError hides the <img> so a stale
-// collection entry pointing at a deleted file falls back to the placeholder
+// The universe's base style image — the subject-less "style probe" the detail
+// page (StyleProbeImage → EntryThumbSlot) shows. Mirror that component's
+// selection (last entry in `styleImageRefs`, no primaryImageRef concept here)
+// so the row thumbnail matches what the Universe Builder displays rather than
+// drifting to whatever the latest media-collection render happened to be (a
+// contact sheet, a character ref, etc.).
+const baseStyleImageRef = (u) => {
+ const refs = Array.isArray(u?.styleImageRefs) ? u.styleImageRefs : [];
+ return refs.length ? refs[refs.length - 1] : null;
+};
+
+// 48px square thumbnail showing the universe's base style image, falling back
+// to the latest image from its auto-managed media collection, then a Globe
+// placeholder when neither exists (or hasn't loaded yet). onError hides the
+// <img> so a stale ref pointing at a deleted file falls back to the placeholder
// instead of a broken-image icon. Shared between desktop row and mobile card.
function UniverseThumb({ imageRef }) {
const [broken, setBroken] = useState(false);
@@ -285,7 +296,7 @@ export default function Universes() {
<td className="px-4 py-3 align-top">
<div className="flex items-start gap-2 min-w-0">
<Link to={`/universes/${encodeURIComponent(u.id)}`} className="flex items-start gap-3 min-w-0 group flex-1">
- <UniverseThumb imageRef={latestImageByUniverse.get(u.id)} />
+ <UniverseThumb imageRef={baseStyleImageRef(u) || latestImageByUniverse.get(u.id)} />
<div className="min-w-0 flex-1">
<div className="text-white font-medium flex items-center gap-2 flex-wrap group-hover:text-port-accent transition-colors">
<span>{u.name || '(untitled universe)'}</span>
@@ -324,7 +335,7 @@ export default function Universes() {
<li key={u.id} className="p-3 bg-port-card border border-port-border rounded-lg">
<div className="flex items-start justify-between gap-3">
<Link to={`/universes/${encodeURIComponent(u.id)}`} className="flex items-start gap-3 flex-1 min-w-0">
- <UniverseThumb imageRef={latestImageByUniverse.get(u.id)} />
+ <UniverseThumb imageRef={baseStyleImageRef(u) || latestImageByUniverse.get(u.id)} />
<div className="min-w-0 flex-1">
<div className="text-white font-medium flex items-center gap-2 flex-wrap">
<span>{u.name || '(untitled universe)'}</span>
diff --git a/client/src/pages/Universes.test.jsx b/client/src/pages/Universes.test.jsx
index 60b9ba055b..a83c85d6b0 100644
--- a/client/src/pages/Universes.test.jsx
+++ b/client/src/pages/Universes.test.jsx
@@ -103,3 +103,38 @@ describe('Universes page — duplicate detection', () => {
await waitFor(() => expect(screen.queryByText(/duplicate-named/)).not.toBeInTheDocument());
});
});
+
+describe('Universes page — row thumbnail', () => {
+ beforeEach(() => {
+ api.listUniverseDuplicates.mockResolvedValue({ groups: [] });
+ });
+
+ it('shows the base style image (last styleImageRef), matching the detail page', async () => {
+ api.listUniverses.mockResolvedValue([
+ { id: 'u1', name: 'Neon Expanse', styleImageRefs: ['old-style.png', 'base-style.png'], updatedAt: '2026-06-01T00:00:00Z' },
+ ]);
+ // A media-collection image exists too, but the base style image wins.
+ api.listMediaCollections.mockResolvedValue([
+ { universeId: 'u1', items: [{ kind: 'image', ref: 'contact-sheet.png', addedAt: '2026-06-10T00:00:00Z' }] },
+ ]);
+ const { container } = renderPage();
+ await waitFor(() => expect(screen.getAllByText('Neon Expanse').length).toBeGreaterThan(0));
+ const img = container.querySelector('img');
+ expect(img).toBeTruthy();
+ expect(img.getAttribute('src')).toContain('base-style.png');
+ expect(img.getAttribute('src')).not.toContain('contact-sheet.png');
+ });
+
+ it('falls back to the latest media-collection image when no base style image exists', async () => {
+ api.listUniverses.mockResolvedValue([
+ { id: 'u2', name: 'Reality', updatedAt: '2026-06-01T00:00:00Z' },
+ ]);
+ api.listMediaCollections.mockResolvedValue([
+ { universeId: 'u2', items: [{ kind: 'image', ref: 'fallback.png', addedAt: '2026-06-10T00:00:00Z' }] },
+ ]);
+ const { container } = renderPage();
+ await waitFor(() => expect(screen.getAllByText('Reality').length).toBeGreaterThan(0));
+ const img = container.querySelector('img');
+ expect(img.getAttribute('src')).toContain('fallback.png');
+ });
+});