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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: preserve generated draft when creating a universe from the selector's Create option
[._.]/ Adam Eivy3b90488d2958
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex ea488cce11..0ec020745a 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -58,5 +58,6 @@- **[ltx2-fflf-skips-last-image-resize-when-both-frames-set] ltx2 FFLF now resizes both anchor frames.** The two-keyframe ltx2 FFLF path passes both `--image` and `--last-image` into `scripts/generate_ltx2.py`, but Video Gen only resized the start image when both anchors were present. The end frame could therefore reach `KeyframeInterpolationPipeline.generate_and_save()` at its original dimensions. `videoGen/local.js` now treats ltx2 true-FFLF as a real last-image consumer and runs the same ffmpeg resize/crop pass used for multi-keyframes, with a regression test asserting the helper receives resized start and end paths.- **[ref-watch-phosphene-teacache-extend-a2v-denoise] TeaCache now accelerates ltx2 Extend and A2V Stage 1.** `scripts/generate_ltx2.py` now patches the LTX-2 `extend` and `a2vid_two_stage` denoise-loop import sites (the modules where `ExtendPipeline`/`AudioToVideoPipeline` actually call `guided_denoise_loop`), activating the existing Stage-1 TeaCache controller only around Extend and A2V calls and clearing the gate afterward. TeaCache stays default-on for those slow paths, with `--no-teacache` to opt out and `--teacache-thresh` to trade fidelity for speed (~1.2× at the 0.5 default, up to ~3× at 1.5).- **[dup-detect-collection-count-undercount] Duplicate-universe suggestions now count collection items correctly.** On the Sharing → Duplicates tab, a universe that owned more than one media collection had its collection-item total reported as just the last collection's size rather than the sum, which could understate which duplicate held the most content; the count now adds up every linked collection.+- **[universe-create-named-preserves-draft] Naming a universe from the selector's "Create" option no longer discards the idea you just generated.** In the Universe Builder, if you expanded a starter idea into a draft (starter prompt, categories, canon…) and then typed a name in the universe search box, clicking the "Create «name»" row in the dropdown created a blank universe carrying only the name — silently obliterating all the generated content. That row now preserves the in-progress draft (it persists the full draft, same as the header Create button) when no universe is currently open; the blank-new-record behavior is kept only for typing a new name while an existing universe is already selected, where cloning the open universe would be wrong.## Removeddiff --git a/client/src/pages/UniverseBuilder.jsx b/client/src/pages/UniverseBuilder.jsxindex 2ec9fd47b3..bf735507c5 100644--- a/client/src/pages/UniverseBuilder.jsx+++ b/client/src/pages/UniverseBuilder.jsx@@ -898,13 +898,25 @@ export default function UniverseBuilder() {return () => clearTimeout(t);}, [location.hash, selectedId, draft.id]);- // Create-from-selector path: builds a universe from just the typed name- // (everything else empty) and navigates to it. Distinct from handleSave so- // typing a new name while an existing universe is selected doesn't rename- // that universe — Create always makes a new record.+ // Create-from-selector path. Two cases, distinguished by whether a universe+ // is already open:+ // - No universe selected (unsaved new draft): the user has been building a+ // draft in place — e.g. expanded a starter idea into a starterPrompt,+ // categories, and canon — then typed a name. That work must be preserved,+ // so delegate to handleSave (which persists the FULL draft, not just the+ // name). Previously this path spread emptyTemplate() and silently+ // obliterated the generated idea/content, creating a blank universe.+ // - An existing universe is selected: typing a new name must NOT rename or+ // clone the open universe — make a fresh blank record from just the name.const handleCreateNamed = async (rawName) => {const name = (rawName || '').trim();if (!name) { toast.error('Name is required'); return; }+ if (!selectedId) {+ // draft.name already mirrors the typed value (selector value === draft.name),+ // so handleSave creates a new universe carrying the full in-progress draft.+ await handleSave();+ return;+ }setSaving(true);const result = await createUniverse({...emptyTemplate(),