Hey Anna app developers! ![]()
Last cycle gave your Apps a voice. This one gives them a soundtrack, a studio, and a lot more headroom ![]()
β anna.music.* opens Suno-style music generation to Apps and Executas, anna.image.* gains async jobs + 7-day artifact re-signing, every TTS / image model now describes its own knobs so you can stop guessing parameters, and a brand-new Developer Console Playground lets you try every media model with your own App identity before writing a line of code. We also killed the infamous 8,192-token output cap on Agent Sessions, taught App windows to fit any screen, and made the Dashboard tell your App its theme and language. ![]()
![]()
Huge thanks to the developers who shaped this cycle: @HappyLight (#403 β the meticulous βalways ends at 8,188 tokens with completedβ report that uncovered a real regression, and #414 β the QueuePool timeout trace from Anna Deck that led us straight to a connection-pool bug
), @martindelophy (#426 β the βscript β storyboard β image β video β musicβ pitch from Timeline Studio that became anna.music.*, plus the window-geometry notes from #376 that drove the viewport work
), @Yinghuo_Mars (#404 / #405 β TTS options and image.generate size control; both are now schema-driven, and your feature-comparison table literally became the Playgroundβs Compare view
), and @sadi (#385 β the sharp βworks in the App window, fails from chatβ Executa report). Every detailed write-up moves the platform. ![]()
Letβs dive in! ![]()
New Features
-
Music generation for Apps & Executas β anna.music.*(beta.197, SDK 0.23.0, #426) β the last link in the short-film production chain. Async jobs (mjob_β¦) with the exact same shape as video:generate / getJob / cancelJob / listJobs,media_jobevents, pre-hold β settle β refund billing, presigned R2 URLs, andgenerateAwait()sugar. Six catalog entries across five families β MiniMax Music 2.6, Lyria 3 / 3 Pro, ElevenLabs Music, Stable Audio 2.5, ACE-Step β with per-minute pricing. Capability bits are explicit and never silently downgraded: lyrics, duration control, instrumental-only, reference image β if a model canβt do it, you getMUSIC_FEATURE_UNSUPPORTED (-32165)witherror.data.alternativeslisting models that can.
const { models } = await anna.llm.catalog({ serviceType: "music_gen" }); const m = models.find(x => x.isPlatformDefault); // fal-ai/minimax-music/v2.6 const song = await anna.music.generateAwait( { prompt: "melancholic cinematic piano, slow ~70 BPM, rainy night", lyrics: "[Verse 1]\nβ¦\n[Chorus]\nβ¦", // only when m.capabilities.lyrics model: m.modelName, clientTag: "scene-3-score", idempotencyKey: "canvas-node-8f3a-v2" }, // 24h replay β same job, no re-charge { onProgress: (p) => bar.update(p) } ); audio.src = song.result.url;Opt in with
ui.host_api.music+ the per-appmedia_grant.music. Executas get mirroredmusic/*reverse RPC viamedia_token.allow_music. New:idempotencyKeyon bothmusic.generateandvideo.generateβ a 24 h replay returns the existing job instead of charging twice (and the per-invokemax_video_jobsgate is gone).
-
Image async jobs + artifact re-signing β anna.image.*(beta.199, SDK 0.25.0) βimage.generate/image.editstay synchronous and byte-for-byte unchanged. For 2K / 4K orquality: "high"renders (60β120 s), opt into the same job API as video / music:generateAsync / editAsync / getJob / cancelJob / listJobs+generateAwait / editAwait / onJobEvent. One job = n images, settled on the actual number produced (β€estimatedCostCU), andgetJobre-signs everyresult.images[].url. The one everyone asked for:anna.image.resign({ r2Keys })β any already-paid artifact (syncr2_keyor jobr2Key) can be re-signed for 7 days, so a 30-minute URL TTL no longer means a lost image.
Executas get image/{generate_async, edit_async, get_job, cancel_job, resign}too. Image catalog converged to fal (Nano Banana 2, GPT Image 2 with 8 reference images, Seedream) β fewer surprises, one pricing source of truth. -
Model-aware options β TTS & image knobs are now schema-driven (beta.192, SDK 0.22.0, #404 / #405) β every TTS / image model publishes capabilities.options(schema v2:{type, min, max, step, values, default, scope}). Pass any of them inparams; unsupported keys are dropped and echoed back inignoredParamsβ never silently applied, never surcharged. Invalid values βAUDIO_OPTION_INVALID (-32149). ElevenLabs TTS joins the catalog withstability / similarity_boost / style / speed. For images: explicitmodel,aspect_ratio, and afitpolicy β"nearest"(default, keeps orientation) or"strict"(fails withIMAGE_SIZE_UNSUPPORTED+data.allowedinstead of snapping) β withrequestedSize / size / sizeAdjustedechoed in the response. No more 9:16 requests quietly coming back square.
const out = await anna.audio.speak({ text: "Welcome!", model: tts.modelName, voice: tts.capabilities.defaultVoice, params: { stability: 0.3, similarity_boost: 0.8 } }); out.ignoredParams; // e.g. ["similarity_boost"] on a model that only exposes stabilityCatalog entries also carry
isPlatformDefaultandisUserPreferred, and the sharedModelOptionsFormcomponent (the same one/llmuses) renders anycapabilities.optionsJSON into a form β reuse it in your App.
-
Developer Console Playground (beta.193β195, #404 / #405) β /developer?view=playground: pick one of your Apps, and the Playground mints a devapp_sessionto call the realaudio.speak,audio.transcribe(file / mic / URL),image.generate / edit(sync or βRun as jobβ with cancel + re-sign),video.generateandmusic.generate. Forms auto-render from each modelβs options schema, CU is estimated before Run and billed-cost shown after,params / ignoredParamsare echoed, and curl / SDK / HTTP snippets update live. Compare TTS / Compare Music tables and the Developer Hubβs read-only βTry itβ are generated straight from the catalog β plus a publicGET /developers/model-capabilitiesand a new Model Capabilities reference page. Rate-limited to 30 runs / hour. Your Appβs media integration can now be designed in minutes, not afternoons.
-
Theme & language propagation to Apps (beta.198, SDK 0.24.0) β the Dashboard now tells your iframe what the user actually picked. Initial values ride on the iframe URL (?theme=&themeMode=&lang=) and are read synchronously inconnect()β correct before first paint β and live changes arrive astheme.changed/locale.changedbroadcasts (no manifest grant needed; these are events, not RPC):anna.theme; // 'light' | 'dark' anna.themeMode; // 'light' | 'dark' | 'system' anna.locale; // 'en' | 'zh-CN' | β¦ anna.onThemeChange(({ theme }) => document.documentElement.dataset.theme = theme); anna.onLocaleChange(({ lang }) => i18n.setLocale(lang));Older hosts send neither β the SDK falls back to
prefers-color-scheme/navigator.language. Keep a CSS fallback for standalone previews.
-
agent.session.rungainsmaxTokens+ truncation signals (beta.200, SDK 0.26.0, schema 0.30.0, #403) β alongside the bug fix below, runs are now transparent about output limits.run_meta.max_output_tokensdiscloses the effective per-call cap before the first token;task_completecarriesstop_reason(endTurn | maxTokens | contentFilter | toolUse, same set asllm.complete),truncated, andmax_output_tokens. OptionalmaxTokens(1..65536) can only lower the cap. All additive β older hosts simply omit the new fields.for await (const ev of sess.run({ content: prompt, maxTokens: 16384 })) { if (ev.event === "run_meta") console.log("cap:", ev.max_output_tokens); const tc = ev.choices?.[0]?.delta?.task_complete; if (tc?.truncated) { /* status is still "completed" β continue in the same session */ } } -
App windows adapt to any viewport (beta.200, #376) β windows are now clamped to the real work area (measured Sidebar edge + Dock edge), centered on first open, title bar always reachable, integer geometry (no more float rejections). 8-direction resize (edges + corners), a βFit screenβ title-bar button, and double-click to maximize / restore; maximized windows re-fit automatically when the Sidebar or chat layout changes. Validator now warns (non-blocking) when min_sizeexceeds 1024Γ600 ordefault_sizeexceeds 1440Γ900 β a gentle nudge toward laptop-friendly defaults.
-
Pre-installed Apps v2 (beta.200) β onboarding reconciles the pre-install list on every start (dedup 20 s, failures isolated), deployment is handled by the Executa reconciler, and admins can mark Apps
locked (removable: falseβ no uninstall entry in the grid, context menu, or folders). Window-ready probes wait for in-flight reconcile jobs, and the tooling overlay shows a single-line status while your Executa warms up. New users land on a complete desktop, every time.
Bug Fixes
-
Agent Session output always truncated at 8,192 tokens with status: completed(beta.200, #403) β @HappyLightβs 12-slide HTML deck kept stopping at 8,188 output tokens. Root cause: since beta.179 the output-cap resolver fell back to a platform constant (DEFAULT_APP_OUTPUT_TOKENS = 8192) whenever no explicit value was passed β and the chat / agent paths had no way to pass one. The resolverβs default is now the modelβs own output cap, the context-reserve ceiling was raised 16,384 β 65,536, and the platform constant is deleted (limitedByis now onlyrequest | model | transport). Net effect: 1M-context models can emit up to 65,536 tokens per call, 200K models ~20,000; β€ 163,840-context models are unchanged.llm.completeis unaffected;llm.streamwithoutmaxTokensnow defaults tomin(model cap, 65536)instead of 8,192 (so worst-case pre-checks are higher β if you hit429, lowermaxTokensusingdata.requiredCuand retry).
-
Executa mentioned from chat failed with -32001/-32021, but worked in the App window (beta.191, #385) β @sadi nailed it: Executas installed alongside an App arechat_resident: false, so an explicit@/#mention didnβt make it intouser_executasβ the tool allow-list ignored its tools and the token minter couldnβt find its grants, so invokes shipped without sampling / storage tokens. Mentions of non-resident Executas are now resolved before tool assembly and temporarily merged into that turnβs set (nothing written to DB,chat_residentunchanged). Your Executa now behaves identically whether called from chat or from the App window.
-
web.image_fetchpinned the DB connection pool under concurrency (beta.191, #414) β @HappyLightβs Anna Deck fired dozens of concurrentimage_fetchcalls; each one held a DB connection for the entire R2 upload (presign β put β finalize in one transaction), exhausting the 15-connection pool and turning unrelated RPCs into bare HTTP 500s after a 15 s wait. Split into two transactions: the connection is returned right after presign, no pool connection is held during upload, and finalize checks out lazily. Failed uploads now roll back the pending row + quota and surface a structuredprovider_errorinstead ofhandler crashed.
-
image.generatecontent rejections returned-32003 APP_PROVIDER_ERROR(beta.199) β provider safety rejections are now-32115 IMAGE_CONTENT_REJECTEDon both sync and async paths, andHostRpcError.details.data(allowed / alternatives / index) is passed through to the iframe so you can actually branch on it. -
Install / update progress βfull but greyβ (beta.191) β older Agents reported value: 1.0duringextracting / finalizing, so the ring filled in seconds and then sat at 100 % grey for ~25 s of unpack + cold-start. All four progress consumers (Dashboard, Store cards, Installed Apps, window manager) now cap non-terminal items at 95 %; onlyinstalled | failed | skippedreaches 100. -
Executa music / video jobs no longer need a per-invoke job quota (beta.197) β max_video_jobsis no longer minted or required onmedia_token; the hold/settle budget alone governs cost.
@anna-ai/cli 0.1.60 β 0.1.61 β update now!
npm i -g @anna-ai/cli@latest
# or
pnpm add -g @anna-ai/cli@latest

Host bridges for music.*and asyncimage.*(0.1.60) β the dev harnessLlmBridgenow routeshost.music.{generate,getJob,cancelJob,listJobs}andhost.image.{generateAsync,editAsync,getJob,cancelJob,listJobs,resign}to the platform with your dev token (samekind=completetoken andjobIdtemplating as video). Syncimage.generate / editbehaviour is unchanged. In mock mode they answer from fixtures; without a bridge you getnot_implementedβ the same contract as runtime-local.
Theme & language switches in the dev dashboard (0.1.60) β the harness appends ?theme=&themeMode=&lang=to your iframe URL and the title bar gains
/
and EN / δΈ toggles that broadcast theme.changed/locale.changedto your App (logged and recorded). Test your dark mode and i18n without touching the Dashboard.
agent.session.runmaxTokenspasses straight through (0.1.61) β zero CLI logic change; the harness forwards the full run params to/copilot/app/agent, somaxTokensand the newrun_meta / task_completefields work locally exactly as in production.
Pins @anna-ai/app-runtime ^0.26.0 and @anna-ai/app-schema ^0.30.0 (dispatcher 0.30.0 β music.*Γ4,image.*Γ6 andmaxTokensall validate locally); runtime-local 0.2.0a30 (anna-app-core β₯ 0.26.0, < 0.27 βhost.image.*delegation included). Installedhost_api/methods.jsonis byte-identical to matrix-nexusmain. Verified against beta.200.
Compatibility Notes
Everything is additive. music.*, asyncimage.*+resign,params / fit / aspect_ratio,maxTokens, theme / locale, schema 0.28.0 β 0.30.0 β all new. Apps that change nothing keep working. Syncimage.generate / edit,audio.speak,video.*request shapes are untouched.
Output caps got bigger, not smaller. If your App relied on the implicit 8,192 cap in llm.streamor Agent runs for cost control, passmaxTokensexplicitly. Watchtask_complete.truncatedinstead ofstatusto detect cut-offs βstatuswas and still iscompletedin that case.
Feature-detect new namespaces: typeof anna.music?.generate === "function",typeof anna.image?.resign === "function". Older hosts / SDKs answerunknown_method/not_supported.
Music needs two gates: ui.host_api.musicin the manifest and the userβsmedia_grant.musicopt-in. Async image methods must be listed by name inui.host_api.image; the existingimage_grant(allowGenerate/allowEdit) covers them βeditAsynccounts asallowEdit.
fitdefaults to"nearest"β identical to the old behaviour, but now echoed viasizeAdjusted. Switch to"strict"where exact dimensions matter.
Image catalog is fal-only. If you hard-coded a non-fal image model name, use anna.llm.catalog({ serviceType: "image_gen" })and pick byisPlatformDefault/capabilities.
Error-code shifts: image content rejection -32003β-32115 IMAGE_CONTENT_REJECTED; new ranges-32113β¦-32117(image jobs / resign),-32160β¦-32169(music),-32149 AUDIO_OPTION_INVALID.
Window sizes: nothing breaks, but oversized min_size/default_sizenow emit validator warnings. Geometry must be integers (it always should have been β now the WM rounds for you).
Theme / locale arrive on hosts β₯ beta.198 only; keep the prefers-color-schemeCSS fallback.
Feedback Welcome!
Scoring a short film with anna.music, batching 4K posters as image jobs, or finally shipping that 40-page deck without a cut-off? Weβd love to see it β and hear whatβs missing. Voice settings, more voices, and reference-video inputs are still on the radar. ![]()
Once again, community-powered: @HappyLightβs two reports fixed a regression and a pool leak, @martindelophyβs request became a whole new media family, @Yinghuo_Marsβs questions shaped the Playground, and @sadiβs diagnosis made Executas consistent everywhere. Detailed reproductions and real use cases are the fastest route from βrequestβ to βshippedβ β keep them coming! ![]()
Happy building! ![]()
![]()