Server plugin + UI extension pair for SillyTavern that keeps supported streaming generations running on the server so a browser tab can reconnect later.
GitHub: https://github.com/ColorSource/SillyTavern-BackgroundGenerationQueue
- The browser page can disconnect while a supported generation is still running.
- The generation continues on the SillyTavern server instead of dying with the tab.
- When the page comes back, the extension can reconnect to the live stream and continue updating the message.
server-plugin/- the Node-side server pluginextension/- the UI extension that hooks SillyTavern's streaming fetchesscripts/install.mjs- copies both parts into a SillyTavern installscripts/uninstall.mjs- removes the installed plugin and extension
- Backends: Chat Completions, Text Completions, Kobold, NovelAI
- Flow: one-on-one normal streaming replies
- Group generations
- Swipe/regenerate/continue parity
- Quiet prompts
- Long-term persistence beyond in-memory job storage
- Clone or unpack this repository.
- Run:
node scripts/install.mjs --st "/path/to/SillyTavern"- Make sure
enableServerPlugins: trueis set in your SillyTavernconfig.yaml. - Restart SillyTavern.
- In SillyTavern, open Extensions and enable
Background Generation Queue.
You can now import this repository URL directly as a third-party extension because the repository root includes a valid manifest.json.
Repository URL:
https://github.com/ColorSource/SillyTavern-BackgroundGenerationQueue
Important: that importer only installs the UI extension part. You still need the server plugin for background generation to actually work. After importing the extension, either:
- run
node scripts/install.mjs --st "/path/to/SillyTavern", or - manually copy
server-plugin/toplugins/background-generation-queue/
node scripts/uninstall.mjs --st "/path/to/SillyTavern"- Copy
server-plugin/toplugins/background-generation-queue/inside SillyTavern - Copy
manifest.json,index.js, andextension/topublic/scripts/extensions/third-party/background-generation-queue/inside SillyTavern
/bgqueue status/bgqueue on/bgqueue off/bgqueue resume/bgqueue cancel
npm run check- This extension intentionally lives outside SillyTavern core, but it still depends on current internal streaming behavior and may need updates if upstream changes.
- Background jobs are kept in memory only and are cleaned up automatically.