# Calliope changelog — 29 August 2026 **Per-agent LLMs + clip-native export + video-extend continue** update. Released as **v1.2.3**. Development branch `test-pr-25`. Full changelog index: [README](./README.md). Previous: [2026-08-24](./2026-08-24.md). --- ## Model per agent (Settings → Agent) You can now choose **which LLM each agent uses** — no more one model for everything. - **Settings → Agent → "Model per agent"** sits above the hardening rules. Six rows: **Main agent, Planner, Story agent, Script agent, Assets agent, Video agent**. - Each dropdown lists every saved LLM from **Settings → LLM** plus a **(use Active LLM)** default. Blank = Active LLM, so existing setups behave exactly as before. - Where the assignments apply: - **Main agent** — the chat loop that answers you and calls tools. - **Planner** — decides single vs. swarm, and writes the final swarm summary. - **Story / Script / Assets / Video agents** — the four swarm sub-agents. - The **Video agent** assignment also drives the MiniMax H3 prompt rewrite. - Typical setup: a strong cloud model for the main agent and planner, a fast local model for sub-agents. Details: - Assignments are stored in the local `calliope_config.json` (profile **ids**, never API keys) and survive restarts. - Deleting an LLM profile in Settings → LLM automatically clears any assignment that pointed at it. - The API validates assignments: unknown roles are ignored; assigning a non-existent profile id returns `400 Unknown LLM profile for role: `. - Settings → Agent's stacked panels now have proper spacing between them. ## Export film at the clips' own FPS Film export no longer forces everything to 30 fps. - Each scene clip is probed for its real frame rate; the export targets the **majority fps across clips** (e.g. 24 fps clips export at 24 fps). - Ties resolve to the lower rate; if no rate can be read, the old default (30) applies. - Mixed-rate projects are conformed to the majority rate — the 0.5s crossfade chain needs one common timebase. - The export progress message now reports the rate: **"Exporting film (24 fps)…"**. - Everything else in the pipeline is unchanged: 1080p normalize → 0.5s crossfades → loudness normalize. ## Video continue: file-based extension (replaces latent chain) Long clips now chain through **actual video files**, not ComfyUI latents. The old FirstMotion/NextMotion Motion Context chain is gone. Removed: - `(Input:clipindex)` role and its `clip_index` aliases — Motion Context Primitive INT nodes are no longer detected or filled. - The FirstMotion/NextMotion pair mechanics: latent Save/Load wiring, the 22-frame Motion Context handoff, the ~0.92s duration trim, and the "First motion" / "Next motion" analyze labels. - Last-frame ffmpeg extraction (`_apply_chain_from_prev`) and the `continue_motion` API field. - `motion_role` no longer appears in workflow analyze. Added: - **Script stage:** per-scene **Continue from previous video** toggle (`chain_from_prev`; the first scene can't use it). - **Video stage:** continue scenes require a workflow with an `(Input:video)` input — otherwise Generate is disabled with a warning. When valid, a clip source picker offers **Auto** (previous clip, default), **Upload file**, or **From timeline** (explicit earlier clip). - **Enqueue:** resolution order is explicit value → nearest earlier scene's clip → `continue_source` payload for job-time resolution. - **Worker:** `_resolve_continue_source` picks up the nearest earlier scene's clip at run time (safe for batch enqueues — the queue is concurrency-1), writes it into the `(Input:video)` node, and uploads it to ComfyUI. No ffmpeg involved. - **Clip source modal:** the source picker is a full modal, not a cramped dropdown — **Auto (previous clip)** and **Upload file** cards plus a thumbnail grid of **any other scene's clip in the project** (not just earlier ones, not just assets). Picking a clip fills the workflow's video input; Auto defers resolution to the queue. Migration: - Existing FirstMotion/NextMotion workflows keep working as **plain video workflows** if they have an `(Input:video)` node — mark later scenes "Continue from previous video" and pick the workflow. - Workflows relying on `clipindex`-titled Motion Context nodes lose that auto-fill; re-tag the clip input with `(Input:video)`. - For the H3 extend pattern, target [kat3ri/ComfyUI-MiniMax-H3-Extend](https://github.com/kat3ri/ComfyUI-MiniMax-H3-Extend): `LoadVideo (Input:video)` → MiniMax H3 encode/extend patched nodes → `(Output:video)`. ## Fixed - **"Choose Video" modal could render the wrong tab content** (e.g. the header showing Clips/Uploads while the body said "No character sheets yet"). Two causes fixed: the same file appearing twice in the picker grid (a scene clip that was also uploaded) crashed Svelte's keyed rendering mid-draw — options are now deduped by path; and a tile whose media kind changes could keep a stale active tab — the modal now clamps the tab to the visible list. ## Housekeeping - Added `.gitignore` files inside `calliope-backend/` and `calliope-web/` (venv, caches, SQLite data, node_modules, build output) so each sub-folder is self-protecting in addition to the repo-root rules. ## For developers - `LLMClient` accepts optional `base_url` / `model` / `api_key` overrides and gains `LLMClient.for_role(role)`; unknown roles and dangling profile ids fall back to the Active LLM. - New config knob: `agent_llm_assignments` (role → profile id or null), exposed via `GET/POST /api/settings`. - `POST /api/settings` accepts `agent_llm_assignments` with server-side validation. - Export: `probe()` now returns `fps` (from ffprobe `r_frame_rate`), `parse_rate()` parses rational rates like `24000/1001`, `target_fps()` votes the conform rate, and `build_ffmpeg_cmd(..., fps=...)` takes an optional override. - New `ClipSourceModal.svelte` component backs the video source picker; `Modal.svelte` gained an `xl` size (1180px). - Version bumped to **1.2.3** (`calliope-web/package.json`, `calliope-backend/pyproject.toml`). - Full backend suite: **248 passed**.