Repository navigation
Releases
CatCup Tavern 0.5.1
Early-access release. Moves your existing data in and handles single-character and group roleplay end to end. The Windows installer is unsigned, and what works and what does not says exactly where the line is.
An interface that can speak Chinese. The app's own words now come from a message deck rather than from
components, a profile chooses its language in Settings → Appearance, and the first surfaces have been moved
onto it. The extraction continues one screen at a time; nothing is half-translated where it has been done.
Added
- The interface can be shown in 简体中文, and the setting is per profile.
ui.languagehas been in the settings schema since 0.2.0 marked "reserved for future i18n" and nothing read it: every string in the app was a literal in a component, so there was nothing to translate. User-facing text now lives inapps/web/src/i18n/en.tsand its translations,ui.languagepicks the deck, and Settings → Appearance → Interface language switches it with no reload. The choice is saved with the profile, so two profiles can read the app in two languages, and it follows a profile switch for the same reason the skin does. The runtime is about ninety lines overIntl.PluralRules,Intl.NumberFormatandIntl.DateTimeFormat— no dependency, because the four things needed (nested decks,{named}interpolation, CLDR plural categories, locale-aware numbers and dates) are things the browser already implements, and a message-parsing framework would have been larger than the problem without answering the one that matters: how a half-finished translation is refused. It is refused by the type. A translation is declared as a deep mirror of the English deck, so a missing, renamed or moved key is a compile error in the editor rather than a blank space someone notices in another language, and a test additionally holds every{placeholder}set to be identical across decks. Plurals live in their own namespace with their own mirror, because whether a language has aoneor afewis a property of the language — Chinese hasotheralone — and forcing a translation to invent a category its grammar never uses would be the wrong kind of parity. - A ratchet, so the rest of the extraction actually finishes.
scripts/check-i18n.mjsscans.tsxfiles for JSX text, the string props a person reads and inline toast text, and fails on any string in a file that is not on its list of surfaces still to come. The list is only ever shortened. A checker that simply failed would be red until the last file moved and would be ignored long before that; this one prints the count that is left, which is the progress bar, and turns a regression into a failing CI gate rather than a review comment. It is a scanner rather than a parser on purpose: a false negative costs one string caught by review, a false positive costs one line in its exemption list. - A failure reads as the person's own action, in their language. Every error toast was
error.message— the server's English prose — with the translated sentence only as a fallback for the case where the server said nothing at all, so a Chinese reader saw "Character not found".useErrorToastnow shows the caller's translated sentence as the title and the server's line beneath it as the detail: what the person was doing, and the specific reason to quote. The server's message is not discarded because the server is what knows what went wrong. Translating by errorcode— the codes are already on the wire — is the remaining step that removes the English line entirely.
Changed
- The sign-in screen, the library rail, the profile switcher, the Settings navigation, the Appearance panel and message timestamps are translated. These are the pilot: one or two of every kind of string the rest of the app has — a sentence, a label, an accessible name, a placeholder, a count with a plural, an interpolation, a toast — so the mechanism is proven against all of them before forty more files are moved onto it. Sign-in and setup render before a profile exists, so they use the language the browser asks for; once settings resolve, the saved language wins, which is what makes a saved choice survive a browser set to something else.
- A Chinese heading is a Chinese typeface.
InterandNewsreadership as Latin subsets, so Chinese display text fell through to whatever the operating system callsserif— SimSun on Windows, which reads like a page of a document rather than a title. A locale now carries its own display stack (Songti SC,Noto Serif CJK SC,Source Han Serif, …),styles.cssreads it ahead of the built-in one, and a skin that sets--font-displayoutright still wins because the file is the person's own choice. These are system faces rather than bundled files: every platform we ship has one, offline, and a subsetted CJK face is a separate piece of tooling. - Message times follow the language.
formatMessageTimehaden-USwritten into it; it takes a locale now, so a timestamp is06:22in Chinese rather than06:22 AM.
CatCup Tavern 0.5.0
Early-access release. Moves your existing data in and handles single-character and group roleplay end to end. The Windows installer is unsigned, and what works and what does not says exactly where the line is.
The appearance release. Every colour, typeface, size, radius and shadow in the interface is now a theme token a skin can set; a skin is a .catcup file a person can install, make in the app and export again; and a character can be created from nothing instead of only imported.
Added
- A character can start in the app. Every card in CatCup arrived from a file:
CharacterEditorrenders only once a card exists, androutes/characters.tshad no create endpoint, so authoring meant writing the card elsewhere or hand-authoring JSON. New character in the library — and in the empty state, where a first-time install now has somewhere to begin besides the sample — asks for a name and an optional first message, creates the card and opens the existing editor on it, which is where its other eleven fields live. The endpoint isPOST /api/characters, and its body is the editor's own field set withnamemade required, so creation and editing cannot drift about what a card is. The new card is a PNG carrying a generated placeholder portrait — a hue derived from the name, its initials, and the app's border — because the library is a grid of pictures and a card with no picture is a hole in it; a name already in use gets a numeric suffix and never overwrites, checked against both scopes since an id has to be free everywhere. Verified live: created in the dialog, opened in the editor with its initials on the tile, exported to PNG, re-imported, and every field survived. - A skin can be made without a text editor. Settings → Appearance had install, review and remove, and no way to create one unless you could write JSON: the format was complete and the tools that use it were not. New skin opens a form over the token whitelist with a live preview. The field list is
SKIN_TOKENSitself — grouped as the schema groups it, with a test holding the two lists to the same variables — so a token added to the whitelist appears as a field and a name outside it has no field at all. Colours get a picker beside a free-text field, because the format acceptsoklch()andcolor-mix()and a picker cannot express them; everything else is text. Clearing a field removes the token rather than writing a default, so a skin that changes two colours writes two lines and every other property keeps inheriting the built-in theme. The preview is aSkinSurfacewearing the draft through the sameskinCustomProperties→toInstalledSkinpath an installed skin takes, and the contrast readout is the samecheckSkinover the same pairs the install sheet runs, updating as values change and blocking nothing. Editing an installed skin loads its manifest and keeps the fields the form does not own. Verified in a browser against a throwaway data folder: surface#12212eand a display face changed, preview updated while:rootstayed#1b1410, saved, applied, and the window took both. - A skin exports as a
.catcup.GET /api/skins/:id/exportwritesmanifest.json, the stylesheet and every media file the install declared, through one ZIP writer beside the existing reader. The media index is rebuilt from what the install recorded, because the asset ids and types are the part of it a file name cannot supply. Verified round trip: export, delete, import through the installer, and the skin came back with the same id, name, colour and font. fflatehas one writer as well as one reader.apps/server/src/packs/zip.tsis the counterpart toarchive.ts: the manifest first, assets stored uncompressed because pictures and fonts are already compressed and re-compressing a woff2 gives some readers a file they cannot parse.
Changed
- A chat's rename and delete are shared by both conversation views. The second cut of stage C:
ChatViewandGroupChatVieweach carried their own copy of the rename handler, the delete handler, the rename modal and the delete confirmation. They now sharehooks/useChatActions.tsandcomponents/RenameChatDialog.tsx. Only two things genuinely differed —useRenameChatresolves to the chat whileuseRenameGroupChatresolves to{ chat, group }, and the two views select a chat through different callbacks (the group's also records the group'schat_id) — so each is a one-line adapter at the call site rather than a branch inside the hook. - A label that pointed at nothing now points at its field. The group's rename dialog said
htmlFor="chat-name"while its input wasid="group-chat-name", so clicking the label did nothing and the input had no accessible name from it. Found while comparing the two copies, which is the kind of defect an extraction surfaces. The shared dialog takes its id as a required prop, so the pair cannot drift apart again. - The two conversation views share the transcript's behaviour instead of copying it.
ChatViewandGroupChatVieware 1,025 and 1,113 lines, and 606 of those lines were identical — the same scroll effects, the same dependencies, the samebiome-ignoreabove each. Following the newest line, jumping to it on a chat switch, and stopping the previous chat's audio now live inhooks/useTranscript.ts. This is a behaviour-preserving extraction and nothing else: no layout, no rendering and no interaction changed, and the views still own the parts where they genuinely differ. It is the first piece of stage C, being done as a series of verified extractions rather than one rewrite, because 56.7% similarity is not the same thing as 56.7% that should be shared. - No confirmation is a browser dialog any more. Fourteen call sites still used
window.confirm, which blocks the thread and draws the operating system's box: on Windows a white system prompt in the middle of a dark panel, identical in no way to the app around it, and unreachable by any theme. Every one now goes throughconfirm({...})— a promise the caller awaits, drawn by the app's ownConfirmDialog, and each newly names the object and says what stops working rather than only that it cannot be undone. Two discard guards also stopped being exceptions: a half-written director scene, an edited world info entry and an edited quick reply set now ask in the app's voice.docs/DESIGN.mdhas required this since stage B; the rule is now true, and the tree's only mention ofwindow.confirmis the comment explaining why not. text-muted/70and its two relatives are gone. Opacity on muted text reads at 3.0:1 where plainmutedreads 4.81 —docs/DESIGN.mdhad banned it since stage A while 39 places used it. They usetext-muted. The rule is now checkable rather than aspirational: both the tint and the size it was used at are gone from the tree.- A test that failed at random now has the time it needs.
auth.test.ts's desktop-session cases re-import the whole app for each case, so one of them pays for the tokenizer vocabulary — about 2.5 s alone, and occasionally past the 5 s default beside a full suite on a loaded machine. Two of them timed out in roughly one run in four while this release was being prepared. The describe block now carries a 20 s timeout, the patternim/conversation.test.tsalready uses, because the limit was the problem rather than the behaviour.
Fixed
- Editing a skin no longer deletes the stylesheet and media it shipped with.
installSkinremoved both whenever a caller passed none, and two of the three callers never had any to pass — the editor saves tokens, and a baremanifest.jsonhas no archive to read a sheet out of. A packaged skin survived an edit with its colours changed and its stylesheet gone. An omitted argument now means "keep";nulland[]still mean "remove", which is what the pack reader passes for a package that carries none. - A skin's stylesheet is stored as its author wrote it. The loader used to wrap the sheet in
[data-skin]and rewrite itsurl()s before storing it, which made the stored file a document generated for the browser rather than the package member it arrived as — and would have made every export carry a stylesheet the author never wrote. The wrap, the rewrite and the@font-faceemission now happen inGET /api/skins/:id/css, where a browser is the audience; what is stored is what came in, checked and refused if it cannot be verified, as it was already. - A saved skin stays the skin being edited. Found in the browser and not by a test: the editor decided which skin it was from the prop it opened with, so a skin saved for the first time kept the New skin title, left its id editable, and disabled Export although the file existed. It now holds its own last save as the base for the next one, which also closes a narrower window where a second Save, before the refetched list arrived, would have built from a bare manifest and dropped a packaged skin's
cssandassets. - A
surfaceskin restyles one view and nothing else. The format has allowed the scope since #190; the code only ever handledapp.SkinSurfacewrites a skin's tokens inline on a wrapper — so they inherit downwards and stop there — sets thedata-skinattribute the server's scoped stylesheet selects on, and loads that stylesheet only while the surface is mounted. The Appearance panel now refuses to make a surface skin the window skin, because writing it toui.skinIdwould set it on:rootand leak into the very area the scope protects; it offers a preview box instead, which is the first real user of the mechanism. Verified live: inside the box--color-surfacewas#0d2b1f,--color-amber#4ade80,--radius-xl2px, while the window around it stayed#1b1410,#e2a55a,0.75rem. - A skin brings its own pictures and typeface. ...
CatCup Tavern 0.4.0
Early-access release. Moves your existing data in and handles single-character and group roleplay end to end. The Windows installer is unsigned, and what works and what does not says exactly where the line is.
Added
-
A plan for removing the last of the adapted code.
docs/REUSE-ISOLATION.mdreplaces the earlier assessment with an evaluation and a phased plan. Its finding is that the risk is not where intuition points: the 1,034-line world info scanner is an algorithm, close to the idea/expression line and implementable from the format documentation, while the highest-expression content in the repository is a handful of short instruction strings, and short creative text is exactly what copyright protects. The plan therefore rewrites the instruction text first, re-sorts the format bucket next, and rewrites the behaviour last. The goal is independence of authorship rather than a change of licence: AGPL-3.0 is the project's own choice and stays, and the plan only notes that a tree with no borrowed code keeps any later decision in the project's hands. It also records plainly what no amount of refactoring can buy: this tree cannot make a clean-room claim, because the test suite that would gate a rewrite was itself written against the adapted code, and anyone who needs that claim needs a different process rather than a smaller diff. -
The default instructions are CatCup's own wording. A fresh install, or a preset that never set these fields, now starts from text written for this project rather than copied from another client: the Main Prompt, Enhance Definitions, the continue and impersonate nudges, both memory summarize instructions, the two image drafting instructions, and the group-chat opening line. A preset that carries its own text is unaffected, which is most of them — the stored identifiers, order and marker flags are untouched, because those are the preset format. Two things were deliberately left alone: the bracketed
[Start a new Chat]style markers, which are labels rather than instruction, and the Stable Diffusion prefix and negative prompt, which are a comma-separated list of artefact names closer to a vocabulary than to prose. -
The key matcher is rewritten from the format documentation.
packages/compat-st/src/matching.tswas the first module of the behaviour bucket to be replaced. It decides whether a world info entry fires: substring keys,/pattern/flagsregular expressions, the@@activate/@@dont_activatedecorator prefix, and the whole-word option. The rules are unchanged and the tests that pin them are unchanged; what changed is that the file is now CatCup's, written fromdocs/DATA-FORMATS.mdrather than carried over, so it has noDerived fromheader and can be changed on its own terms. One behaviour is now written down rather than implied: an empty key matches everything, which is what keeps an entry whose keys were all blank after trimming from going silently inert. -
The regex engine is CatCup's own.
packages/shared/src/regex.tsdecides which regex scripts run and how one rewrites a string: the markdown/prompt/source gate, the edit gate, the depth window,/pattern/flagsparsing,{{match}}/$1/$<name>expansion and the trim filter. No test changed. The rewrite also removed a duplicated parser:keywords.tscarried its own copy of the/pattern/flagsgrammar to decide whether a world info key is a regex, and now delegates to the engine's. -
Timed effects and the memory modules are CatCup's own.
packages/compat-st/src/timedEffects.ts(sticky, cooldown, delay and the sticky-to-cooldown hand-off),apps/server/src/memory/summary.ts(when a summary is due, which messages it covers, the request) andapps/server/src/memory/inject.ts(which summaries reach a prompt, and how they are formatted). No behaviour changed and no test was edited.The rewrite writes down what the code relied on silently: the four deletion rules in timed effects and why their order matters, that a record is never refreshed so its window starts at the first activation, that
check()runs sticky before cooldown because an expiring sticky pushes its successor onto the cooldown buffer for the same scan, and that a summary always covers history before the newest message. -
Two more modules are CatCup's own.
compat-st/src/prompt.tsshapes a scan into the prompt buckets and applies the author'swi_format;shared/src/macros.tsexpands{{char}}and friends. Both were rewritten from the format documents, so neither carries aDerived fromheader any more. Behaviour is unchanged and no test changed. One thing was made explicit in the macros: an unknown{{name}}is left exactly as written rather than blanked, so a card written for a richer engine loses nothing visible and its author can see which macros this client does not know. -
The prompt pipeline is CatCup's own. Four modules rewritten from the format and their own tests:
compat-st/src/prompt-history.ts(stored messages and a card's example dialogue into prompt turns),compat-st/src/prompt-messages.ts(the assembled prompt as ordered slots),compat-st/src/prompt-tokenizer.ts(which vocabulary a model counts with) andapps/server/src/prompt/manager.ts(filling a preset's gaps and resolving the render order). No behaviour changed and no test was edited.Two rules the code relied on are now written down: the tiktoken table is ordered most-specific-first and re-sorting it would silently give several models the wrong vocabulary, and an empty global prompt order is a real saved state that has to be replaced with the default rather than left empty — a prompt with no main, no history and no examples fails for a reason nothing in the UI explains.
-
The image and speech adapters are CatCup's own. Seven files: the A1111, OpenAI-images and OpenAI-speech request builders, the draft-from-chat prompt cleanup, the speech text preparation and chunking, and the TTS and image settings models. These were written against each service's published HTTP API rather than adapted from another client, so they now say so. No behaviour changed and no test was edited.
One thing made explicit in the speech cleaner: the tag list is a fixed set rather than a general
<[^>]+>pattern, because card text and model replies legitimately contain<in prose, and a catch-all would delete real sentences. -
Prompt assembly and the quick reply executor are CatCup's own.
apps/server/src/prompt/assemble.ts(the nine phases that turn a card, persona, preset and scan into a message array) andapps/server/src/quickreplies/execute.ts(the command subset and/runexpansion). No behaviour changed.execute.tshad no direct tests, so this addsexecute.test.tsfirst — 17 assertions covering what each command appends, the argument rules, the recursion guard and, the promise the API makes, that a malformed reply leaves the chat untouched. The rewrite then landed against them. -
Every file adapted from another client now says so, accurately.
docs/REUSE.mdlisted 48 files, 9,948 lines, as adapted or format-implementing, but 22 of them carried no provenance comment at all — so grepping for a header undercounted the real figure by about 4,500 lines. Each of the 48 now opens with a line saying which of two things it is: the specification it implements, or the upstream file it was adapted from.packages/compat-st/src/keywords.tswas a duplicate of the copy in@catcup/sharedthat nothing imported, and is gone.hash.tsis now sourced from cyrb53's own publication rather than from another project's utility module, which takes it off the list of things that cannot be replaced.Ten of the 48 are now marked as what they are — implementations of a published format — rather than as adapted code: the six schemas, card parsing, card writing, PNG chunk handling and the favourite flag. Three went the other way, and they are the useful record: world info parsing keeps its adapted header because the hash payload's field order is only written down in another client's source; the card-book converter keeps it because what an absent field means follows another client's defaults; and the loader loses it because the adapted code moved into the package split and what remains is CatCup's file I/O.
-
A public landing page, in nine languages.
site/is a static page published togh-pagesby
.github/workflows/pages.yml, with English at the root andzh-CN,ja,ko,de,fr,es,
ruandpt-BRbeside it, each with its own<html lang>, title, description, canonical and
hreflangalternates. The page's one moving part is the product itself: a chat window built in HTML
and CSS from the real components' structure and the app's own tokens, which accepts what you type and
streams Mira's canned reply word by word, with Browser / LAN / Windows tabs that change only the
window chrome around it.scripts/build-site.mjsrenders the decks insite/content/, writes
sitemap.xml,robots.txtand the assets, and fails when a locale is missing a key or leaves a
placeholder behind; it has no dependencies and no bundler.scripts/preview-site.mjsserves the
result on:4173, andpnpm sitebuilds it. Every download button points at the installer asset
itself (releases/download/v<version>/CatCup.Tavern_<version>_x64-setup.exe, named by the Tauri
bundler and built frompackage.jsonat build time) rather than at the release page, and the install
section names the file it downloads beside a link to every release. The language menu's links are
computed against the page they sit on rather than written as./and../<code>/, which only
resolve from inside a locale folder: from the English page they left the project path altogether and
landed on whatever else the account hosts, and from a locale page `...
CatCup Tavern 0.3.2
Early-access release. Moves your existing data in and handles single-character and group roleplay end to end. The Windows installer is unsigned, and what works and what does not says exactly where the line is.
Added
- Add provider opens a picker whose first entry is Custom provider — "choose its protocol, enter the request URL and API key yourself" — with the four service templates below it under Or start from a service. The custom entry starts with an empty base URL, so the endpoint is typed rather than inherited from a vendor, and the templates stay one-click prefills of name, kind and default URL.
- The provider form asks for a request protocol instead of a vendor.
openai,openrouterandcustomare one protocol — OpenAI Chat Completions — with different defaults, and the label now says so: OpenAI Chat Completions (/chat/completions, SSE), Anthropic Messages (/messages, SSE) and Ollama native (/api/chat, NDJSON), each with a line naming what it covers. Changing the protocol keeps a hand-typed base URL, and a provider still matching its template keeps that template's kind when the protocol it speaks is chosen again. The storedkindvalues are unchanged, so no provider needs a migration. New exports in the shared schema:PROTOCOL_LABELS,PROTOCOL_HINTS,PROVIDER_PROTOCOLS,protocolFor,PROVIDER_TEMPLATES,providerInitials,providerSummary,expectsKey. - Every dropdown in the app is now a CatCup control rather than the operating system's. A native
<select>and a<datalist>draw their own popup, which on Windows arrived as a white system list in the middle of the dark panel and could not be styled.Selectreplaces the select: the same.input-shelltrigger, a portalledrole="listbox"insurfacewithlineborders, an amber mark on the selected row, arrow keys, Home/End, type-ahead, Escape that closes the list without closing the dialog under it, and three sizes (mdform field,smcompact row,xsheader chip).Comboboxreplaces the datalist: a free-text field with filtered suggestions that still accepts a value the list does not carry, for model ids, TTS voices, image samplers and bulk tags. Both are documented indocs/DESIGN.md. - A checked-in Claude Code skill,
novel-to-catcup, that turns a novel or any long text into a pack CatCup imports as-is: one V2 character card per character, one ST-shaped world info book, persona text for a character the user wants to play, and portrait prompts for every card. It carries a pack validator and an offline PNG card writer that stampschara/ccv3metadata into a chosen portrait, plus a script that compares its output with the server's own writer. This is the static, script-backed variant for people working in a checkout; it is distinct from the generated, prompt-only export served atGET /api/distill/skill, which carries no scripts. Seedocs/DEVELOPMENT.md#skills. - The distillation pipeline can leave the app. Distil somewhere else → Skill in the book dialog — and
GET /api/distill/skill— downloads a Claude Skill as a ZIP: the four stages, every prompt verbatim, the JSON Schema for the analysis reply and the draft rows, and a description of SillyTavern's world info and Character Card V2 shapes. It is prompt-only and generated from the same constants a run sends, so a prompt edit changes both the server and the export; a test fails if a bundle ever carries a prompt the runtime no longer uses. It needs no provider, model or uploaded book, and carries no book text, key or secret. - Play as this character. A button in the character library copies a card into a persona —
description,personality,scenarioand example messages — so you can speak as someone from your cast instead of retyping them. The card's opening line is deliberately left behind: that is the assistant's line, and a persona carrying it makes the model greet itself. The persona is a copy, so editing it never touches the card. - A persona can carry a card's voice.
personality,scenarioandmesExamplejoinnameanddescriptionas optional fields. In the prompt the first three are joined into the one persona slot as labelled paragraphs, and the examples are parsed as your turns — never the assistant's. All three default to absent, so an existingsettings.jsonproduces exactly the prompt it always did, and the persona editor shows them behind a disclosure. - Generate a portrait from a card. Portrait in the character editor drafts an image prompt from the card's description and personality — no chat involved, so it works for a card that has never been spoken to — and Use as portrait makes the result the character's picture. A PNG card is rewritten with the same data embedded; a JSON card becomes a PNG card, because a card's picture and its data are one file. The previous picture is not kept, and the confirmation says so. The instruction is editable as Portrait instruction in Settings → Images.
- Drafting an image prompt no longer needs an image backend. Drafting is a chat-model call, so Draft from chat and Draft from card work with image generation disabled, and a Copy button puts the prompt wherever you want it. Only generating and setting a portrait need a backend.
Changed
- A provider row in the library footer and the Providers list names its service and default model through one helper, so a custom provider reads as its protocol rather than as a vendor it does not have.
- Interface copy names what the app does rather than the client its formats came from. The import entry is now Import from another app, its dialog asks for a data folder, and its error, the About tab, the Settings, Memory, Quick Replies and Regex hints, the empty group editor, the Quick Replies format check and the
index.html/package.jsondescriptions no longer name SillyTavern. Attribution stays where it must:NOTICE,docs/REUSE.md, the per-fileDerived fromheaders and the compatibility pages are unchanged, and the data-format and API pages still describe the formats in the ecosystem's terms.
Fixed
- The desktop app opened a console window at startup. The bundled
catcup-nodeis a console-subsystem executable, and Windows allocates a console window for one started by a GUI process; it stayed on screen until Quit. The shell now passesCREATE_NO_WINDOWon Windows, so the child gets a hidden console and nothing is drawn. Its stderr used to be inherited from a console that did not exist, so server errors were lost: both streams now append toshell.login the data directory, rotated toshell.log.1at launch past 4 MB, which is where to look when the installed app will not start. - The Add button beside the model field closed the Providers panel. The panel is one form, and the row that adds a model id was a second
<form>nested inside it — invalid HTML, whose submit reached the panel's save handler and could run a native submission that reloaded the app. The row is adivnow, with atype="button"Add and an Enter handler; it adds the id and touches nothing else.docs/DESIGN.mdrecords the rule. - Sign out was offered when no password was set. An open desktop session has nothing to end, and the action led to a login screen that could only answer "Setup required". The library footer hides it there,
POST /api/auth/logoutanswers409 NO_PASSWORDfor that install so a stale tab cannot reach the dead end, and the client refetches the real status instead of writing a guessed one into its cache. - A portrait has to be a PNG, and the API says so (
IMAGE_PORTRAIT_FORMAT) rather than accepting a JPEG or WebP that cannot hold the card data.
CatCup Tavern 0.3.1
Early-access release. Moves your SillyTavern data in and handles single-character and group roleplay end to end. The Windows installer is unsigned, and what works and what does not says exactly where the line is.
Added
-
A book can be uploaded to be distilled into a world info book and character cards (RFC 0002).
.txt,.mdand.epubare read into chapters, and the result is stored in the profile that uploaded it so a run can be repeated with a better model. The text is decoded as strict UTF-8 first, then GB18030, so a Chinese novel saved as GBK reads correctly instead of arriving as mojibake. An EPUB is read in spine order; font obfuscation is not DRM and is accepted, while a spine document that is itself encrypted is refused by name. -
Distil from a book turns a book into lore. Sections only writes one world info entry per chapter straight from the text, with no model call, and finishes in a second. Model draft reads every chapter, merges what it found and writes each recurring character up as a card: one request per chunk, one per entity mentioned twice or more, and one batched request to settle near-identical names — a passing mention is summarised from the merge without a request, marked low confidence and left unticked. A chapter whose reply cannot be read is retried once and then reported as skipped, never failing the run.
-
Nothing reaches your library until you accept the review sheet, where every row can be ticked, edited in place and merged into another. Accepted output is an ordinary world info book and ordinary V2 cards, written to this profile or to the shared scope.
-
A distillation run is server-side and is deliberately not tied to the dialog: a long book keeps running when the tab closes, and Reattach to a running book picks it back up. Switching profiles is refused while a run is in flight, because a run resolves its scope when it starts.
-
data/profiles/<id>/books/holds the uploaded file and a record of its section titles and sizes — never the text, which is re-parsed from the source on demand.POST /api/distill/booksreturns the sections and an estimate of how many requests a run would cost, from the same tokenizer the prompt budget uses. -
A profile is a data scope. Characters, chats, groups, world info, presets, quick reply sets, regex rules, personas, generated images and every setting belong to one profile, so a novel campaign and a mystery campaign can each hold a character called
Mirawithout colliding. Only the provider list, its models, the API keys and auth are shared, because re-entering one endpoint and its key per campaign buys nothing. A profile pins its active provider and a preferred model. -
A
data/folder from an earlier version migrates intoprofiles/default/on first start, keeping the oldsettings.jsonassettings.json.v1-backupand writing one line per step tomigration.log. The move is a rename within one volume and rolls back if any step fails;CATCUP_MIGRATE_DRY_RUN=1prints the plan without touching anything. -
The library footer shows the active profile above the active provider. Choosing another profile switches the whole workspace — its cast, chats, lorebooks, presets and settings — and the selection is cleared because every id belonged to the old one.
-
Profiles can be switched from Settings → Profiles: create one empty or copy another profile's configuration, rename it, make it active, archive it and restore it. A switch is refused while a reply is streaming, because a generation resolves its provider and preset when it starts and must not write into another profile's chat.
-
A library item can be marked reusable in every profile. Characters, world info books, presets, quick reply sets, regex rules and personas each move into
data/shared/and every profile sees them; the folder stays empty until something is marked. The rule is one sentence: the profile's own copy wins, so a chat, a group membership or a card's lorebook link keeps resolving to the item the person can see, and the library labels the row that hides a shared one rather than listing it twice. -
A shared item keeps its id when it moves, which is why nothing has to be re-linked afterwards. Taking a shared item into a profile is a copy under a free name, so the profile can edit its own version without changing what the other campaigns see.
-
The character library gains a Scope filter — This profile / Shared / All, defaulting to All — beside the favorites and tag filters, remembered per profile. Hiding shared items is one click; seeing nothing after marking something reusable is never the default. Shared rows carry a Shared badge: a word plus an icon, not a colour alone.
-
Regex is one ordered list per scope. The profile's rules run first, then the shared ones, and a shared rule whose id a profile rule uses is dropped rather than run twice — a shared rule cannot silently jump ahead of a profile rule that depended on running first. Personas merge the same way, with
shared/personas.jsonholding the reusable ones and only a profile's own entries ever written to itssettings.json. -
A profile can pin a preferred model, which sits between a character's own choice and the provider default. A profile model the active provider does not serve is skipped rather than reported as a fallback.
-
One provider can serve several models. Settings → Providers keeps the endpoint's model list with one entry marked Default; Fetch models fills the list from the endpoint and every entry is removable or added by hand. A provider written before this change keeps working — its single
modelstring is read as a one-entry list and rewritten on the next save. -
A character can name the model it wants. The character editor's Model select offers the active provider's models plus Default; the choice is stored at
data.extensions.catcup_model, so it travels with the card and SillyTavern preserves it as an unknown field. A group chat uses the speaking member's own choice. -
The model a reply uses follows a visible order: the character's own model, then the provider default, then the first listed model. A character pinned to a model the provider does not serve still speaks, and the chat header marks the substitution with a warning icon naming both the requested and the used model.
-
The provider form loads the model list by itself. Paste a base URL and an API key and the endpoint is asked for its models after a short pause, filling the suggestions behind the Model field; Fetch models stays as the explicit retry. A background fetch never paints an error into the form, so an endpoint that is not running yet stays quiet until you press the button.
-
The chat header holds four things again. Identity, the chat select with its persona pin, the active provider's state and a single Tools menu; switch greeting, rename, memory, the context inspector, image generation, the gallery and delete chat moved into that menu. The character and group chat views share it, so both headers now behave the same, and the group header no longer wraps onto two rows. The provider pill appears at 1024 px and wider and links straight to Settings → Providers; below that the library footer carries the same state.
-
Deleting a chat or a message from a chat header or a message's action row now asks in the app's own confirmation dialog instead of the browser's
window.confirm, naming the object and what it removes. -
Group chats follow SillyTavern's generation handling mode. Swap keeps each reply on the speaking member's own card; the two join modes merge every member's description, personality, scenario and example messages into one prompt, excluding muted members or including them, with the group's join prefix and suffix —
<FIELDNAME>becomes the field name and{{char}}the member's name. The group editor picks the mode and edits the prefix and suffix, and a group configured in SillyTavern keeps its setting. -
A card's
extensions.depth_promptis injected in chat at the depth and role the card asks for. A single-character chat uses that character's own aside; a group in a join mode uses every unmuted member's, as SillyTavern does. -
Group auto mode: a checkbox above the message box asks for the next member's reply
auto_mode_delayseconds after each one finishes, so a group can keep talking on its own. Typing hands the turn back, an interrupted reply stops it, and it is off by default. -
Impersonation now primes an Anthropic assistant turn with your name, so a Claude-family model keeps writing as you instead of treating the trailing instruction as another line of lore. The prefix is removed again before the draft reaches the message box, and OpenAI-compatible endpoints behave as before.
-
Drag a character card onto the window to import it. A translucent drop target appears while files are held over the app;
.png,.json,.charxand.catcupfiles are imported through the same path as the library button, several at once if you like, and anything else is refused with a message instead of being opened by the browser. -
Impersonation: a write as me button in the composer asks the model to write the next message as your persona and streams it into the message box, where you edit it and send it yourself. Nothing is stored until you send, so the chat file only ever holds messages you wrote. The instruction comes from the active preset's
impersonation_prompt, or SillyTavern's default when it has none; the world info scan still runs, so timed effects advance as they do in SillyTavern. -
The desktop app honours
CATCUP_DATA_DIR, so it can be pointed at an existing data folder — the web build'sdata/, a backup, or a folder on another drive — instead of its own app-data directory. Nothing is copied: the app...
CatCup Tavern 0.3.0
Early-access release. Moves your SillyTavern data in and handles single-character roleplay end to end. The Windows installer is unsigned, and what works and what does not says exactly where the line is.
Added
- Group chat storage and REST endpoints: groups are stored in SillyTavern's
data/groups/<id>.jsonshape and their chats indata/group chats/<chatId>.jsonl, withmembersas avatar file names andoriginal_avataron every group message./api/groupscan create, edit and delete groups, their chats and their messages. - Group chats are usable end to end: a Groups tab with a group editor, a group chat pane with per-member avatars, and server-side replies. Natural, list, manual and pooled speaker selection; each reply uses the chosen member's card, with a group nudge,
Name:history prefixes, ST's group new-chat marker, reply trimming and a manual speaker picker. New chats seed one greeting per member, muted members included. - Summary memory: a rolling summary stored as
extra.memoryon the message it covers, as SillyTavern's Memory extension does. Automatic updates run after a reply when the message or word interval is reached; the Memory panel can summarize now, edit, restore or delete it; the injection template and position (after/before the main prompt, or in chat at a depth with a role) mirror the extension.{{summary}}and{{words}}expand in prompts, the context inspector has a Memory tab with the injected text and its token cost, and a new Settings → Memory tab edits the schedule and injection. Works in group chats too. New endpoints:POST …/summarize,PUT …/memoryandDELETE …/memoryfor both chat kinds. - Quick Replies (subset): SillyTavern version 2 quick reply sets are stored one file per set in
data/quickreplies/, with import, export, rename and delete. A bar above the message box shows the enabled sets in account order and runs a button; a Settings → Quick Replies tab edits sets, their buttons, colors and the bar order. Plain-text replies fill the message box (or the whole set can paste instead of run), and/send,/sys(/nar),/echo,/trigger,/continue,/regenerateand/runexecute as SillyTavern's do, chained with|./triggerand Quick Replies in group chats choose a speaker by name or index. A chat's ownchat_metadata.quickReplyset links are honoured. New endpoints:/api/quick-repliesandPOST …/quick-replies/executefor both chat kinds, plus atriggergeneration action. - Text to speech: browser speech synthesis or any OpenAI-compatible
/audio/speechendpoint, configured in Settings → TTS. A play button on each reply (and on narrator notes) speaks it with a per-character voice; autoplay follows new replies. The remote backend keeps its API key indata/secrets.jsonand the response only exposes whether one is set. Message text is cleaned of code blocks, tags, links and markdown before speaking, and audio is generated on demand rather than stored. New endpoint:POST /api/tts/speak. - Image generation: Automatic1111/Forge or any OpenAI-compatible
/images/generationsendpoint, configured in Settings → Images. A prompt can be typed or drafted from the recent chat by the active text model. Generated images are written todata/user/images/<character or group>/with a metadata sidecar, listed in a per-character and per-group gallery, and inserted into a chat as SillyTavernextra.mediamessages that the ST client can read back. The API key is write-only indata/secrets.json, and/api/settingsonly reportsimageHasKey. New endpoints:POST /api/images/draft,/generate,/attachand/test, plusGET /api/images,GET|DELETE /api/images/:folder/:file. - ComfyUI image generation: paste an API-format workflow in Settings → Images and its
%prompt%,%negative_prompt%,%seed%,%width%,%height%,%steps%,%scale%,%sampler%,%scheduler%and%model%placeholders are filled before the graph is posted to/prompt. The adapter polls/history/<id>, downloads the first image from/view, reports node tracebacks and validation details in errors, and posts/interruptwhen the browser disconnects or the job times out. Interface-format workflows are rejected with a hint to use Save (API Format); the default is SillyTavern's starter graph withCatCupas the filename prefix. - CharX import and export. A
.charxpackage (RisuAI's ZIP format) is imported from the character library: the card becomes a PNG card when it has a PNG icon, or a JSON card otherwise, and everyassets/**file is kept underdata/character-assets/<character>/. The character editor exports a V3card.jsonwith the PNG image as its icon and the stored assets, so a package round-trips; Risumodule.risumbundles and.charxembedded-JPEG files are not imported. ZIP entries are checked for path traversal and capped at 200 files, 25 MB per file and 60 MB in total. - Character library improvements: a star on every card toggles SillyTavern's
data.extensions.favflag (read from a legacy rootfavon flat cards), a favorites-only filter and favorite-first sorting, tag chips with multi-select AND filtering, sorting by name A–Z/Z–A, recently changed, newest created and favorites, and a selection mode for bulk favorite/unfavorite, add/remove tag and delete. Bulk tag edits leave existing tag spelling untouched and skip redundant writes. New endpoints:PATCH /api/characters/:id/favoriteandPOST /api/characters/bulk. A card's first write stamps a V2/V3creation_datewhen it has none, so the creation sort survives atomic file replacement; bulk delete keeps chat files on disk. - GitHub Actions builds the Windows installer when a merge into
maincarries an untagged version, or when av*tag is pushed, and attaches it to the matching GitHub release, using that version'sCHANGELOG.mdsection as the release body. Run the Release workflow manually with an existing tag to rebuild or republish an installer. mainanddevare protected on GitHub: both only change through a pull request whoseTypecheck, lint, test and buildcheck passes, and neither accepts a force push or deletion.mainadditionally requires the branch to be up to date before merging. Branches are named by prefix (feat/,fix/,docs/,ci/,chore/,release/,hotfix/) and deleted once merged.- Releases are cut automatically from
main. A merge intomainwhosepackage.jsonversion has no tag yet creates thev<version>tag on that commit and runs the installer build and release publish in one pass, so tagging by hand is no longer part of the flow. A merge whose version is already tagged is skipped. - Settings and provider management were redesigned around the new
docs/DESIGN.mdsystem. Settings now uses a grouped left navigation (Model, Prompt, Chat, Media, About) at every width, with a section select on narrow screens, so all eleven sections stay reachable. Providers is a master–detail panel: adding one starts from a type template, the list shows Active, Disabled and missing-key state, Fetch models and Test connection both run against the unsaved form, Advanced exposes custom request headers, and the provider actions are separated from the save bar. Unsaved provider and Generation edits are protected by a three-way guard (Save and continue, Discard changes, Keep editing) when switching provider, switching section or closing the dialog. Clearing a stored API key is staged and applied on save. New endpoint:POST /api/providers/test. - The modal shell now traps focus, focuses the dialog on open, restores focus to the trigger on close, and supports reduced motion. Stacked layers such as the image lightbox participate in the same focus stack. Buttons and inputs have visible
focus-visiblerings, and essential hints use solidmutedtext instead of low-contrast opacity.
Changed
- An active provider is always enabled. Disabling or deleting the active provider moves
activeProviderIdto the first other enabled provider, or tonullwhen none is enabled; enabling a provider while none is active makes it active. The UI cannot disable the active provider, andPATCH /api/settingsrejects a disabled provider with400 PROVIDER_DISABLED. - Test connection no longer saves the provider first; it tests the current form through the new draft endpoint. The old Load button became Fetch models, which also tests the connection. Saving is a separate, explicit action.
- A draft test reuses a stored key only when the form's provider kind and base URL match the saved provider; testing a different endpoint requires entering the key again. The endpoint accepts only http(s) URLs, times out model lookups after 15 seconds, and is rate-limited.
Fixed
- A failed settings load shows an error with a retry action instead of an endless spinner; a failed refresh keeps the open provider form and its unsaved edits. Switching providers no longer silently discards edits.
- Settings navigation moves focus from the tab that currently has it, every tab's
aria-controlsresolves to the single panel, scroll-only sections such as About are keyboard-scrollable, the temperature and top-p sliders have accessible names, and file imports use a visible button instead of an invisible focused input. - Draft connection results, model suggestions and late save responses are discarded when the form changes or another provider is selected, so they cannot appear against the wrong configuration.
CatCup Tavern 0.2.1
Early-access release. Moves your SillyTavern data in and handles single-character roleplay end to end. The Windows installer is unsigned, and what works and what does not says exactly where the line is.
Added
- Providers can be added, duplicated and deleted in Settings. A new one starts as a custom endpoint, and Load fills the model suggestions from the provider's own model list without saving first.
- The library footer switches the active provider from a list that shows each one's model, so changing servers no longer means opening settings.
- GitHub Actions CI runs
typecheck,lint,testandbuildon every pull request intodevormain, and on every push to either branch, replacing the manual post-merge checks. - Import lore in the character editor copies a card's embedded
character_bookinto the world info library and links it to the card throughextensions.world. The imported book is editable in the World Info tab, and repeating the action on a linked card reuses the existing book. - A chat's opening message can be switched to any of the card's greetings from the chat header. New chats keep every greeting as a swipe on the first message, as SillyTavern does, so swiping also changes the opening.
Fixed
- Macros in greetings, chat history and typed messages now expand to the character and persona names, both in the assembled prompt and in the chat view. Sent and edited messages are stored expanded, as SillyTavern does, while a greeting keeps its macros in the chat file and is expanded when it is used or displayed.