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

chore([issue-1524]): renumber duplicate migration 121 comic-script-visible-text to 126

[._.]/ Adam Eivy22107fd6bba4
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 12a20f8161..deaaf62fe8 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -94,3 +94,7 @@
- **A season synopsis is no longer truncated mid-sentence (which could hang Series Autopilot's arc-verify loop).** The season-synopsis cap was 4000 characters — half the arc-level summary cap (8000) — even though a season synopsis covers a whole season's worth of episodes. A full synopsis got hard-clipped mid-word, and because the arc-verify→resolve convergence loop re-flags a mid-sentence truncation while the resolver keeps regenerating an over-cap synopsis that gets re-clipped, the loop burned all its rounds and paused without ever converging. The season-synopsis cap is now 8000 (matching the arc summary), so a complete synopsis is stored intact. (`server/lib/storyArc.js`)
- **Arc prose fields (logline, synopsis, ending hook) now clip on a sentence/word boundary instead of mid-word.** A hard character-cap `slice()` could clip a season logline or synopsis mid-word ("…starts tracing the brand and"), which the arc-verify pass flags as "truncated mid-sentence" — and because the resolver then regenerates an over-cap value that gets re-clipped identically, the verify→resolve loop could never converge and paused the autopilot. A new `trimToClause` helper backs an over-cap value off to the last sentence terminator within budget (or, for a run-on, the last whole-word boundary), so a capped field always reads as complete prose. Applied to the arc and season logline/summary/synopsis/ending-hook/protagonist-arc fields. (`server/lib/storyBible.js`, `server/lib/storyArc.js`)
- **Hugging Face model search now fills category tabs with no search term.** Clicking a category tag (Coding, Vision, Lightweight, Multilingual) on the Local LLM install page with an empty search box rendered a blank list. The default browse phrase for each category was a multi-word string ("coding coder agentic code gguf", "small 4b 3b 2b gguf"), but the Hub `search` param AND-matches every space-separated token against the model id — and no repo's id contains all of them, so the query returned zero results. Each category now seeds a short keyword + "gguf" phrase ("coder gguf", "vision gguf", etc.) that reliably returns the top-downloaded models for the category, and "Lightweight" uses "1b gguf" so it surfaces genuinely small models instead of `Mistral-Small-24B`. (`server/services/huggingFaceCatalog.js`)
+
+## Internal
+
+- **[issue-1524] Renumbered the duplicate `121-comic-script-visible-text-prompt` migration to `126`.** A rebase had landed two migration files numbered 121 (`121-codex-tui-bypass-sandbox` and `121-comic-script-visible-text-prompt`) on main. Both still applied exactly once (migrations are keyed by full filename, not number), so this was cosmetic — but the duplicate number muddied log/sort order. Renamed the comic-script one to the next free number; it's an idempotent hash-driven prompt-replace, so installs that already applied it re-run it harmlessly as a no-op. (`scripts/migrations/126-comic-script-visible-text-prompt.js`)
diff --git a/scripts/migrations/121-comic-script-visible-text-prompt.js b/scripts/migrations/126-comic-script-visible-text-prompt.js
similarity index 94%
rename from scripts/migrations/121-comic-script-visible-text-prompt.js
rename to scripts/migrations/126-comic-script-visible-text-prompt.js
index ddf7bbe54a..e0a2e71e2c 100644
--- a/scripts/migrations/121-comic-script-visible-text-prompt.js
+++ b/scripts/migrations/126-comic-script-visible-text-prompt.js
@@ -15,12 +15,12 @@ import { makePromptReplaceMigration } from './_lib.js';
export const ACCEPTED_OLD_MD5 = {
'pipeline-comic-script.md': [
'e9ee70bf18888492edada6633cd9928a', // post-063 (panel decomposition)
- '7c05ecde539f04c9fa91e87543057204', // pre-121 (current reference body)
+ '7c05ecde539f04c9fa91e87543057204', // pre-126 (current reference body)
],
};
export const NEW_SHIPPED_MD5 = {
- 'pipeline-comic-script.md': 'a4303016c34b65e4b0e641fe71252de3', // post-121 (visible text exactness)
+ 'pipeline-comic-script.md': 'a4303016c34b65e4b0e641fe71252de3', // post-126 (visible text exactness)
};
const { applyMigration, up } = makePromptReplaceMigration({
diff --git a/scripts/migrations/121-comic-script-visible-text-prompt.test.js b/scripts/migrations/126-comic-script-visible-text-prompt.test.js
similarity index 65%
rename from scripts/migrations/121-comic-script-visible-text-prompt.test.js
rename to scripts/migrations/126-comic-script-visible-text-prompt.test.js
index b1825752dd..c75a71e5ec 100644
--- a/scripts/migrations/121-comic-script-visible-text-prompt.test.js
+++ b/scripts/migrations/126-comic-script-visible-text-prompt.test.js
@@ -1,14 +1,14 @@
import { describe } from 'vitest';
import { runPromptMigrationTests } from './_testHelpers.js';
-import migration, { applyMigration, ACCEPTED_OLD_MD5, NEW_SHIPPED_MD5 } from './121-comic-script-visible-text-prompt.js';
+import migration, { applyMigration, ACCEPTED_OLD_MD5, NEW_SHIPPED_MD5 } from './126-comic-script-visible-text-prompt.js';
-describe('migration 121 - comic-script visible-text prompt', () => {
+describe('migration 126 - comic-script visible-text prompt', () => {
runPromptMigrationTests({
migration,
applyMigration,
ACCEPTED_OLD_MD5,
NEW_SHIPPED_MD5,
- prefix: 'migration-121-',
+ prefix: 'migration-126-',
});
});