Repository navigation
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 opens the folder as it is, with its characters, chats, world info and presets. A folder with anauth.jsonstill asks for that password. -
The desktop shell can be built for macOS and Linux.
tauri.macos.conf.jsonproduces.appand.dmg,tauri.linux.conf.jsonproduces.deband.AppImage, the Node sidecar now takes its target triple from the running Node instead of assuming Windows, and it ships ascatcup-nodeso a deb or rpm install cannot overwrite the distribution's nodejs. Only Windows is released: neither platform has been run, and an unsigned macOS build is refused by Gatekeeper. -
GitHub Actions compiles the desktop shell on every pull request. A
Desktop shelljob runscargo check --lockedagainst the Tauri crate on Windows, macOS and Linux, with the Rust build cached per platform, so a Rust compile error is caught on the pull request instead of during a release build. The job reports but is not yet a required check. -
The desktop app can update itself. Check for Updates… in the tray menu asks the release feed for a newer version, verifies its signature against the key pinned in the app, stops the server, installs the new build and restarts. Progress and failures appear in a native dialog, since a release build has no console. Releases built without the signing key still publish a plain installer — they just cannot be offered as an update.
-
The Windows installer registers
.catcupas a CatCup file type. Double-clicking one — or Open with — starts the app and imports a copy of the card, then reloads the library to show it. The path is taken literally rather than parsed as a URL, so a drive-letter path works; a file opened while CatCup is already running is handed to the running window, including one hidden in the tray. Only.catcupis registered:.pngand.jsonwould become the default handler for every image and every JSON file, and.charxbelongs to RisuAI. -
The desktop app has a tray icon, and closing its window now hides it there instead of quitting. The server keeps running while the window is hidden, so a reply that is still streaming finishes; Quit on the tray menu is what exits, and only one copy of the app runs at a time — a second launch reopens the hidden window. Left-clicking the icon opens the window.
-
The desktop app remembers its window size, position, maximised and full-screen state between launches, and ignores a saved position that no longer lands on a connected monitor. Visibility is not restored, so the window never starts hidden.
-
.catcupis CatCup's own character card package: the same ZIP container CharX uses — a V3card.jsonplusassets/**— under CatCup's extension. A.catcuprenamed to.charxopens in RisuAI and the reverse, and one parser serves both. The library import button and the character editor accept and produce it, the editor gains a CatCup export button, and?format=catcupis a new value on the export endpoint. -
A desktop-only
POST /api/characters/import-pathendpoint imports one card from a path on the machine, accepting the same.png,.json,.charxand.catcupfiles as the upload route. A web or LAN server does not register it and answers404. It exists so the shell can open a card the user picked in Explorer, and the per-file import logic is now shared with the multipart route so both store package assets the same way. -
A web or LAN install can change its access password from Settings → About, which previously meant deleting
data/auth.jsonand signing every device out. The current password is required, the new one must be at least 8 characters, and every other device is signed out on success. Removing the password stays desktop-only — with none, a LAN server would be reachable with no authentication at all. -
The release notes the workflow writes now describe group roleplay alongside single-character roleplay, matching what 0.3.0 actually ships.
-
The desktop app opens without an access password. The shell passes
CATCUP_DESKTOP=1, a fresh install goes straight to the library instead of a setup screen, and About → Access password can set one (the sign-in screen returns) or remove it later. Web and LAN installs keep the password model unchanged. The server refuses to start in this mode when bound to a non-loopback host, so the open API cannot reach the LAN. New endpoint:PUT /api/auth/password;/api/auth/statusgainsopenSession. -
App icon and brand: a hand-drawn cat lounging in a teacup — cream
#fdf4e2artwork on a coffee#3a241cdisc over a cream rounded tile. The app icon, Tauri icon set, favicon (SVG + ICO) and Apple touch icon all derive from the single SVG master inassets/brand/; the sidebar, login and empty-state logo now show the mark. The README gained a matching banner in dark and light variants (assets/brand/readme-banner-{d,w}.svg) wired withprefers-color-scheme. -
Documentation now leads with diagrams: Mermaid charts for the runtime topology, generation sequence, prompt pipeline, auth flow, data relationships, deployment topologies, the desktop sidecar lifecycle and a troubleshooting triage tree across
docs/(README index, ARCHITECTURE, API, DATA-FORMATS, SECURITY, DEPLOYMENT, DESKTOP, TROUBLESHOOTING, MILESTONES). -
Brand extras: a 1280×640 social preview image (tavern scene with the lockup,
assets/brand/og-image.png) for GitHub sharing, and GPT-Image empty-state illustrations in the library and chat panes — transparent dark variants ship inapps/web/public/illustrations/and the light variants are archived underassets/brand/export/illustrations/. Every icon size, including the ICO slots, keeps deriving directly from the designer's single SVG master.
Fixed
- In a group using one of SillyTavern's join card modes, the merged example messages keep every member's speaker lines. A
Name:line for another member now opens its own turn and each turn keeps its speaker prefix, matching ST'sparseExampleIntoIndividual; before this, the other members' examples were read as narration attached to the persona's turn. - The Tavern wordmark in the README and About banners no longer hangs below the lockup's baseline: the T descender and the round letter bottoms crossed it, so the word moved up 33 units and the banner now has a single flat bottom edge. The light, dark and in-app copies carry the same correction.
- The packaged desktop app can save settings again. The single-file server bundle defined
requirefor its CommonJS dependencies but not__filename, sowrite-file-atomicthrewReferenceError: __filename is not definedon the first write andGET /api/settingsanswered500. The bundle banner now derives__filenameand__dirnamefromimport.meta.urlalongside therequireshim. - A documentation accuracy pass: the handbook's status claims now match the code (M2 complete in 0.3.0, M4 in progress), the API error table lists
SUMMARY_FAILED,PROVIDER_DISABLED,PROVIDER_KEY_REUSEandINVALID_BASE_URL, two SSE endpoints rather than one are documented, the design breakpoints match the implementation, and the troubleshooting page no longer points at server logs that stay quiet on handled errors. - The
Desktop shellCI job passes on macOS and Linux. The committed Tauri icon set was palette PNGs, which Tauri's code generator rejects withicon … is not RGBA, so the job had failed on both platforms since the icons were added — Windows never noticed. The icons are regenerated as RGBA PNGs, andpnpm iconsnow produces them that way.