diff --git a/calliope-backend/pyproject.toml b/calliope-backend/pyproject.toml index 44a1da5c..c5db6d5d 100644 --- a/calliope-backend/pyproject.toml +++ b/calliope-backend/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "calliope" -version = "1.4.0" +version = "1.4.1" description = "Local-first AI story-to-video studio" requires-python = ">=3.11" dependencies = [ diff --git a/calliope-web/package-lock.json b/calliope-web/package-lock.json index 18447d1a..bb5d9fe2 100644 --- a/calliope-web/package-lock.json +++ b/calliope-web/package-lock.json @@ -1,12 +1,12 @@ { "name": "calliope-web", - "version": "1.4.0", + "version": "1.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "calliope-web", - "version": "1.4.0", + "version": "1.4.1", "dependencies": { "@tanstack/svelte-query": "^5.66.0", "@xyflow/svelte": "^1.6.5" diff --git a/calliope-web/package.json b/calliope-web/package.json index 96b30073..5093faa1 100644 --- a/calliope-web/package.json +++ b/calliope-web/package.json @@ -1,6 +1,6 @@ { "name": "calliope-web", - "version": "1.4.0", + "version": "1.4.1", "private": true, "scripts": { "dev": "vite dev", diff --git a/docs/changelogs/2026-09-07-chunking-cards.md b/docs/changelogs/2026-09-07-chunking-cards.md new file mode 100644 index 00000000..22fe2ca4 --- /dev/null +++ b/docs/changelogs/2026-09-07-chunking-cards.md @@ -0,0 +1,43 @@ +# Calliope 1.4.1 — chunked generation + working question cards + +Two fixes to the agent pipeline, both aimed at long-running generations +stalling without feedback. + +## Fixed + +- **Draft Storyline / Regenerate Script no longer hang on long targets.** + Both asked the LLM for the whole board in one response — a 50-beat + storyline or a 20-scene script is a multi-thousand-token JSON answer that + small/local models take minutes to stream, often under-deliver, and then a + single short chunk retried the *entire* generation. Story beats are now + drafted in chunks of 12 (a brief call with title/logline/cast, then + continuations that see the established cast and recent beats); script + scenes in chunks of 4, each fed the full context plus the last two written + scenes for continuity. Both renumber their boards gaplessly, retry only a + short chunk, and publish progress per chunk ("Writing beats 25–36 + (chunk 3/5)…"). Small projects keep the exact single-call behavior. +- **The agent's question cards actually appear.** When the agent asked you + to confirm something (regenerate a script, replace content, render), the + chat froze at "working…" with no question on screen — you had to press + Stop or refresh to see anything. The turn now records the question before + ending, and the card renders it with clickable options. Clicking an option + or typing "yes" both count as the approval; "No, …" refuses. + +## Notes + +- The agent loop is unchanged otherwise — chunked calls are internal to the + story/script generators, so the AI Canvas agent tools (`generate_story`, + `generate_script`) benefit automatically. +- If a long generation still feels slow, the progress events now show which + chunk the model is on — a stuck chunk means the LLM endpoint is the + bottleneck, not Calliope. + +## Upgrade + +```bash +git pull +``` + +No new dependencies, no schema changes (existing boards are untouched — +regeneration just gets faster). Restart the backend and the frontend dev +server. diff --git a/docs/changelogs/README.md b/docs/changelogs/README.md index ca1bd002..e54d793e 100644 --- a/docs/changelogs/README.md +++ b/docs/changelogs/README.md @@ -2,6 +2,7 @@ Dated notes for GitHub releases. Newest first. +- [2026-09-07 chunking + cards](./2026-09-07-chunking-cards.md) — Story/script generate in chunks; ask_user cards appear (1.4.1) - [2026-09-06 canvas merge](./2026-09-06-canvas-merge.md) — AI Canvas merges Agents + Playground; skills, memory, question cards (1.4.0) - [2026-08-31 hardening](./2026-08-31-hardening.md) — Prompt preview fails fast + never blocks Generate (1.3.2) - [2026-08-31 patch](./2026-08-31-patch.md) — SvelteKit security bump so `npm audit fix --force` is never needed (1.3.1)