Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Announcements: a card for each release, saying what it brought (#6892)
Milind Soni09c22a0e892d
diff --git a/announcements/releases.json b/announcements/releases.jsonnew file mode 100644index 0000000000..91990486b3--- /dev/null+++ b/announcements/releases.json@@ -0,0 +1,1125 @@+{+ "$schema": "./releases.schema.json",+ "version": 1,+ "updatedAt": "2026-11-21T09:49:53Z",+ "releases": [+ {+ "version": "0.1.175",+ "date": "2026-11-21T05:17:00Z",+ "sections": [+ {+ "title": "A calmer look",+ "items": [+ "**A new conversation starts when you send.** New conversation, a bot's `+` and Cmd/Ctrl+Shift+N open a blank chat, and nothing is saved until you send the first message. Leave it without sending and nothing is left behind.",+ "**Advanced mode's composer is calmer.** The message field gets its own line, with one quiet row beneath it: `+`, the model, and the voice or send button. Attach, Teach a task, Work until done, approvals, where the bot works and call mode all sit in the `+` menu.",+ "**Quieter sidebar rows in Simple mode.** A row's AI mark shows when you hover over it, and the sidebar stays open beside a bot's panel on windows 1040 px and wider.",+ "**Chat finish.** The composer gets a soft lift, bot bubbles get a light sheen and small tails, and buttons and bot rows respond when pressed.",+ "**Mascots hold still at rest,** with eased blinks and hover gaze.",+ "**Type, sizing and icons** use one weight and one icon stroke throughout.",+ "**Files open beside the chat** on wide windows instead of covering it.",+ "**The team map** opens straight into its settled layout."+ ]+ },+ {+ "title": "Bots and AIs",+ "items": [+ "**Pi bots no longer read your own `~/.pi` instructions, extensions or skills.** They share only your login and model settings.",+ "**Codex bots no longer load your own `AGENTS.md`.**",+ "**Room members at a usage limit** carry on with their own backup AI. A bot with no backup chosen stops at the limit and says so.",+ "**ElevenLabs Live calls** speak in each bot's own ElevenLabs voice.",+ "**Hear me with ElevenLabs:** dictation through ElevenLabs Scribe, when you've saved your own ElevenLabs key.",+ "**Grok bots can be steered mid-turn.**",+ "**Cline:** free and ClinePass models show in the model picker, and a ClinePass limit becomes a usage limit with its reset time.",+ "**Antigravity:** Gemini 5-hour and weekly limits show in the model menu.",+ "**Custom ACP engines** list their own models in both model pickers.",+ "**Pi keeps its session across turns,** so prompt caching works.",+ "**OpenAI-compatible providers** are retried according to the HTTP status they return.",+ "**Codex turns keep going** while you have ChatGPT credits left.",+ "**Nine more OpenAI Live voices.**"+ ]+ },+ {+ "title": "Bot API",+ "items": [+ "**Retrying a message sent through the Bot API** runs it again as an API turn, and the API reports the new reply."+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "A conversation a bot opens while a permission change is still being confirmed no longer gets stuck at Ask.",+ "Many smaller fixes from contributors, among them: Japanese, Chinese and Korean input underlines; right-to-left replies that start with a Latin name; email address groups; file names with `#` or `%`; memory notes with Windows line endings; CLI export, `--thread` and `--channel`; a refused 2FA key that was pasted incomplete; MCP sign-in with a client secret; widgets; routines stopped by their own limit; KDE Plasma 6 colour errors; VPS settings when the old server can't be reached.",+ "Faster settings saves, Apps lists and app start-up."+ ]+ }+ ]+ },+ {+ "version": "0.1.173",+ "date": "2026-11-19T23:52:37Z",+ "sections": [+ {+ "title": "Long chats",+ "items": [+ "**Long threads keep going:** Claude and Codex bots now compact their own sessions, and the summary is written before the limit is reached instead of at it.",+ "**A text selection survives scrolling away** in a long chat, and scrolling through history is smoother."+ ]+ },+ {+ "title": "Rooms",+ "items": [+ "**Saved messages hold still** while members of a room are replying."+ ]+ },+ {+ "title": "Speed",+ "items": [+ "**The app starts a little sooner:** saved keys and the system proxy are read while the splash is showing, and the server starts listening earlier.",+ "**Hide and Unhide for a provider answer at once.**"+ ]+ },+ {+ "title": "MausBot Cloud",+ "items": [+ "**Clearer Cloud sign-in:** when a saved sign-in on this computer can't be used, the app says so and offers to clear it and sign in again, instead of showing \"couldn't reach\". A browser sign-in that is still open can be cancelled from the same sheet to use the email code.",+ "**When this computer can't connect to your Cloud's address,** the app names the address and suggests checking a VPN, firewall or DNS filter. It also waits between tries instead of asking again at once."+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "Windows installers build reliably again on the newest build machines. Nothing changes in the app itself."+ ]+ }+ ]+ },+ {+ "version": "0.1.171",+ "date": "2026-11-19T15:13:09Z",+ "sections": [+ {+ "title": "Bots",+ "items": [+ "**Bots check back later:** a bot can set itself a reminder to look at something again, instead of waiting in the chat.",+ "**Hand-offs show who is working on what,** so you can see the status of work passed between bots.",+ "**A bot working on a cloud computer keeps its engine between turns,** so its next reply starts sooner."+ ]+ },+ {+ "title": "Spending",+ "items": [+ "**Usage charts in Spending,** shown in Simple mode too."+ ]+ },+ {+ "title": "Sharing",+ "items": [+ "**Share and import polish:** the product name, plain taglines, folder pictures, and Share in Advanced mode."+ ]+ },+ {+ "title": "Speed",+ "items": [+ "**Faster replies:** Codex turns stay warm, Claude starts ahead of your message, and threads and new bots load lighter.",+ "**Smoother chat while a reply streams:** saved rows hold still, rooms draw one bubble per update, and long lists and tables no longer slow down as they grow.",+ "**Switching bots shows the newest messages first.**",+ "**Long chats stay light** however far you scroll back."+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "The CLI login card shows above Settings and other dialogs.",+ "Portuguese (Brazil): the usage charts are translated."+ ]+ }+ ]+ },+ {+ "version": "0.1.170",+ "date": "2026-11-19T07:51:51Z",+ "sections": [+ {+ "title": "Getting started",+ "items": [+ "**Claude, ChatGPT and OpenCode are all first choices** when you set up MausBot, on desktop and in the Cloud welcome. OpenCode installs in one click and has free models that need no account.",+ "**The Teams popup links to Team plans,** and everyone sees it once more."+ ]+ },+ {+ "title": "OpenCode",+ "items": [+ "**OpenCode 2.3.2.** A message sent while an OpenCode bot is working now joins its running turn, instead of waiting for it to finish.",+ "**Stop ends everything.** Stopping an OpenCode bot also ends the work it had moved to the background, so nothing keeps running unseen.",+ "**OpenCode no longer reads your own Claude instructions** (`CLAUDE.md`).",+ "**Devin bots can be steered mid-turn too,** when Devin supports it."+ ]+ },+ {+ "title": "Inbox",+ "items": [+ "**Pinned conversations sit on top,** with a Finished list of what you've recently read.",+ "**Unread dots,** a mark on the conversation you have open, and a card showing your last message above the unread ones.",+ "**Read finished work moves into a \"✓ Done\" line** at the foot of the panel.",+ "**Clicking a finished notice opens its conversation** at the right message."+ ]+ },+ {+ "title": "AI providers and images",+ "items": [+ "**Google AI Studio:** add a Gemini API key under More providers.",+ "**Higgsfield images,** through its own sign-in.",+ "**Reasoning levels for OpenAI-compatible models,** in the usual model picker.",+ "**Cached input is counted** for OpenAI-compatible models, so costs and usage limits are no longer overstated.",+ "**ChatGPT plan sessions recover** once when the plan refuses saved audio."+ ]+ },+ {+ "title": "Bots and teams",+ "items": [+ "**Bots can hand longer briefs to teammates** (up to 12,000 characters), and can name a teammate by id or the start of its id.",+ "**Advanced mode:** a Chat activity control in the chat header.",+ "**Live calls keep the bot's spoken lines** in the call record, and the bot's call voice shows in its voice settings.",+ "**Connected apps:** when an app refuses a call for one account, the bot is told which other accounts of that app are connected. App names starting with an underscore (like 1Password's) work.",+ "**Doctor checks and safely repairs** a server's data.",+ "**Each bot's footprint is visible,** and idle engines close sooner when the computer is under pressure.",+ "**Always-on home,** and Podman install as a service for self-hosting.",+ "**Cloud computers:** they wake patiently, and a computer that stops answering is set aside with its files instead of deleted.",+ "**Scheduled runs try again:** a routine whose cloud desktop did not wake retries by itself a few minutes later, up to three times, instead of waiting for the next scheduled run."+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "Read aloud keeps `API_KEY` and file names intact, and stops downloading when you press stop, for every voice provider.",+ "Sign-in codes in Chinese emails are read.",+ "A sent email's Sent copy keeps its Bcc; pressing Stop before sending now stops the send.",+ "Desktop videos you send show in the chat instead of \"Unavailable\".",+ "Older messages load faster in long chats.",+ "Data imports handle files with their own `filename` column, and folders like `[Exports]`.",+ "The calendar ignores the Enter an input method uses to confirm text.",+ "Settings cards no longer run under the close button on narrow windows.",+ "Usage bars stay grey while plenty is left.",+ "Many smaller fixes from contributors."+ ]+ }+ ]+ },+ {+ "version": "0.1.169",+ "date": "2026-11-17T20:13:30Z",+ "sections": [+ {+ "title": "More in this release",+ "items": [+ "**A usage ring for every connected AI** in the model menu.",+ "**DeepSeek voice:** replies read aloud in Stella or Tide, and dictation, on your existing DeepSeek key.",+ "**GPT-Image-2.6 image models,** with a Detail level and markup edits.",+ "**A Chief can propose a bot's MCP servers** during team setup; you confirm them on a card.",+ "**A bundled openmausbot-docs skill** answers questions about configuring the app.",+ "**Rooms:** a steer folds only into the bot it is meant for.",+ "**Faster sends and recent-work lookups** on servers with many threads.",+ "**Sidebar:** the open conversation goes back to a plain grey fill.",+ "Fixes: a partial MCP environment update no longer clears saved keys; MCP sign-in says why a server refused; your own unseen messages are never deferred; Kimi confirms its model before prompting; phone typing waits for the keyboard; no Local VM tools offered on a server that cannot give one; npm-backed MCP commands get a writable cache."+ ]+ }+ ]+ },+ {+ "version": "0.1.167",+ "date": "2026-11-17T17:39:06Z",+ "sections": [+ {+ "title": "Teams",+ "items": [+ "**Team files:** one shared folder for the team and its bots.",+ "**Team templates:** a team library, templates from private GitHub repositories, and scripts that travel with their skills.",+ "**Bitwarden in the Vault:** logins and secrets through Bitwarden, alongside 1Password.",+ "**What's new for everyone,** and an Announcements page with a dot when there is something unread."+ ]+ },+ {+ "title": "Bots and skills",+ "items": [+ "**Bots can import a skill from GitHub or skills.sh.**",+ "**Up to 10 connected accounts per app** (was 5).",+ "**Rooms say where a queued teammate is busy** and that it starts when that work finishes.",+ "**A bot reads its own hand-offs from any of its own chats.**",+ "**Pause and Resume every bot** in the Advanced-mode bot menu.",+ "**One set of names for approval levels** in Simple and Advanced mode."+ ]+ },+ {+ "title": "Chat",+ "items": [+ "**Right-click menu for media,** and large chat videos and audio now stream instead of loading whole.",+ "**A new chat is suggested** under the latest context compaction.",+ "**The computer panel grows as wide as the window allows,** and the bot's screen or info panel is remembered across restarts.",+ "**Usage bars are green, orange and red** by how much is left."+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "Windows: opening a bot's Local VM or VPS computer no longer pops up a terminal window.",+ "A theme's Light or dark choice picks the right mode for themes that have both.",+ "The Color picker stays when a bot's avatar is a photo; settings row titles stay readable on narrow phones.",+ "Built-in ChatGPT account rows can be hidden.",+ "Clearer messages when Node.js is too old for DeepSeek Harness, when a saved VPS is not chosen for a bot, and for models an engine has but won't run.",+ "Devin catalogs with more than 128 models are listed in full.",+ "A tool call with unreadable arguments no longer breaks the next turn on chat-engine bots.",+ "Thirteen small reliability fixes in charts, memory, MCP sign-in and tool lists, webhooks, research and settings backups."+ ]+ }+ ]+ },+ {+ "version": "0.1.166",+ "date": "2026-11-17T10:21:08Z",+ "sections": [+ {+ "title": "Publish sites and apps",+ "items": [+ "**Sites a bot publishes to your Netlify account are public by default.** Anyone with the link can open them, even when your Netlify team protects new sites. Ask for a private site and the bot keeps it private, and remembers that choice.",+ "**A live preview in the chat.** When a bot publishes one of your sites or pages, its reply shows a small live preview with Open and Open in browser."+ ]+ },+ {+ "title": "Fewer tokens, same rules",+ "items": [+ "**Each request carries less fixed text:** a new bot's built-in instructions are about 18% smaller and a Chief's about 15%, with every rule kept. Some tools are now loaded only when needed, and text that rarely changes is cached instead of re-sent."+ ]+ },+ {+ "title": "Settings you can find",+ "items": [+ "**Every \"Settings → …\" the app and its bots mention is a real place**, in every language that has it."+ ]+ },+ {+ "title": "Chat and sidebar",+ "items": [+ "**The chat header and sidebar are easier to read:** the open conversation reads as selected, a red dot marks a bot whose last turn failed, a bot's other threads are one tap away in Simple mode, and department lines get a clearer mark.",+ "**A context button** in the message box shows what fills the window, with Compact and Start fresh.",+ "**Pinned messages move into a header menu; pages end at the message box and open from a clean card.**",+ "**Read this aloud** appears in a message's hover bar once a voice is set up.",+ "**Chats get titles automatically.**"+ ]+ },+ {+ "title": "Bots and rooms",+ "items": [+ "**Room jobs run side by side by default**, and you can choose how many turns each member takes, with the last one marked final.",+ "**A bot can be limited to chosen accounts of a connected app**, and app shortcuts name the allowed account.",+ "**Save a working bot's MCP servers and tool selection**, and change the site of a saved login.",+ "**At a usage limit, a bot switches only to a backup you chose**; otherwise it waits for the reset.",+ "**The first reply starts without waiting for slow MCP servers**, and chat-engine turns no longer stop at 64 steps.",+ "**Call stays available while a bot is working.**",+ "**On a self-hosted server, each person can choose the name they go by.**"+ ]+ },+ {+ "title": "Under the hood",+ "items": [+ "**Saving bots and chats goes through one store layer**, the first step towards keeping chats as database rows.",+ "Fixes from today's merges."+ ]+ }+ ]+ },+ {+ "version": "0.1.165",+ "date": "2026-11-16T19:04:47Z",+ "sections": [+ {+ "title": "Bots work on your computer, simply",+ "items": [+ "**New bots on the Mac and Windows app work on This computer by default.** The choices now say plainly what they mean: This computer uses your files and apps; a Private desktop can't see your files; Browser is websites only.",+ "**A bot offers the switch itself.** When a task needs your own files and the bot isn't on This computer, it says so in one line and switches with one tap, then carries on. No more hunting for settings that don't exist.",+ "**Bots on API models (OpenRouter, Groq, local models…) can read and save files on This computer**, not only drive the screen. Your approval level decides what is asked.",+ "**Windows: the computer tools start reliably.** They no longer drop out of a turn when they take a few seconds to start."+ ]+ },+ {+ "title": "Chat runs the app for you",+ "items": [+ "**Bots name only real places in Settings**, and can look them up.",+ "**Sign in to Claude, ChatGPT or Antigravity from the chat**, with a card you complete yourself.",+ "**A failed reply offers Switch model** when your AI is out of credit, at a limit or overloaded, and the bot mentions the fix once when it keeps happening."+ ]+ },+ {+ "title": "Spending stays under control",+ "items": [+ "**Optional day and month caps** for the whole server and for each bot, on every edition.",+ "**Automations that keep failing slow down** instead of retrying in a loop, and the Chief is woken at most a few times an hour about problems.",+ "**Unattended work has limits**: hand-offs and runs nobody started can't renew their budget on failure or run without end.",+ "**Always allow sticks.** Five causes of being asked again are fixed.",+ "**Pause every bot** from one menu item."+ ]+ },+ {+ "title": "Many bots on one server",+ "items": [+ "**Faster with many bots**: saves are coalesced and much less is sent to the app per turn; a finished turn reads only its own work.",+ "**Servers wait for room** instead of failing with \"EAGAIN\" when they're close to their process limit, and say so plainly.",+ "**Browsers are capped** to what the server can run, and idle ones close only when room is needed.",+ "**No leftover processes** after a stop or a crash; adding a bot no longer restarts the others.",+ "**Crash handling**: a crash restarts cleanly and interrupted turns run again.",+ "**Docker and Cloud images bring their own init**, so finished processes are reaped."+ ]+ },+ {+ "title": "Your places together",+ "items": [+ "**Bots on your computer and on My Cloud can work together**: hand work across, see each other's bots, and share rooms with members from both."+ ]+ },+ {+ "title": "Connected apps",+ "items": [+ "**Google Drive and other apps can take a file from your computer**: uploads now work, and the approval card lists each file."+ ]+ },+ {+ "title": "Settings and fixes",+ "items": [+ "**Change an OpenAI-compatible provider's Base URL** in place (your key is asked again only when the server changes).",+ "**This Mac opens after a restart** even when the Mac's network name changed.",+ "**Automations**: an occurrence ledger with catch-up and a watchdog for lost turns; a one-time schedule can continue its conversation.",+ "**Live calls**: each bot can have its own voice; a custom OpenAI-compatible endpoint can be a provider.",+ "**Mac**: the system HTTPS proxy is used when none is set.",+ "Many smaller fixes from contributors: Data imports and charts, Markdown tables, MCP sign-in, OpenRouter prompt caching, Mistral computer use, MiniMax M3.1 Flash, and more."+ ]+ }+ ]+ },+ {+ "version": "0.1.161",+ "date": "2026-11-15T21:43:29Z",+ "sections": [+ {+ "title": "Automations",+ "items": [+ "**An automation is never switched off by failures.** After repeated failures it tries less often (hourly, then every four hours) and keeps going, instead of turning itself off. Automations that an earlier version switched off this way are turned back on once.",+ "**Every run that was skipped or held up leaves a row** in the automation's history, with the reason.",+ "**A stuck run no longer blocks the next ones.** A scheduled run waits at most an hour for a busy bot, and a run has a default limit of 3 hours (12 hours for a room goal). You can set a limit per automation.",+ "**Scheduled runs wait for their cloud computer** to be ready instead of failing at the start."+ ]+ },+ {+ "title": "Cloud computers",+ "items": [+ "**Long commands finish.** A command that needs more than about 30 seconds now runs in the background and is followed to its end, instead of being cut off.",+ "**\"Ready\" means the computer answered,** so a bot no longer starts work on a computer that is still waking."+ ]+ },+ {+ "title": "Bots working together",+ "items": [+ "**Bots can pass files to each other.** A bot can attach files when it hands work to a teammate, and gets the teammate's files back with the result.",+ "**In Auto rooms, a reply to a quoted message goes to the bot you quoted.**"+ ]+ },+ {+ "title": "Phones",+ "items": [+ "**Pairing a phone again replaces its old entry** instead of adding another one, so a computer no longer fills up with old copies of the same phone and refuses new pairings."+ ]+ },+ {+ "title": "AI engines",+ "items": [+ "**Antigravity signs in with Google again.** Its card showed \"Sign in to Mistral\" and could not finish.",+ "**Devin is recognised as signed in** after you sign in from the terminal on Mac and Linux.",+ "**Bring back a provider you hid,** and **sign a CLI out without hiding it,** in Settings → AI.",+ "**Cursor shows its real logo.**",+ "**A local server you added can be removed in Settings,** and the same one is no longer added twice.",+ "**Codex:** no pinned installer is offered when you already have a newer release."+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "**Threads:** a turn whose engine process exited is freed instead of staying busy; a chat that opens with pasted text is titled by the paste.",+ "**Rooms:** one room mark in the sidebar instead of members' faces; people's names are set in the same type as bot names.",+ "**Email:** replies keep their thread; a brief DNS failure is retried; a sign-in check ends cleanly when the mail server disconnects.",+ "**MCP:** two connections to one server can sign in at the same time; a refusal names the method and the server's error code; steadier event streams.",+ "**Windows:** the memory folder opens in a visible File Explorer window.",+ "**Browser tab:** says when Chrome's sandbox can't start inside a container.",+ "**Settings:** \"Pair a computer\" under Your other computers.",+ "**Long chats:** an earlier summary is kept word for word when the chat is shortened again.",+ "**Faster:** room views and periodic background scans do less work."+ ]+ }+ ]+ },+ {+ "version": "0.1.160",+ "date": "2026-11-15T11:17:28Z",+ "sections": [+ {+ "title": "Phones",+ "items": [+ "**Pairing no longer gets stuck on \"Secure access needs attention\".** If your computer had saved a secure address that is no longer in use, pairing waited 30 seconds and gave up. It now pairs through the encrypted relay straight away and repairs the address in the background.",+ "**A computer that lost its sign-in details for remote access gets them back automatically.**",+ "**A step-by-step connection check.** When pairing fails, and in Settings → Phone & devices, you see which step is the problem (this computer, your MausBot account, the relay, your phone's way in) and what to do. **Copy diagnostics** gives you a summary to send us, with nothing private in it.",+ "**Steadier connection to the relay:** it reconnects when your network changes and after sleep, and notices a connection that has gone quiet."+ ]+ },+ {+ "title": "Pause a bot",+ "items": [+ "**Pause a bot or a whole department** until you resume it. A paused bot's running work stops, its room is told, and its automations skip quietly."+ ]+ },+ {+ "title": "Make the app yours",+ "items": [+ "**Bots can restyle the whole app with your own themes:** colours, backgrounds, fonts and motion.",+ "**Bots can set a bot's picture, or your photo, from a picture file.**"+ ]+ },+ {+ "title": "Files",+ "items": [+ "**Paste a copied archive straight into the chat** from Finder or Explorer.",+ "**Bots can send archives** (.zip,.tar.gz,.7z and more) to the chat as downloads.",+ "**Any file type can be attached** as a plain download."+ ]+ },+ {+ "title": "Bots and engines",+ "items": [+ "**Devin and Mistral Vibe are built-in engines.**",+ "**Turn off a bot's Meetings, Data, Pages, Images or Email tools** to make its requests smaller.",+ "**Ask a bot to undo a look change,** or to go back to an earlier theme.",+ "**Gemini on OpenRouter** can be chosen as the decision model.",+ "**A bot can name the thread it's working in.**",+ "**A Chief can set an idle teammate's browser profile.**",+ "**The built-in browser stays beside the cloud computer,** so one task can use both.",+ "**A bot-to-bot message that hits a limit before it starts is sent once to the backup AI.**",+ "**Mistral's ACP agent:** its reasoning levels are recognised.",+ "**Claude turns start lighter:** most bot tools are loaded only when a turn needs them, so each turn uses fewer tokens.",+ "**Handing a chat to another AI is smoother:** the engine stays warm across handoffs, and a chat that reaches its length cap carries its context over.",+ "**Antigravity** picks up your skills."+ ]+ },+ {+ "title": "Automations",+ "items": [+ "**A chat goes under To review only when a run needs you.**",+ "**A long reply's closing question is kept** in the run's output, so the run still asks for review.",+ "**\"Run when my limit resets\" no longer skips a run** when usage is checked just after the reset.",+ "**A quiet computer checks usage limits far less often,** which saves battery and CPU."+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "**Desktop:** the app starts even when the Documents folder can't be found.",+ "**Voice:** dictation works with a microphone on a multichannel audio interface.",+ "**Rooms:** long sender names stay aligned, and other people's lines are named on shared self-hosted servers.",+ "**Sign-in filling:** finds sign-in fields inside embedded page components.",+ "**MCP:** an output limit set by a bot or in the turn's own folder is kept.",+ "**A 👍 reaction means \"go ahead\" only after a question or an offer.**",+ "**My Cloud:** no Codex update card where there is nothing to update.",+ "**Chat:** a link to a delivered file opens the right copy.",+ "**Self-hosted servers:** a TLS terminator can run on another host.",+ "**Connecting to a server by typing its address** works as typed.",+ "**Engines:** a brief provider error at start-up no longer fails the turn; OpenAI-compatible models that send empty tool arguments are handled; Cursor no longer repeats a model in its list; the engine model list refreshes when it goes stale.",+ "**Shared computer:** a live session shows correctly for everyone using it.",+ "**Previews:** emphasis marks inside a word are left alone.",+ "**Simplified Chinese and Portuguese** are filled in further."+ ]+ }+ ]+ },+ {+ "version": "0.1.158",+ "date": "2026-11-14T09:05:27Z",+ "sections": [+ {+ "title": "Bots can change app settings for you",+ "items": [+ "**Ask a bot to change a setting and it does it,** with an **Undo** in the chat.",+ "**You can make MausBot a regular bot** if you don't want it as your helper."+ ]+ },+ {+ "title": "Rooms and teams",+ "items": [+ "**Point at a member's page** from inside a room.",+ "**Set up many bots at once:** a Chief can edit up to 40 bots in one go and add a rule to each.",+ "**A Chief in charge of every department gets new departments automatically.**",+ "**Fork a conversation from any message** to try a different direction without losing the original."+ ]+ },+ {+ "title": "Voice",+ "items": [+ "**Listen with your ElevenLabs key,** and speak Thai through Eleven v3."+ ]+ },+ {+ "title": "Phone",+ "items": [+ "**A pairing link says when it only works on the same Wi-Fi.**",+ "**Phones without admin rights can read a bot's Data.**",+ "**Phone tools can run several known steps in one call.**"+ ]+ },+ {+ "title": "Browser and engines",+ "items": [+ "**The built-in browser can use a SOCKS5 proxy and a chosen locale.**",+ "**Project skills are always on.**",+ "**A custom ACP engine can opt in to steering** a turn while it runs.",+ "**DeepSeek Harness starts from the desktop app on Windows.**"+ ]+ },+ {+ "title": "Apps",+ "items": [+ "**BubblaV** has a card in Plugins.",+ "**A remote MCP server's protocol errors are named,** instead of \"Remote MCP request failed\"."+ ]+ },+ {+ "title": "Automations",+ "items": [+ "**Open an automation from anywhere on its row.**",+ "**A routine's report collects the files from the turn that sent them.**",+ "**A one-time schedule's time zone is read from its offset.**"+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "**Settings pages no longer show a white block behind their header.**",+ "**Windows tray:** Quit works from the lending icon.",+ "**New chat:** Enter or Escape that picks an IME candidate no longer starts or closes a chat.",+ "**The shared Local VM:** a turn waiting behind someone's hold stays waiting until the hand-over.",+ "**An OpenCode Go limit is scoped to current prices,** so free models aren't held back.",+ "**Simplified and Traditional Chinese** are filled in further.",+ "**When asked for a claude.ai Artifact, a bot says it isn't available** and offers its own page."+ ]+ }+ ]+ },+ {+ "version": "0.1.155",+ "date": "2026-11-13T11:33:22Z",+ "sections": [+ {+ "title": "Usage bars are back",+ "items": [+ "**The usage bars next to the model name show your Claude plan again,** in Simple and Advanced, with the 5-hour and weekly figures at the top of the model menu. Codex, Grok and OpenCode Go keep theirs."+ ]+ },+ {+ "title": "Cloud computers",+ "items": [+ "**A cloud computer that stops answering is no longer shown as ready.** MausBot restarts it once when that is safe, tells you and the bot plainly, and the computer panel has **Restart computer** and **Replace computer**.",+ "**A cloud computer that fails to start can be reset** from the same panel.",+ "**A lent computer's menu names the bot using it.**"+ ]+ },+ {+ "title": "Rooms and chats",+ "items": [+ "**Drag rooms into the order you want** in the sidebar.",+ "**Room messages show who is speaking to whom,** with the sender's name in the bot's colour.",+ "**Long bot-to-bot requests fold to one line,** with a side view of the whole exchange.",+ "**A bot can post one message into an existing thread.**",+ "**Attach archives** (.zip,.tar.gz,.7z and others) as plain files.",+ "**A typed reply closes a bot's earlier questions,** so the \"Waiting\" badge clears.",+ "**Restart turn and Stop and send say they also stop work handed to other bots.**"+ ]+ },+ {+ "title": "Settings",+ "items": [+ "**Import & export** has its own page, in Simple and Advanced.",+ "**Pairing and settings hints point at the pages that exist now** (AI › Other services, Routing and extraction)."+ ]+ },+ {+ "title": "Team Cloud",+ "items": [+ "**No flash of a team bot's shared chat on start-up,** and the phone's bot list stays open at start.",+ "**The Chief says which department a refusal is about** and which setting unlocks it."+ ]+ },+ {+ "title": "Automations",+ "items": [+ "**Webhook triggers can filter on a field in the payload.**",+ "**Webhook and app-event automations can keep one conversation** instead of starting a new one each time."+ ]+ },+ {+ "title": "Engines and computers",+ "items": [+ "**OMP engine.**",+ "**Take over a bot's USB-connected Android phone** from the Android tab (experimental).",+ "**Fish Audio for live calls.**",+ "**VPS: an optional wake script** resumes a host that pauses when idle.",+ "**1Password access can be granted item by item.**",+ "**An OpenCode Go limit no longer blocks the free OpenCode models** on the same sign-in."+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "**A chat you followed from a notification is marked read once,** not twice.",+ "**Windows-1252 Markdown files open in the preview.**",+ "**A replayed image is marked as already sent,** so the model doesn't treat it as new.",+ "**Copilot keeps MCP servers out of the reserved browser and computer names.**",+ "**A system stop is no longer counted as your stop.**",+ "**A read-only HighLevel grant lets HighLevel's reads through.**",+ "**A paired client shows and opens the host's Local VM** for a bot that runs there."+ ]+ }+ ]+ },+ {+ "version": "0.1.154",+ "date": "2026-11-12T00:19:37Z",+ "sections": [+ {+ "title": "Settings, reorganised",+ "items": [+ "**Three groups, always in the same order:** the place you are in (This computer or a Cloud), Your account, and This app. Every page says what it applies to.",+ "**Simple mode shows fewer pages.** Turn on Advanced mode at the bottom of Settings to see the rest.",+ "**One AI page** for engines, provider keys and models.",+ "**Search settings** from the top of the window. A result names the page it lives on.",+ "**Phone & devices is in the profile menu,** so pairing a phone is two clicks from anywhere."+ ]+ },+ {+ "title": "Replies appear as they are written",+ "items": [+ "**A bot's reply now streams into the chat** instead of arriving all at once, in chats and in rooms.",+ "**Streamed text is shown as the bot produces it.** Saved secrets are masked once the message is saved, as before."+ ]+ },+ {+ "title": "Put a site or web app online",+ "items": [+ "**Publish to Netlify.** A bot can put a site or web app online on your own Netlify account.",+ "**Included hosting.** On a Cloud plan, a bot can publish to the hosting your plan includes, with no Netlify account of your own.",+ "**Published apps.** One page lists everything your bots have put online, with a preview beside the chat and Delete."+ ]+ },+ {+ "title": "Pairing a phone is clearer",+ "items": [+ "**Only the pairing code is a QR code now.** The desktop app no longer shows store codes or download links: install MausBot from the App Store or Google Play, then pair.",+ "**The pairing screen says what to scan with:** open MausBot on your phone and scan the code from inside the app.",+ "**A paired phone can delete a bot.**"+ ]+ },+ {+ "title": "Apps",+ "items": [+ "**Gmail or Google Calendar added as an MCP server and not signed in?** The bot now offers the one-step connect card in the chat, or uses the app if it is already connected.",+ "**A bot is told when an app it asked to connect already has an account.**"+ ]+ },+ {+ "title": "My Cloud",+ "items": [+ "**A clear reason when a cloud computer can't start:** hours used up, too many at once, or started too often, with the date the hours come back. A free trial gets its own wording.",+ "**Empty files move to My Cloud,** files changed without a new timestamp are picked up, and two files with the same name are reported before a folder syncs."+ ]+ },+ {+ "title": "Team Cloud",+ "items": [+ "**A bot is its maker's until they share it** with the team.",+ "**A secret a member types in their private chat stays theirs.**",+ "**Simpler team screens,** with \"Owner\" wording throughout and nothing shown that a member can't use."+ ]+ },+ {+ "title": "Update a self-hosted server from the app",+ "items": [+ "**Update server.** When a server you're connected to is behind, Settings has an **Update server** button. It backs up first, updates to the stable version, and goes back by itself if the new version doesn't work. If the app is then older than the server, the same row offers **Update app**.",+ "It works on servers set up with the one-command installer. On a hand-made Docker setup, run `sudo./update-runner.sh --install` once. Servers installed with npm are shown the commands to run.",+ "**The installer sets file permissions itself.** If you installed a server from a root shell with unusual settings, run the install command again: it closes the install folder to other users and tells you if it changed anything."+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "**A chat you watched to the end no longer shows as unread** on your phone or after a reload.",+ "**Stop reaches the running turn** after the connection restarts.",+ "**OpenCode never runs a model it can't route,** and says so plainly.",+ "**Goals:** a decision is recovered when its closing tag is missing or followed by extra text.",+ "**Memory:** Japanese words with a long vowel mark are recalled, and tidying only touches notes the model was shown.",+ "**Search** matches upper and lower case in every language.",+ "**Calendar:** every page is read before a bot reports when you're free.",+ "**Data:** decimals sort correctly, export file names don't collide, and compressed files load with a folder.",+ "**Notion integration tokens are masked** in chats and logs.",+ "**Emailed sign-in codes stop being read** when the turn ends."+ ]+ }+ ]+ },+ {+ "version": "0.1.153",+ "date": "2026-11-11T13:24:23Z",+ "sections": [+ {+ "title": "Burst mode",+ "items": [+ "**Give a bot a big job and let it split the work.** Type `/burst`, or let the bot offer it: it previews the parts, runs them side by side and gives you one result. Every plan has it, with more parts at once on bigger plans."+ ]+ },+ {+ "title": "Models and engines",+ "items": [+ "**Ollama, found for you.** MausBot finds Ollama running on your computer and adds it in one click, shows the models you've pulled, and lets you turn a model's thinking off or pick its level.",+ "**Reasoning levels for OpenAI and OpenRouter API models.**",+ "**Star a model** to keep it at the top of its provider.",+ "**Amazon Bedrock** as a way to run Claude.",+ "**New models without an update.** The model list now refreshes by itself."+ ]+ },+ {+ "title": "My Cloud",+ "items": [+ "**Choose which bots move to My Cloud.** With two or more bots you pick, or move everything.",+ "**Big workspaces finish moving,** including on slow connections.",+ "**Open one of your computers from another over Tailscale,** and see why when it can't connect.",+ "**Bots know which of your computers they can use,** and say so when one is away."+ ]+ },+ {+ "title": "Phones",+ "items": [+ "**A clear notice when an older phone app stops connecting away from Wi-Fi.** Update the app on your phone, then open it once on the same Wi-Fi as your computer. Phone & devices has a **Pair again** button if you need it, and your bots now give the same answer.",+ "**Self-hosted servers can pair a phone through MausBot's relay,** with no domain or open port. Start the server with `--relay`. It is new: tell us how it goes."+ ]+ },+ {+ "title": "Hand-offs and Inbox",+ "items": [+ "**Finished hand-offs get a line in your Inbox.**",+ "**Work waiting on you gets one reminder after a day and closes after three,** instead of waiting forever.",+ "**An approval nobody answered stays in your Inbox** until you decide."+ ]+ },+ {+ "title": "Apps and secrets",+ "items": [+ "**Suggested apps** to connect, and bots can search the app catalog.",+ "**MCP server secrets are kept in the Vault,** and your saved secrets travel with you when you send a workspace to My Cloud.",+ "**Emailed one-time codes fill in by themselves** when a bot is allowed to read that mailbox."+ ]+ },+ {+ "title": "Chats and rooms",+ "items": [+ "**Start fresh.** Reset a chat's context from its actions menu.",+ "**Pin a bot's page to the sidebar.**",+ "**Rooms follow their Chief of Staff,** and tell you when the Chief isn't in the room.",+ "**The rail takes a click at once.**",+ "**Attach.xmind mind maps.**"+ ]+ },+ {+ "title": "Self-hosting",+ "items": [+ "**One command installs a server** on a fresh Ubuntu machine, with HTTPS on your domain.",+ "**A stable channel, and an update that backs up first and goes back by itself** if the new version doesn't work.",+ "**HTTPS survives a server restart.** If you run the Docker setup, run `docker compose up -d` after pulling, not only a restart.",+ "**Sign-in lists:** people you added in Settings while an empty environment setting was overriding it now take effect at the next start. Check the list before you update."+ ]+ },+ {+ "title": "Other",+ "items": [+ "**The ModelGo card** now shows on your first launch of this version if you haven't seen it.",+ "**MausBot can tell you about news with a card,** without an app update. Set `OMB_DISABLE_ANNOUNCEMENTS=1` to turn it off.",+ "**Traditional Chinese** is fully translated."+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "**Starter:** the list of paused bots no longer disappears when it changes.",+ "**A turn that needs a Local VM's tools stops** when the VM offers none, as before.",+ "**A turn carries on when one optional MCP server dies.**",+ "**The bot sandbox keeps more server settings away from bots.**",+ "**Length refusals tell a bot how to shorten and try again.**",+ "**An expired Claude sign-in is recognised,** with one notice a day naming the bots that can't run."+ ]+ }+ ]+ },+ {+ "version": "0.1.152",+ "date": "2026-11-10T19:57:50Z",+ "sections": [+ {+ "title": "Advanced mode is back",+ "items": [+ "**Choose Simple or Advanced again.** The switch is back in the app. If you were on Advanced before 0.1.151, you're put back on it."+ ]+ },+ {+ "title": "Starter: as many bots as you like",+ "items": [+ "**No more stopping at 5 bots on Starter.** Create any number; 5 stay awake at a time and 2 work at once, as the plan page says. A bot made past the five starts paused, and one tap swaps it in for the one you use least. Nothing you're using is ever paused to make room."+ ]+ },+ {+ "title": "ModelGo",+ "items": [+ "**ModelGo is a new AI provider.** Add a ModelGo API key in Settings and pick from the models your key offers. ModelGo sponsors MausBot, and you'll see a one-time card about it."+ ]+ },+ {+ "title": "Teams",+ "items": [+ "**Each person's own view.** On a team, unread marks, notifications and bot order are yours alone.",+ "**See who's here.** See who is online and who has a shared chat open.",+ "**Connection health for admins.** A Team Cloud tells its admins how each connection is really doing."+ ]+ },+ {+ "title": "Your computer and your Cloud",+ "items": [+ "**See what's keeping this computer from your Cloud.** The app now says what is in the way instead of only failing to connect.",+ "**Lent computers survive a Cloud waking up.** Your Cloud waits for them to come back, and work handed on from your own line keeps the computer you lent.",+ "**Phone & devices explains an ended secure link.** If an older phone app's link has ended, the desktop says why and what to do: update the phone app and pair again."+ ]+ },+ {+ "title": "Small things that help",+ "items": [+ "**Ollama shows as Ollama.** Its own mark, the models you've pulled, and a plain reason when it can't answer.",+ "**Memory lock notice.** You're told the moment a bot's memory locks, with an Allow card.",+ "**MCP sign-ins.** The app says which MCP server needs a sign-in, and Test no longer passes when every call is refused.",+ "**AI provider keys are kept in the desktop's encrypted store.**",+ "**Connected apps with your own key.** With your own Composio key, connected-app traffic stays off the managed service."+ ]+ },+ {+ "title": "Security",+ "items": [+ "**A stronger bot sandbox on Clouds and shared servers.** Five fixes close ways a bot's files could affect the server outside the sandbox: server files named on a command line, background engine work and app connections, programs and npm or git settings in the home folder, and the server's own model-list checks for Pi, OpenCode, Hermes, DeepSeek and Muse."+ ]+ }+ ]+ },+ {+ "version": "0.1.151",+ "date": "2026-11-09T22:56:49Z",+ "sections": [+ {+ "title": "Claude Fable 5.2",+ "items": [+ "**Fable 5.2 is in the model picker.** Choose it for any Claude bot. It has a 1M-token context and is cheaper than Fable 5.1."+ ]+ },+ {+ "title": "One simple app",+ "items": [+ "**Simple is now the only mode.** Everything you use every day is in one place, with fewer settings to look through. Bot sharing as a preset, your organization's shared skills, and where an installed bot came from are all in Simple now."+ ]+ },+ {+ "title": "Your secrets, where bots can use them",+ "items": [+ "**A Vault page.** See and manage what's saved in one place. Secret and sign-in cards offer **Use a saved one**, so you don't paste the same thing twice.",+ "**1Password secrets by name.** Link a password manager, and a bot can use a secret from a vault it's allowed to read, without the value being saved or shown."+ ]+ },+ {+ "title": "Small things that help",+ "items": [+ "**Folder links open in Finder or Explorer.** Click a folder linked in a chat on the desktop app and it opens in your file manager.",+ "**Connected apps come back on a fresh install.** Connect the same Composio project key on a personal install and your earlier apps return, without connecting each one again. Team Clouds always start fresh.",+ "**Preview Markdown attachments.** See them formatted, or switch to the raw text.",+ "**Edit a bot's memory as text.** If it changed while you were editing, you're told before anything is overwritten.",+ "**Webhook reports get their own chat.** On desktop and self-hosted, webhook and app-event results go to a \"Results\" chat instead of piling into your latest conversation.",+ "**Dreams only save what you said.** A saved fact now has to quote you, and its numbers, paths and links have to come from that quote.",+ "**Linux servers find a browser.** They use a compatible installed browser, or download Chrome when needed.",+ "**Reset saved keys.** If the app can't read its saved keys at launch, Connected apps offers a reset. The old file is set aside, not deleted."+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "**A chat can't get stuck on \"Working\".** Answering Allow on a \"use your computer\" card could leave a chat marked busy with nothing running, and Stop couldn't clear it. Stop now always frees a chat that nothing is running in, and stuck chats free themselves.",+ "**Computer control recovers by itself.** On macOS 26, a keyboard shortcut could crash the helper that controls your computer, and the bot's tools disappeared until you restarted the app. The helper is updated on macOS and Windows and now restarts itself, and the tools come back on their own.",+ "**Moving to My Cloud only moves this computer's own workspace.** The move used to carry whichever local environment was open at the time, and could finish without your bots.",+ "**Your Cloud can change address without confusing your computer.** The desktop app now recognises its Cloud by identity, so it stays connected if the Cloud moves."+ ]+ }+ ]+ },+ {+ "version": "0.1.150",+ "date": "2026-11-09T03:26:23Z",+ "sections": [+ {+ "title": "Clouds finish restores and stay responsive",+ "items": [+ "**A restore on My Cloud finishes by itself.** Restoring a backup, or moving this computer's workspace to My Cloud, used to wait on \"Fully quit MausBot…\", which a Cloud can't do. My Cloud now restarts its own server right after the restore and shows progress while it comes back.",+ "**The turn queue stays fast when many bots wait.** Checking who goes next takes time in proportion to the number waiting, not its square, so a busy Cloud keeps answering.",+ "**A Claude turn is never sent twice** once one of its model calls has answered.",+ "**Routines save a run's progress once per window,** not after every step, so long runs write far less.",+ "**Paired phones and desktops get large bot lists** without stalling."+ ]+ },+ {+ "title": "A calmer, clearer app",+ "items": [+ "**Polish pass.** One corner-radius scale, clearer headings and lighter icons. A reply with a table or code is now one bubble instead of three boxes of different widths.",+ "**Pages open beside the chat.** A bot's page shows as a small card with **Open page**. The large view keeps the message box usable, so you can talk about the page while looking at it. You can also save a page as a file.",+ "**Simple mode does more.** The everyday settings that needed Advanced are now in Simple: what a bot may do without asking, reply style, per-bot notifications, who can see a bot, the cloud computer picker and Android.",+ "**Rules for every bot.** One field next to About me holds instructions every bot follows, and bot instructions keep a history with Undo.",+ "**Memory tidies itself.** Upkeep moves finished work logs out of memory, and never touches lines that read like rules you gave. A bot that loads a lot every turn shows **Tidy memory**.",+ "New **Aurora** and **Diwali** skins."+ ]+ },+ {+ "title": "Bots and connections",+ "items": [+ "**A bot can open a thread on another model,** including one from another provider, pick it from a short list, and get the result back.",+ "**Secrets typed into a bot's card are kept in the Vault,** for that bot only, so it can use them again without asking. They are always masked in transcripts and logs.",+ "**A mailbox that reads but can't send** gets a card in the chat for its outgoing server.",+ "**ChatGPT plan turns use your own Codex setup and skills,** with their sign-in kept separate.",+ "**AgentMail, AgentPhone, Vapi and Telnyx** connect with API keys.",+ "**Public HTTPS MCP servers** can be added without an approval step when access is below Full.",+ "**Connect to a server says why it's grey,** for example when macOS blocks local network access, and offers a Tailscale pairing button when that route is on.",+ "Model IDs of an added OpenAI-compatible server can be changed after adding."+ ]+ },+ {+ "title": "Fixes and smaller changes",+ "items": [+ "**Full screen watches a bot's screen without taking control,** and you can take over from the viewer.",+ "**⌘⇧N** starts a new thread with the selected bot.",+ "Sent and attached files share one 100 MB limit. Previews stay at 25 MB.",+ "Chinese input: IME handling, thread search, mentions, the slash menu, punctuation and sentence boundaries.",+ "Automations filter by department, and a waiting run can be cancelled.",+ "Older usage-limit notices are marked as past once their reset time has gone.",+ "Linux shows which libraries Chrome needs when they are missing."+ ]+ }+ ]+ },+ {+ "version": "0.1.149",+ "date": "2026-11-08T12:36:46Z",+ "sections": [+ {+ "title": "Clouds stay up when bots hand out a lot of work",+ "items": [+ "**No more freezes when one bot hands work to many.** When many bot turns waited for memory at once, the server could use all its CPU re-checking the queue and stop answering. Waiting is now cheap, so the Cloud keeps working while the queue drains.",+ "**Starter runs two tasks at once.** Other tasks wait their turn, and your own chat still goes first. Once two are running and four are waiting, a new hand-off is refused with a clear note, and you're offered an upgrade to run more.",+ "**Starter keeps five bots awake, including after a restore or a move.** Every bot is kept. Bots past five are paused until you upgrade, and you choose which five stay awake (Cloud settings → Choose awake bots)."+ ]+ },+ {+ "title": "Your own server can use this computer",+ "items": [+ "**One popup after pairing.** When a desktop pairs with a server you run yourself, it asks **\"Let your server use this computer?\"**. **Allow** lends the apps on your screen and this computer's MCP servers. **Not now** lends nothing and isn't asked again.",+ "**Settings → Servers → Share this computer.** A switch turns sharing on or off at any time, and **Choose what it can use** picks folders, the terminal, apps and the screen. Pause in the menu bar covers these servers too.",+ "Only a server you paired with as its admin counts. Clouds keep their own sharing rules, and a shared or team server never gets your computer this way."+ ]+ },+ {+ "title": "More engines",+ "items": [+ "**Kiro** is a built-in engine. Its model picker lists your account's models plus **Kiro default**.",+ "**Native Claude Code and Codex on an API key.** Each key-based connection is its own engine. Hosts without a model list (DeepSeek, GLM and others) can be added by typing the model, and keys are only ever sent over HTTPS."+ ]+ },+ {+ "title": "This computer on Omarchy (experimental)",+ "items": [+ "On Omarchy and other Hyprland desktops, **This computer** works with Cua's Hyprland plugin: bots act in their own agent seats while you keep using the screen. Settings → Computer shows whether the plugin is ready and links the setup guide."+ ]+ },+ {+ "title": "Fixes and smaller changes",+ "items": [+ "**Bots list only the imported skills that fit them** and find the rest by search, instead of listing every skill in every prompt. Bots pick the right skill more often, and each turn sends less to the model.",+ "**Computer use** runs on Cua Driver 0.41.3 on macOS, Windows and Linux."+ ]+ }+ ]+ },+ {+ "version": "0.1.148",+ "date": "2026-11-07T21:50:56Z",+ "sections": [+ {+ "title": "Connecting to your own server is simpler",+ "items": [+ "**One way to connect.** In the app, + → **Connect to a server** takes the link your server prints, or its address and a pairing code. A plain `http://` address works on your own network (Wi-Fi, Tailscale, `.local`); a public `http://` address is refused with what to do instead.",+ "**One pairing code.** Servers and the web `/pair` page use the same 12-character code, and a code of the wrong kind says so.",+ "**Commands that work when pasted.** The server prints one link per way in, checks that the address really reaches it, and prints every command the way you started it (npx, a global install or Docker). `--lan` makes it reachable on this network.",+ "**Nothing starts by itself.** Each way into this computer has its own switch, all off by default. Tailscale and the phone link never start until you turn them on, and a desktop that only connects to your server starts none of it.",+ "**Phone & devices** shows who can reach this computer, with one **Pair a device** dialog. **Servers** says how each server is reached, retries a lost connection on its own, and offers Pair again and Remove.",+ "The self-hosting guide now has one short path per install method and a troubleshooting table."+ ]+ },+ {+ "title": "The private desktop stays chosen",+ "items": [+ "A bot's **Where it works** now offers **Private desktop**.",+ "On **Let it choose**, a bot keeps the place you picked, and starts your private desktop before waking or creating a cloud computer."+ ]+ },+ {+ "title": "Fixes and smaller changes",+ "items": [+ "**Codex** starts on the chosen model's provider.",+ "Linked files over 25 MB are saved, and size limits are explained plainly.",+ "**Long OpenRouter turns** no longer stop on the reasoning size limit.",+ "**Google sign-in** is handed to you when Google refuses the bot's browser.",+ "**Routines** read the newest account when several Gmail accounts are connected.",+ "**The automation editors and shared-instruction dialogs** no longer lag or spin up the fan.",+ "**A failed connected-apps connection** no longer fails the whole turn.",+ "**An MCP tool's approval card** names the custom server asking for it.",+ "**Paired clients** can use \"Continue when your limit resets\".",+ "**A Watch button** shows while a bot uses its screen.",+ "**Traditional Chinese** is complete. French uses \"vous\" in the Cloud move messages.",+ "Notification previews show as plain text.",+ "The sign-in pill slows its checks when a server is down, then says so.",+ "More security hardening around proxies, local key checks and shared working folders."+ ]+ }+ ]+ },+ {+ "version": "0.1.147",+ "date": "2026-11-07T17:12:56Z",+ "sections": [+ {+ "title": "Meeting notes",+ "items": [+ "Paste a Google Meet, Microsoft Teams or Jitsi link and a bot joins the call as a guest. It names itself, says in the chat that it's taking notes, and leaves when asked.",+ "Ask it questions during the call with @notes. When the call ends it posts a Meeting notes card: summary, decisions, action items and the full transcript with who said what.",+ "A calendar routine can send it to your meetings automatically.",+ "On a Cloud plan, transcription is included. Elsewhere, use your own ElevenLabs, Groq or OpenAI key, or a local Whisper model."+ ]+ },+ {+ "title": "Fixes",+ "items": [+ "**\"Internal service failure (session/new, LocationNotFoundError)\" on a Cloud:** fixed. OpenCode chats on a Cloud failed in every conversation after a bot's first one; each conversation now reaches its own folder.",+ "**Phone connection:** a second relay server now shares the load."+ ]+ }+ ]+ }+ ]+}diff --git a/announcements/releases.schema.json b/announcements/releases.schema.jsonnew file mode 100644index 0000000000..e746443c90--- /dev/null+++ b/announcements/releases.schema.json@@ -0,0 +1,79 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "type": "object",+ "properties": {+ "$schema": {+ "type": "string",+ "maxLength": 200+ },+ "version": {+ "type": "number",+ "const": 1+ },+ "updatedAt": {+ "type": "string",+ "format": "date-time",+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"+ },+ "releases": {+ "maxItems": 20,+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "version": {+ "type": "string",+ "pattern": "^\\d{1,6}\\.\\d{1,6}\\.\\d{1,6}$"+ },+ "date": {+ "type": "string",+ "format": "date-time",+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"+ },+ "sections": {+ "minItems": 1,+ "maxItems": 16,+ "type": "array",+ "items": {+ "type": "object",+ "properties": {+ "title": {+ "type": "string",+ "minLength": 1,+ "maxLength": 60+ },+ "items": {+ "minItems": 1,+ "maxItems": 40,+ "type": "array",+ "items": {+ "type": "string",+ "minLength": 1,+ "maxLength": 600+ }+ }+ },+ "required": [+ "title",+ "items"+ ],+ "additionalProperties": false+ }+ }+ },+ "required": [+ "version",+ "date",+ "sections"+ ],+ "additionalProperties": false+ }+ }+ },+ "required": [+ "version",+ "updatedAt",+ "releases"+ ],+ "additionalProperties": false+}diff --git a/docs/announcements.md b/docs/announcements.mdindex 39fc26023a..9e3ad257b8 100644--- a/docs/announcements.md+++ b/docs/announcements.md@@ -19,7 +19,8 @@ change to it on `main` and every install that runs this version or later picks iMove to Cloud leave out), and downloads at most once an hour (every five minutes after a failure). A download thatfails, is slow (ten seconds at most), is larger than 64 KB, is not JSON or does not validate is dropped and the lastgood copy is kept. A page's first ask waits at most three seconds for the first download; nothing else ever waits for- it, and nothing is shown when it fails. The two should share one helper once both are on `main`.+ it, and nothing is shown when it fails. The fetch, cache and failure handling are one helper,+ `server/announcements/remote-file.ts`, which the release notes below use too (the model manifest keeps its own copy).- **Cards, not pages.** The file carries words, a picture's address and one of a few button actions. The app draws thecard with its own notice card (`src/components/AnnouncementCard.tsx`); nothing in the file is read as HTML or run.@@ -190,6 +191,38 @@ app before see the dot for Teams alone.A card from this file is dated by its `starts`, else by the file's `updatedAt` (which `GET /api/announcements` hands overwith the cards). Give a card `starts` when its date matters.+### What each release brought++The list also has one row per app release, newest first among the rest by its date: **What's new in** its version, the+leads of its first two lines, and **See all changes**, which opens its sections and lines in place. The row of the+version running here says **You're on this version**; when the desktop app has an update downloaded, that version's row+(or a row on top from the update's own notes, when the list does not have it yet) has **Restart to update**, which does+what the update card's button does. A branded build lists no releases.++The releases come from [`announcements/releases.json`](../announcements/releases.json), delivered like the cards: bundled,+cached under `providers/announcements/`, downloaded from `main` at most hourly with the same switch, at most 128 KB read,+and handed to pages as `releases` in `GET /api/announcements`. Each release is `{ version, date, sections: [{ title,+items }] }`; a line is plain text with `**bold**` and `` `code` `` only, which the page draws itself (no tags, links or+addresses; CI and the app refuse them). The file keeps the latest 20 releases; its JSON Schema is+`announcements/releases.schema.json`, and `node scripts/check-announcements.mjs` checks both files.++A release raises the red dot when it is newer than the person's last look and later than the version this browser first+listed announcements on (kept in the browser), so a new install is not told about every release before it. A downloaded+update's own row never raises it.++**Each release adds its entry with the script**, once the release is published (never in its version-bump PR: `main`+reaches installs within the hour, and a bump that never ships would list a release nobody can get):++```sh+gh release view v0.1.176 -R milind-soni/OpenMausBot --json body,publishedAt > /tmp/release.json+jq -r .body /tmp/release.json > /tmp/notes.md+node scripts/release-notes-feed.mjs 0.1.176 /tmp/notes.md --date "$(jq -r .publishedAt /tmp/release.json)"+```++It reads the notes as published (`### Section` headings and `- ` lines; nested lines fold into theirs), keeps only bold+and code, drops lines naming a pull request or a contributor's handle, replaces an entry with the same version, keeps+the list newest first and moves `updatedAt` forward. Read the diff, then merge it like any change to the cards.+### Adding an announcement- **A card, without a release:** add it to `announcements/announcements.json` as above. It is listed and raises the dot by@@ -204,7 +237,7 @@ with the cards). Give a card `starts` when its date matters.## Turning it off- **`OMB_DISABLE_ANNOUNCEMENTS=1`** in the server's environment stops the download and every remote card on that server's- pages, the bundled ones included. For a self-hosted server or an open-source build that should never show them. The+ pages, the bundled ones included, and the release notes with them. For a self-hosted server or an open-source build that should never show them. Thedesktop app's own server inherits the app's environment, so it holds there when the app is started with it set.- **No in-app switch governs these cards.** The app has no setting for promotional popups: the product-updates question isabout email, and the usage-analytics switch only stops the counting. A person closes a card with Not now or the X, anddiff --git a/docs/releasing.md b/docs/releasing.mdindex 8b981d1594..cee7ce5a55 100644--- a/docs/releasing.md+++ b/docs/releasing.md@@ -47,6 +47,10 @@ Configure the optional Vercel hook below to rebuild the docs immediately afterpublication; otherwise the live cache or the next normal docs deploymentrefreshes it.+Once a release is published, add its notes to the Announcements page's list with+`node scripts/release-notes-feed.mjs <version> <notes.md> --date <publishedAt>`+and merge that change ([Announcements](announcements.md#what-each-release-brought)).+## Data format and rollbackEach release records the data-folder formats it writes and reads:diff --git a/scripts/check-announcements.mjs b/scripts/check-announcements.mjsindex c3b9ea4f81..5762cfbffd 100644--- a/scripts/check-announcements.mjs+++ b/scripts/check-announcements.mjs@@ -1,9 +1,9 @@-// Validates announcements/announcements.json. Installs download that file from main within the hour, so CI holds it to-// the strict schema and the rules below, and refuses the edit before it can merge.+// Validates announcements/announcements.json and announcements/releases.json. Installs download both from main within the+// hour, so CI holds them to the strict schema and the rules below, and refuses the edit before it can merge.//// node scripts/check-announcements.mjs check the file// node scripts/check-announcements.mjs --against <rev> also require updatedAt to move forward when the file changed-// node scripts/check-announcements.mjs --write-schema regenerate announcements/announcements.schema.json+// node scripts/check-announcements.mjs --write-schema regenerate both files' JSON Schemasimport { execFileSync } from "node:child_process";import { existsSync, readFileSync, statSync, writeFileSync } from "node:fs";import { dirname, join } from "node:path";@@ -13,6 +13,8 @@ import { parseArgs } from "node:util";import {ANNOUNCEMENT_IMAGE_PREFIX, ANNOUNCEMENTS_FILE, ANNOUNCEMENTS_SCHEMA_FILE, announcementsJsonSchema, parseAnnouncementFeed,} from "../shared/announcements.ts";+import { cleanReleaseLine, parseReleaseFeed, RELEASES_FILE, RELEASES_SCHEMA_FILE, releasesJsonSchema } from "../shared/release-notes.ts";+import { MAX_RELEASES_FILE_BYTES } from "./release-notes-feed.mjs";const root = join(dirname(fileURLToPath(import.meta.url)), "..");/** Half what an install reads (server/announcements/feed.ts), so a growing file fails here first. */@@ -26,6 +28,7 @@ const DAY = 24 * 60 * 60 * 1000;/** Line endings aside: a Windows checkout may turn LF into CRLF, which changes nothing an install reads. */export const lf = (text) => text.replace(/\r\n/g, "\n");export const schemaText = () => `${JSON.stringify(announcementsJsonSchema(), null, 2)}\n`;+export const releasesSchemaText = () => `${JSON.stringify(releasesJsonSchema(), null, 2)}\n`;/** Problems with the file's text, or an empty list when it is sound. `fileSize(path)` is a picture's size in bytes, or null when* the repository has no such file. */@@ -61,27 +64,61 @@ export function announcementProblems(raw, { previous: rawPrevious = null, now =return problems;}+/** Problems with the release notes file: the strict schema, its size, every line already as the cleaner leaves it, and+ * updatedAt moving forward when it changed. */+export function releaseProblems(raw, { previous: rawPrevious = null, now = Date.now() } = {}) {+ const text = lf(raw), previous = rawPrevious === null ? null : lf(rawPrevious);+ if (Buffer.byteLength(text) > MAX_RELEASES_FILE_BYTES) return [`${RELEASES_FILE} is larger than ${MAX_RELEASES_FILE_BYTES} bytes`];+ let doc;+ try {+ doc = JSON.parse(text);+ } catch {+ return [`${RELEASES_FILE} is not valid JSON`];+ }+ const parsed = parseReleaseFeed(doc, { strict: true, nowMs: now });+ if (!parsed.ok) return [`${RELEASES_FILE}: ${parsed.error}`];+ const problems = [];+ for (const release of parsed.feed.releases) {+ for (const item of release.sections.flatMap((section) => section.items)) {+ if (cleanReleaseLine(item) !== item) problems.push(`${release.version}: a line has marks the app does not draw: ${item.slice(0, 80)}`);+ }+ }+ if (previous !== null && text !== previous) {+ let before = null;+ try { before = parseReleaseFeed(JSON.parse(previous), { nowMs: now }); } catch {}+ if (before?.ok && Date.parse(parsed.feed.updatedAt) <= Date.parse(before.feed.updatedAt)) {+ problems.push(`${RELEASES_FILE} changed but updatedAt did not move forward; installs keep the copy with the newest updatedAt`);+ }+ }+ return problems;+}+function main() {const { values } = parseArgs({ options: { against: { type: "string" }, "write-schema": { type: "boolean" } } });- const schemaPath = join(root, ANNOUNCEMENTS_SCHEMA_FILE);+ const schemas = [[ANNOUNCEMENTS_SCHEMA_FILE, schemaText], [RELEASES_SCHEMA_FILE, releasesSchemaText]];if (values["write-schema"]) {- writeFileSync(schemaPath, schemaText());- console.log(`announcements: wrote ${ANNOUNCEMENTS_SCHEMA_FILE}`);+ for (const [file, text] of schemas) {+ writeFileSync(join(root, file), text());+ console.log(`announcements: wrote ${file}`);+ }return;}const problems = [];- if (!existsSync(schemaPath) || lf(readFileSync(schemaPath, "utf8")) !== schemaText()) {- problems.push(`${ANNOUNCEMENTS_SCHEMA_FILE} is out of date: run node scripts/check-announcements.mjs --write-schema`);+ for (const [file, text] of schemas) {+ const path = join(root, file);+ if (!existsSync(path) || lf(readFileSync(path, "utf8")) !== text()) problems.push(`${file} is out of date: run node scripts/check-announcements.mjs --write-schema`);}- let previous = null;- if (values.against) {+ const earlier = (file) => {+ if (!values.against) return null;try {- previous = execFileSync("git", ["show", `${values.against}:${ANNOUNCEMENTS_FILE}`], { cwd: root, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] });+ return execFileSync("git", ["show", `${values.against}:${file}`], { cwd: root, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] });} catch {- console.log("announcements: no earlier copy to compare with");+ console.log(`announcements: no earlier copy of ${file} to compare with`);+ return null;}- }- problems.push(...announcementProblems(readFileSync(join(root, ANNOUNCEMENTS_FILE), "utf8"), { previous }));+ };+ problems.push(...announcementProblems(readFileSync(join(root, ANNOUNCEMENTS_FILE), "utf8"), { previous: earlier(ANNOUNCEMENTS_FILE) }));+ problems.push(...releaseProblems(readFileSync(join(root, RELEASES_FILE), "utf8"), { previous: earlier(RELEASES_FILE) }));if (problems.length) {for (const problem of problems) console.error(`announcements: ${problem}`);process.exitCode = 1;diff --git a/scripts/release-notes-feed.mjs b/scripts/release-notes-feed.mjsnew file mode 100644index 0000000000..20301fc9f0--- /dev/null+++ b/scripts/release-notes-feed.mjs@@ -0,0 +1,66 @@+// Adds one release's notes to announcements/releases.json, the list the Announcements page shows (docs/announcements.md).+// Run it once a release is published, never in its version-bump PR: main reaches installs within the hour, and a bump+// that never ships would list a release nobody can get.+//+// node scripts/release-notes-feed.mjs 0.1.176 path/to/release-notes-v0.1.176.md+// node scripts/release-notes-feed.mjs 0.1.176 notes.md --date 2026-11-22T10:00:00Z the release's publish time (default: now)+// node scripts/release-notes-feed.mjs 0.1.176 notes.md --file other.json write another file (tests)+//+// The notes are the Markdown published as the GitHub release body: `### Section` headings and `- ` lines. Each line keeps+// only **bold** and `code`; tags, links, addresses and lines naming a pull request or a contributor's handle are dropped.+// The entry replaces one with the same version; the list stays newest first and keeps the latest MAX_RELEASES, fewer+// when that would pass MAX_FILE_BYTES.+import { readFileSync, writeFileSync } from "node:fs";+import { dirname, join } from "node:path";+import { fileURLToPath } from "node:url";+import { parseArgs } from "node:util";++import { compareVersions } from "../shared/announcements.ts";+import { MAX_RELEASES, parseRelease, parseReleaseFeed, releaseFromMarkdown, RELEASES_FILE } from "../shared/release-notes.ts";++const root = join(dirname(fileURLToPath(import.meta.url)), "..");+/** What CI allows (scripts/check-announcements.mjs): three quarters of what an install reads (server/announcements/release-notes.ts). */+export const MAX_RELEASES_FILE_BYTES = 96 * 1024;++export const releasesText = (feed) => `${JSON.stringify(feed, null, 2)}\n`;++/** The file's new text with `entry` in it, or throws why it cannot be. `now` moves updatedAt forward. */+export function withRelease(raw, entry, { now = Date.now() } = {}) {+ const checked = parseRelease(entry, { strict: true });+ if (!checked.ok) throw new Error(`the notes for ${entry.version} do not make a valid entry (${checked.error})`);+ const parsed = parseReleaseFeed(JSON.parse(raw), { strict: true, nowMs: now });+ if (!parsed.ok) throw new Error(`${RELEASES_FILE} is invalid (${parsed.error})`);+ const previous = Date.parse(parsed.feed.updatedAt);+ const updatedAt = new Date(Math.max(Math.floor(now / 1000) * 1000, Math.floor(previous / 1000) * 1000 + 1000)).toISOString().replace(".000Z", "Z");+ const releases = [checked.release, ...parsed.feed.releases.filter((release) => release.version !== entry.version)]+ .sort((a, b) => compareVersions(b.version, a.version) ?? 0)+ .slice(0, MAX_RELEASES);+ const feed = { $schema: "./releases.schema.json", version: 1, updatedAt, releases };+ while (Buffer.byteLength(releasesText(feed)) > MAX_RELEASES_FILE_BYTES && feed.releases.length > 1) feed.releases.pop();+ if (Buffer.byteLength(releasesText(feed)) > MAX_RELEASES_FILE_BYTES) throw new Error(`the notes for ${entry.version} alone are larger than ${MAX_RELEASES_FILE_BYTES} bytes`);+ if (!feed.releases.some((release) => release.version === entry.version)) throw new Error(`${entry.version} is older than every release the file keeps`);+ return releasesText(feed);+}++function main() {+ const { values, positionals } = parseArgs({ allowPositionals: true, options: { date: { type: "string" }, file: { type: "string" } } });+ const [version, notesPath] = positionals;+ if (!version || !notesPath || !/^\d+\.\d+\.\d+$/.test(version)) {+ console.error("usage: node scripts/release-notes-feed.mjs <version> <notes.md> [--date ISO] [--file path]");+ process.exitCode = 2;+ return;+ }+ const iso = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;+ if (values.date !== undefined && !iso.test(values.date)) throw new Error(`--date ${values.date} is not an ISO date and time, such as 2026-11-22T10:00:00Z`);+ const date = values.date ? new Date(values.date) : new Date();+ if (Number.isNaN(date.getTime()) || (values.date && !values.date.startsWith(date.toISOString().slice(0, 10)) && values.date.endsWith("Z"))) {+ throw new Error(`--date ${values.date} is not a real date`);+ }+ const file = values.file ?? join(root, RELEASES_FILE);+ const entry = releaseFromMarkdown(readFileSync(notesPath, "utf8"), { version, date: date.toISOString().replace(/\.\d{3}Z$/, "Z") });+ writeFileSync(file, withRelease(readFileSync(file, "utf8"), entry));+ const lines = entry.sections.reduce((sum, section) => sum + section.items.length, 0);+ console.log(`release notes: ${version} added to ${values.file ?? RELEASES_FILE} (${entry.sections.length} sections, ${lines} lines)`);+}++if (process.argv[1] === fileURLToPath(import.meta.url)) main();diff --git a/scripts/release-notes-feed.test.mjs b/scripts/release-notes-feed.test.mjsnew file mode 100644index 0000000000..bbec434373--- /dev/null+++ b/scripts/release-notes-feed.test.mjs@@ -0,0 +1,69 @@+import { readFileSync } from "node:fs";+import { describe, expect, it } from "vitest";++import { lf, releaseProblems, releasesSchemaText } from "./check-announcements.mjs";+import { MAX_RELEASES_FILE_BYTES, releasesText, withRelease } from "./release-notes-feed.mjs";++const read = (path) => readFileSync(new URL(`../${path}`, import.meta.url), "utf8");+const NOW = Date.parse("2026-11-21T10:00:00Z");+const empty = releasesText({ $schema: "./releases.schema.json", version: 1, updatedAt: "2026-11-20T00:00:00Z", releases: [] });+const entry = (version, items = ["**Faster.** Much faster."]) => ({ version, date: "2026-11-20T00:00:00Z", sections: [{ title: "Fixes", items }] });++describe("the committed release notes", () => {+ it("are valid, with their JSON Schema up to date", () => {+ expect(releaseProblems(read("announcements/releases.json"))).toEqual([]);+ expect(lf(read("announcements/releases.schema.json")), "run node scripts/check-announcements.mjs --write-schema").toBe(releasesSchemaText());+ });+});++describe("adding a release", () => {+ it("inserts newest first, replaces the same version, and moves updatedAt forward", () => {+ let text = withRelease(empty, entry("0.1.170"), { now: NOW });+ text = withRelease(text, entry("0.1.175"), { now: NOW });+ text = withRelease(text, entry("0.1.171"), { now: NOW });+ text = withRelease(text, entry("0.1.175", ["Replaced."]), { now: NOW });+ const feed = JSON.parse(text);+ expect(feed.releases.map((release) => release.version)).toEqual(["0.1.175", "0.1.171", "0.1.170"]);+ expect(feed.releases[0].sections[0].items).toEqual(["Replaced."]);+ expect(Date.parse(feed.updatedAt)).toBeGreaterThan(Date.parse("2026-11-20T00:00:00Z"));+ expect(releaseProblems(text, { previous: empty, now: NOW })).toEqual([]);+ });++ it("keeps the latest twenty, and refuses an entry older than all of them", () => {+ let text = empty;+ for (let patch = 100; patch < 121; patch++) text = withRelease(text, entry(`0.1.${patch}`), { now: NOW });+ const versions = JSON.parse(text).releases.map((release) => release.version);+ expect(versions).toHaveLength(20);+ expect(versions[0]).toBe("0.1.120");+ expect(versions.at(-1)).toBe("0.1.101");+ expect(() => withRelease(text, entry("0.1.50"), { now: NOW })).toThrow(/older than every release/);+ });++ it("drops the oldest releases to stay under the size CI allows", () => {+ const long = Array.from({ length: 40 }, (_, index) => `Line ${index} ${"word ".repeat(100).trim()}.`);+ let text = empty;+ for (let patch = 1; patch <= 20; patch++) text = withRelease(text, entry(`0.2.${patch}`, long), { now: NOW });+ expect(Buffer.byteLength(text)).toBeLessThanOrEqual(MAX_RELEASES_FILE_BYTES);+ expect(JSON.parse(text).releases[0].version).toBe("0.2.20");+ });++ it("refuses one release larger than the file may be on its own", () => {+ const huge = Array.from({ length: 40 }, (_, index) => `Line ${index} ${"word ".repeat(115).trim()}.`);+ const sections = Array.from({ length: 6 }, (_, index) => ({ title: `Part ${index}`, items: huge }));+ expect(() => withRelease(empty, { version: "0.1.1", date: "2026-11-20T00:00:00Z", sections }, { now: NOW })).toThrow(/alone are larger/);+ });++ it("refuses an entry that is not valid", () => {+ expect(() => withRelease(empty, entry("0.1.1", ["<script>x</script>"]), { now: NOW })).toThrow(/valid entry/);+ expect(() => withRelease(empty, { ...entry("0.1.1"), sections: [] }, { now: NOW })).toThrow(/valid entry/);+ });+});++describe("what the check refuses", () => {+ it("a line the cleaner would change, a file that changed without moving updatedAt, and a file too large", () => {+ const withLine = (item) => releasesText({ version: 1, updatedAt: "2026-11-21T00:00:00Z", releases: [entry("0.1.1", [item])] });+ expect(releaseProblems(withLine("Plain *emphasis* here."), { now: NOW })).toEqual([expect.stringMatching(/marks the app does not draw/)]);+ expect(releaseProblems(withLine("Fine."), { now: NOW, previous: withLine("Other.") })).toEqual([expect.stringMatching(/updatedAt did not move forward/)]);+ expect(releaseProblems(`${" ".repeat(MAX_RELEASES_FILE_BYTES)}{}`, { now: NOW })).toEqual([expect.stringMatching(/larger than/)]);+ });+});diff --git a/server/announcements/feed.ts b/server/announcements/feed.tsindex 63eb1f42d2..87cd1758d2 100644--- a/server/announcements/feed.ts+++ b/server/announcements/feed.ts@@ -1,26 +1,21 @@-// The announcements feed, as the model manifest (server/model-manifest/manifest.ts) keeps its list: a copy bundled with-// this release, a disk cache of the last good download, and a download from main on raw.githubusercontent.com. The-// fetch, cache and failure handling follow that file line for line; the two should become one helper once both are on-// main. Unlike the manifest it never runs on a timer of its own: a page asks for the cards at launch and about hourly-// (src/lib/announcements.ts), and that ask refreshes the copy here when it is an hour old, so a server nobody opens never-// downloads it. The request is a plain anonymous GET: no cookie, no id, no version.-import { existsSync, mkdirSync, readFileSync, statSync } from "node:fs";-import { dirname, join } from "node:path";+// The announcements feed: announcements/announcements.json on main, kept by the shared remote-file store (remote-file.ts:+// the bundled copy, the disk cache and the hourly download, as the model manifest keeps its list).+import { join } from "node:path";import bundledFeedJson from "../../announcements/announcements.json" with { type: "json" };import { ANNOUNCEMENTS_URL, liveCards, parseAnnouncementFeed, type AnnouncementCard, type AnnouncementFeed } from "../../shared/announcements.ts";-import { writeFileAtomic } from "../atomic.ts";import { DATA_DIR } from "../config.ts";--/** "1" stops the download and every remote card on this server's pages, the bundled ones included. */-export const ANNOUNCEMENTS_DISABLE_ENV = "OMB_DISABLE_ANNOUNCEMENTS";-export const ANNOUNCEMENTS_TTL_MS = 60 * 60 * 1000;-/** Back off failed fetches, so an offline computer does not try on every page load. */-export const ANNOUNCEMENTS_RETRY_MS = 5 * 60 * 1000;-export const ANNOUNCEMENTS_FETCH_TIMEOUT_MS = 10_000;+import {+ ANNOUNCEMENTS_DISABLE_ENV, REMOTE_FILE_FETCH_TIMEOUT_MS, REMOTE_FILE_FIRST_WAIT_MS, REMOTE_FILE_RETRY_MS, REMOTE_FILE_TTL_MS, RemoteJsonFile,+ type RemoteFileOptions,+} from "./remote-file.ts";++export { ANNOUNCEMENTS_DISABLE_ENV };+export const ANNOUNCEMENTS_TTL_MS = REMOTE_FILE_TTL_MS;+export const ANNOUNCEMENTS_RETRY_MS = REMOTE_FILE_RETRY_MS;+export const ANNOUNCEMENTS_FETCH_TIMEOUT_MS = REMOTE_FILE_FETCH_TIMEOUT_MS;export const ANNOUNCEMENTS_MAX_BYTES = 64 * 1024;-/** How long a page's ask waits for a first download when there is no copy on disk yet; after that it gets what is here. */-export const ANNOUNCEMENTS_FIRST_WAIT_MS = 3_000;+export const ANNOUNCEMENTS_FIRST_WAIT_MS = REMOTE_FILE_FIRST_WAIT_MS;const parsedBundle = parseAnnouncementFeed(bundledFeedJson, { strict: true, nowMs: Number.MAX_SAFE_INTEGER / 2 });if (!parsedBundle.ok) throw new Error(`The bundled announcements are invalid (${parsedBundle.error})`);@@ -31,50 +26,24 @@ export function announcementsCachePath(dataDir: string): string {return join(dataDir, "providers", "announcements", "announcements.json");}-export interface AnnouncementStoreOptions {- dataDir: string;- env?: NodeJS.ProcessEnv;- fetch?: typeof fetch;- now?: () => number;+export interface AnnouncementStoreOptions extends RemoteFileOptions {bundled?: AnnouncementFeed;- timeoutMs?: number;- maxBytes?: number;- log?: (message: string) => void;}-const updatedAtMs = (feed: AnnouncementFeed) => Date.parse(feed.updatedAt);--export class AnnouncementStore {- private readonly options: AnnouncementStoreOptions;- private readonly cachePath: string;- private feed: AnnouncementFeed;- private fetchedAtMs: number | null = null;- private lastAttemptMs: number | null = null;- private diskChecked = false;- private inflight: Promise<AnnouncementFeed> | undefined;-+export class AnnouncementStore extends RemoteJsonFile<AnnouncementFeed> {constructor(options: AnnouncementStoreOptions) {- this.options = options;- this.feed = options.bundled ?? BUNDLED_ANNOUNCEMENTS;- this.cachePath = announcementsCachePath(options.dataDir);- }-- private get now(): number {- return (this.options.now ?? Date.now)();- }-- private log(text: string): void {- (this.options.log ?? ((line: string) => console.warn(line)))(`[announcements] ${text}`);- }-- get disabled(): boolean {- return (this.options.env ?? process.env)[ANNOUNCEMENTS_DISABLE_ENV] === "1";- }-- /** The newest usable copy. Reads the disk cache once and never waits on the network. */- current(): AnnouncementFeed {- if (!this.diskChecked) this.loadDiskCache();- return this.feed;+ super(options, {+ name: "announcements",+ url: ANNOUNCEMENTS_URL,+ cachePath: announcementsCachePath(options.dataDir),+ bundled: options.bundled ?? BUNDLED_ANNOUNCEMENTS,+ maxBytes: ANNOUNCEMENTS_MAX_BYTES,+ parse: (value, nowMs) => {+ const parsed = parseAnnouncementFeed(value, { nowMs });+ return parsed.ok ? { ok: true, value: parsed.feed, skipped: parsed.skipped } : parsed;+ },+ updatedAt: (feed) => feed.updatedAt,+ });}/** What a page is handed: nothing when switched off, else the cards whose time has not passed. */@@ -82,144 +51,11 @@ export class AnnouncementStore {return this.disabled ? [] : liveCards(this.current().cards, this.now);}- /** Skipped inside `ttlMs` of the last good fetch and for a while after a failed one, unless `force`. Concurrent calls- * share one request. Never throws. */- refresh(options: { force?: boolean; ttlMs?: number } = {}): Promise<AnnouncementFeed> {- if (this.disabled) return Promise.resolve(this.current());- this.inflight ??= this.fetchAndStore(Boolean(options.force), options.ttlMs ?? ANNOUNCEMENTS_TTL_MS).finally(() => {- this.inflight = undefined;- });- return this.inflight;- }-/** A page's ask: the cards now, after waiting a moment for a first download only when nothing was ever fetched. */async cardsForPage(firstWaitMs = ANNOUNCEMENTS_FIRST_WAIT_MS): Promise<AnnouncementCard[]> {- if (this.disabled) return [];- this.current();- const refreshing = this.refresh().catch(() => this.feed);- if (this.fetchedAtMs === null) {- let timer: ReturnType<typeof setTimeout> | undefined;- await Promise.race([refreshing, new Promise((resolve) => { timer = setTimeout(resolve, firstWaitMs); timer.unref?.(); })]);- clearTimeout(timer);- }+ await this.ready(firstWaitMs);return this.cards();}-- private get maxBytes(): number {- return this.options.maxBytes ?? ANNOUNCEMENTS_MAX_BYTES;- }-- private loadDiskCache(): void {- this.diskChecked = true;- try {- if (!existsSync(this.cachePath) || statSync(this.cachePath).size > this.maxBytes * 2) return;- const raw = JSON.parse(readFileSync(this.cachePath, "utf8")) as { fetchedAtMs?: unknown; feed?: unknown };- const parsed = parseAnnouncementFeed(raw.feed, { nowMs: this.now });- if (!parsed.ok) {- this.log(`ignoring the cached copy (${parsed.error})`);- return;- }- if (updatedAtMs(this.feed) > updatedAtMs(parsed.feed)) return;- this.feed = parsed.feed;- this.fetchedAtMs = typeof raw.fetchedAtMs === "number" && Number.isFinite(raw.fetchedAtMs) ? raw.fetchedAtMs : null;- } catch (error) {- this.log(`could not read the cached copy (${message(error)})`);- }- }-- private async fetchAndStore(force: boolean, ttlMs: number): Promise<AnnouncementFeed> {- this.current();- const now = this.now;- // Expire timestamps from the future after a clock rollback; the cache crosses restarts, so no monotonic clock.- const within = (sinceMs: number | null, windowMs: number) => sinceMs !== null && now >= sinceMs && now - sinceMs < windowMs;- if (!force && within(this.fetchedAtMs, ttlMs)) return this.feed;- if (!force && within(this.lastAttemptMs, ANNOUNCEMENTS_RETRY_MS)) return this.feed;- this.lastAttemptMs = now;-- let fetched: AnnouncementFeed;- try {- const result = await this.download();- fetched = result.feed;- for (const skipped of result.skipped) this.log(`skipping ${skipped}`);- } catch (error) {- this.log(`could not refresh the announcements (${message(error)}); keeping the current copy`);- return this.feed;- }- // A stale CDN copy loses to what we already have, so it cannot bring back a card a newer copy removed.- if (updatedAtMs(fetched) < updatedAtMs(this.feed)) {- this.log(`ignoring a downloaded copy older than the current one (${fetched.updatedAt})`);- return this.feed;- }- this.feed = fetched;- this.fetchedAtMs = now;- this.lastAttemptMs = null;- try {- mkdirSync(dirname(this.cachePath), { recursive: true });- writeFileAtomic(this.cachePath, JSON.stringify({ fetchedAtMs: now, feed: fetched }));- } catch (error) {- this.log(`could not save the downloaded announcements (${message(error)})`);- }- return this.feed;- }-- private async download(): Promise<{ feed: AnnouncementFeed; skipped: string[] }> {- const controller = new AbortController();- const timer = setTimeout(() => controller.abort(), this.options.timeoutMs ?? ANNOUNCEMENTS_FETCH_TIMEOUT_MS);- try {- const response = await (this.options.fetch ?? fetch)(ANNOUNCEMENTS_URL, {- headers: { accept: "application/json", "user-agent": "OpenMausBot" },- // Nothing of the person's goes with it.- credentials: "omit",- referrerPolicy: "no-referrer",- // raw.githubusercontent.com answers directly; anywhere else is not the file we meant to read.- redirect: "error",- signal: controller.signal,- });- if (response.status !== 200) {- void response.body?.cancel().catch(() => {});- throw new Error(`HTTP ${response.status}`);- }- const declared = Number(response.headers.get("content-length"));- if (Number.isFinite(declared) && declared > this.maxBytes) {- void response.body?.cancel().catch(() => {});- throw new Error(`larger than ${this.maxBytes} bytes`);- }- const text = await readCapped(response, this.maxBytes);- let json: unknown;- try { json = JSON.parse(text); } catch { throw new Error("not valid JSON"); }- const parsed = parseAnnouncementFeed(json, { nowMs: this.now });- if (!parsed.ok) throw new Error(parsed.error);- return { feed: parsed.feed, skipped: parsed.skipped };- } catch (error) {- if (controller.signal.aborted) throw new Error("it did not answer in time");- throw error;- } finally {- clearTimeout(timer);- }- }-}--async function readCapped(response: Response, maxBytes: number): Promise<string> {- if (!response.body) return "";- const reader = response.body.getReader();- const decoder = new TextDecoder();- let total = 0;- let text = "";- for (;;) {- const { done, value } = await reader.read();- if (done) break;- total += value.byteLength;- if (total > maxBytes) {- await reader.cancel().catch(() => {});- throw new Error(`larger than ${maxBytes} bytes`);- }- text += decoder.decode(value, { stream: true });- }- return text + decoder.decode();-}--function message(error: unknown): string {- return error instanceof Error ? error.message : String(error);}let store: AnnouncementStore | undefined;diff --git a/server/announcements/release-notes.test.ts b/server/announcements/release-notes.test.tsnew file mode 100644index 0000000000..be02254592--- /dev/null+++ b/server/announcements/release-notes.test.ts@@ -0,0 +1,69 @@+import { existsSync, mkdtempSync, rmSync } from "node:fs";+import { tmpdir } from "node:os";+import { join } from "node:path";+import { afterEach, describe, expect, it, vi } from "vitest";++import { compareVersions } from "../../shared/announcements.ts";+import { RELEASES_URL, type ReleaseFeed } from "../../shared/release-notes.ts";+import { ANNOUNCEMENTS_DISABLE_ENV } from "./remote-file.ts";+import { BUNDLED_RELEASES, ReleaseNotesStore, releasesCachePath, RELEASES_MAX_BYTES } from "./release-notes.ts";++const NOW = Date.parse("2026-12-01T10:00:00Z");+const scratch: string[] = [];+afterEach(() => { for (const dir of scratch.splice(0)) rmSync(dir, { recursive: true, force: true }); });++const dataDir = () => { const dir = mkdtempSync(join(tmpdir(), "omb-release-notes-")); scratch.push(dir); return dir; };+const release = (version: string, items: string[] = ["**Faster.** Much."]) => ({ version, date: "2026-11-30T00:00:00Z", sections: [{ title: "Fixes", items }] });+const feed = (updatedAt: string, releases: unknown[]) => ({ version: 1, updatedAt, releases }) as ReleaseFeed;+const answer = (body: unknown, init: ResponseInit = { status: 200 }) => new Response(typeof body === "string" ? body : JSON.stringify(body), init);++function subject(options: { fetch?: typeof fetch; dir?: string; env?: NodeJS.ProcessEnv } = {}) {+ const log = vi.fn();+ const store = new ReleaseNotesStore({ dataDir: options.dir ?? dataDir(), bundled: feed("2026-11-01T00:00:00Z", [release("0.1.1")]), now: () => NOW, log, env: options.env ?? {}, fetch: options.fetch });+ return { store, log };+}++it("bundles the repository's file: newest first, at most twenty, and well under the size an install reads", () => {+ expect(BUNDLED_RELEASES.releases.length).toBeGreaterThan(0);+ expect(BUNDLED_RELEASES.releases.length).toBeLessThanOrEqual(20);+ const versions = BUNDLED_RELEASES.releases.map((entry) => entry.version);+ expect([...versions].sort((a, b) => compareVersions(b, a) ?? 0)).toEqual(versions);+ expect(Buffer.byteLength(JSON.stringify(BUNDLED_RELEASES))).toBeLessThan(RELEASES_MAX_BYTES);+});++describe("the release notes store", () => {+ it("downloads main's raw file with the announcements' plain GET, caches it, and a later start reads the cache", async () => {+ const fetchMock = vi.fn(async (..._args: Parameters<typeof fetch>) => answer(feed("2026-12-01T09:00:00Z", [release("0.1.2"), release("0.1.1")])));+ const dir = dataDir();+ const { store } = subject({ fetch: fetchMock as unknown as typeof fetch, dir });+ await store.ready();+ expect(store.releases().map((entry) => entry.version)).toEqual(["0.1.2", "0.1.1"]);+ const [url, init] = fetchMock.mock.calls[0]!;+ expect(url).toBe(RELEASES_URL);+ expect(init).toMatchObject({ credentials: "omit", referrerPolicy: "no-referrer", redirect: "error" });+ expect(existsSync(releasesCachePath(dir))).toBe(true);+ expect(subject({ dir, fetch: vi.fn() }).store.releases().map((entry) => entry.version)).toEqual(["0.1.2", "0.1.1"]);+ });++ it("skips a release with markup in a line, and keeps the last good copy when the download is too large or not the file", async () => {+ const hostile = subject({ fetch: vi.fn(async () => answer(feed("2026-12-01T09:00:00Z", [release("0.1.9", ["<img src=x onerror=alert(1)>"]), release("0.1.8")]))) as unknown as typeof fetch });+ await hostile.store.ready();+ expect(hostile.store.releases().map((entry) => entry.version)).toEqual(["0.1.8"]);+ expect(hostile.log).toHaveBeenCalledWith(expect.stringMatching(/skipping releases\.0/));+ for (const bad of [async () => answer("x".repeat(RELEASES_MAX_BYTES + 1)), async () => answer({ version: 1, updatedAt: "2026-12-01T09:00:00Z", cards: [] })]) {+ const { store, log } = subject({ fetch: vi.fn(bad) as unknown as typeof fetch });+ await store.ready();+ expect(store.releases().map((entry) => entry.version)).toEqual(["0.1.1"]);+ expect(log).toHaveBeenCalledWith(expect.stringMatching(/keeping the current copy/));+ }+ });++ it("shows nothing and never downloads while announcements are switched off", async () => {+ const fetchMock = vi.fn();+ const { store } = subject({ fetch: fetchMock, env: { [ANNOUNCEMENTS_DISABLE_ENV]: "1" } });+ await store.ready();+ await store.refresh({ force: true });+ expect(store.releases()).toEqual([]);+ expect(fetchMock).not.toHaveBeenCalled();+ });+});diff --git a/server/announcements/release-notes.ts b/server/announcements/release-notes.tsnew file mode 100644index 0000000000..9f1dee4e86--- /dev/null+++ b/server/announcements/release-notes.ts@@ -0,0 +1,51 @@+// What each release brought: announcements/releases.json on main, kept by the shared remote-file store (remote-file.ts)+// beside the announcement cards, and handed to pages with them at GET /api/announcements.+import { join } from "node:path";++import bundledReleasesJson from "../../announcements/releases.json" with { type: "json" };+import { parseReleaseFeed, RELEASES_URL, type ReleaseEntry, type ReleaseFeed } from "../../shared/release-notes.ts";+import { DATA_DIR } from "../config.ts";+import { RemoteJsonFile, type RemoteFileOptions } from "./remote-file.ts";++/** Twenty releases' notes come to about 60 KB. */+export const RELEASES_MAX_BYTES = 128 * 1024;++const parsedBundle = parseReleaseFeed(bundledReleasesJson, { strict: true, nowMs: Number.MAX_SAFE_INTEGER / 2 });+if (!parsedBundle.ok) throw new Error(`The bundled release notes are invalid (${parsedBundle.error})`);+export const BUNDLED_RELEASES: ReleaseFeed = parsedBundle.feed;++export function releasesCachePath(dataDir: string): string {+ return join(dataDir, "providers", "announcements", "releases.json");+}++export interface ReleaseNotesStoreOptions extends RemoteFileOptions {+ bundled?: ReleaseFeed;+}++export class ReleaseNotesStore extends RemoteJsonFile<ReleaseFeed> {+ constructor(options: ReleaseNotesStoreOptions) {+ super(options, {+ name: "release notes",+ url: RELEASES_URL,+ cachePath: releasesCachePath(options.dataDir),+ bundled: options.bundled ?? BUNDLED_RELEASES,+ maxBytes: RELEASES_MAX_BYTES,+ parse: (value, nowMs) => {+ const parsed = parseReleaseFeed(value, { nowMs });+ return parsed.ok ? { ok: true, value: parsed.feed, skipped: parsed.skipped } : parsed;+ },+ updatedAt: (feed) => feed.updatedAt,+ });+ }++ /** Newest first; nothing when switched off. */+ releases(): ReleaseEntry[] {+ return this.disabled ? [] : this.current().releases;+ }+}++let store: ReleaseNotesStore | undefined;++export function releaseNotesStore(): ReleaseNotesStore {+ return store ??= new ReleaseNotesStore({ dataDir: DATA_DIR });+}diff --git a/server/announcements/remote-file.ts b/server/announcements/remote-file.tsnew file mode 100644index 0000000000..02e05e586e--- /dev/null+++ b/server/announcements/remote-file.ts@@ -0,0 +1,219 @@+// A small JSON file the project publishes on main, kept the way the model manifest (server/model-manifest/manifest.ts)+// keeps its list: a copy bundled with this release, a disk cache of the last good download, and a download from main on+// raw.githubusercontent.com. The announcement cards (feed.ts) and the release notes (release-notes.ts) both use it.+// It never runs on a timer of its own: a page asks at launch and about hourly (src/lib/announcements.ts), and that ask+// refreshes the copy here when it is an hour old, so a server nobody opens never downloads it. The request is a plain+// anonymous GET: no cookie, no id, no version.+import { existsSync, mkdirSync, readFileSync, statSync } from "node:fs";+import { dirname } from "node:path";++import { writeFileAtomic } from "../atomic.ts";++/** "1" stops the download and everything these files show on this server's pages, the bundled copies included. */+export const ANNOUNCEMENTS_DISABLE_ENV = "OMB_DISABLE_ANNOUNCEMENTS";+export const REMOTE_FILE_TTL_MS = 60 * 60 * 1000;+/** Back off failed fetches, so an offline computer does not try on every page load. */+export const REMOTE_FILE_RETRY_MS = 5 * 60 * 1000;+export const REMOTE_FILE_FETCH_TIMEOUT_MS = 10_000;+/** How long a page's ask waits for a first download when there is no copy on disk yet; after that it gets what is here. */+export const REMOTE_FILE_FIRST_WAIT_MS = 3_000;++export type RemoteParse<T> = (value: unknown, nowMs: number) => { ok: true; value: T; skipped: string[] } | { ok: false; error: string };++export interface RemoteFileOptions {+ dataDir: string;+ env?: NodeJS.ProcessEnv;+ fetch?: typeof fetch;+ now?: () => number;+ timeoutMs?: number;+ maxBytes?: number;+ log?: (message: string) => void;+}++export interface RemoteFileSpec<T> {+ /** For the log: `[name] ...`. */+ name: string;+ url: string;+ cachePath: string;+ bundled: T;+ maxBytes: number;+ parse: RemoteParse<T>;+ /** The file's own `updatedAt`: an older copy never replaces a newer one. */+ updatedAt: (value: T) => string;+}++export class RemoteJsonFile<T> {+ private readonly options: RemoteFileOptions;+ private readonly spec: RemoteFileSpec<T>;+ private value: T;+ private fetchedAtMs: number | null = null;+ private lastAttemptMs: number | null = null;+ private diskChecked = false;+ private inflight: Promise<T> | undefined;++ constructor(options: RemoteFileOptions, spec: RemoteFileSpec<T>) {+ this.options = options;+ this.spec = spec;+ this.value = spec.bundled;+ }++ protected get now(): number {+ return (this.options.now ?? Date.now)();+ }++ private log(text: string): void {+ (this.options.log ?? ((line: string) => console.warn(line)))(`[${this.spec.name}] ${text}`);+ }++ get disabled(): boolean {+ return (this.options.env ?? process.env)[ANNOUNCEMENTS_DISABLE_ENV] === "1";+ }++ /** The newest usable copy. Reads the disk cache once and never waits on the network. */+ current(): T {+ if (!this.diskChecked) this.loadDiskCache();+ return this.value;+ }++ /** Skipped inside `ttlMs` of the last good fetch and for a while after a failed one, unless `force`. Concurrent calls+ * share one request. Never throws. */+ refresh(options: { force?: boolean; ttlMs?: number } = {}): Promise<T> {+ if (this.disabled) return Promise.resolve(this.current());+ this.inflight ??= this.fetchAndStore(Boolean(options.force), options.ttlMs ?? REMOTE_FILE_TTL_MS).finally(() => {+ this.inflight = undefined;+ });+ return this.inflight;+ }++ /** A page's ask: refreshes in the background, waiting a moment for a first download only when nothing was ever fetched. */+ async ready(firstWaitMs = REMOTE_FILE_FIRST_WAIT_MS): Promise<void> {+ if (this.disabled) return;+ this.current();+ const refreshing = this.refresh().catch(() => this.value);+ if (this.fetchedAtMs !== null) return;+ let timer: ReturnType<typeof setTimeout> | undefined;+ await Promise.race([refreshing, new Promise((resolve) => { timer = setTimeout(resolve, firstWaitMs); timer.unref?.(); })]);+ clearTimeout(timer);+ }++ private get maxBytes(): number {+ return this.options.maxBytes ?? this.spec.maxBytes;+ }++ private updatedAtMs(value: T): number {+ return Date.parse(this.spec.updatedAt(value));+ }++ private loadDiskCache(): void {+ this.diskChecked = true;+ const path = this.spec.cachePath;+ try {+ if (!existsSync(path) || statSync(path).size > this.maxBytes * 2) return;+ const raw = JSON.parse(readFileSync(path, "utf8")) as { fetchedAtMs?: unknown; feed?: unknown };+ const parsed = this.spec.parse(raw.feed, this.now);+ if (!parsed.ok) {+ this.log(`ignoring the cached copy (${parsed.error})`);+ return;+ }+ if (this.updatedAtMs(this.value) > this.updatedAtMs(parsed.value)) return;+ this.value = parsed.value;+ this.fetchedAtMs = typeof raw.fetchedAtMs === "number" && Number.isFinite(raw.fetchedAtMs) ? raw.fetchedAtMs : null;+ } catch (error) {+ this.log(`could not read the cached copy (${message(error)})`);+ }+ }++ private async fetchAndStore(force: boolean, ttlMs: number): Promise<T> {+ this.current();+ const now = this.now;+ // Expire timestamps from the future after a clock rollback; the cache crosses restarts, so no monotonic clock.+ const within = (sinceMs: number | null, windowMs: number) => sinceMs !== null && now >= sinceMs && now - sinceMs < windowMs;+ if (!force && within(this.fetchedAtMs, ttlMs)) return this.value;+ if (!force && within(this.lastAttemptMs, REMOTE_FILE_RETRY_MS)) return this.value;+ this.lastAttemptMs = now;++ let fetched: T;+ try {+ const result = await this.download();+ fetched = result.value;+ for (const skipped of result.skipped) this.log(`skipping ${skipped}`);+ } catch (error) {+ this.log(`could not refresh the ${this.spec.name} (${message(error)}); keeping the current copy`);+ return this.value;+ }+ // A stale CDN copy loses to what we already have, so it cannot bring back an entry a newer copy removed.+ if (this.updatedAtMs(fetched) < this.updatedAtMs(this.value)) {+ this.log(`ignoring a downloaded copy older than the current one (${this.spec.updatedAt(fetched)})`);+ return this.value;+ }+ this.value = fetched;+ this.fetchedAtMs = now;+ this.lastAttemptMs = null;+ try {+ mkdirSync(dirname(this.spec.cachePath), { recursive: true });+ writeFileAtomic(this.spec.cachePath, JSON.stringify({ fetchedAtMs: now, feed: fetched }));+ } catch (error) {+ this.log(`could not save the downloaded ${this.spec.name} (${message(error)})`);+ }+ return this.value;+ }++ private async download(): Promise<{ value: T; skipped: string[] }> {+ const controller = new AbortController();+ const timer = setTimeout(() => controller.abort(), this.options.timeoutMs ?? REMOTE_FILE_FETCH_TIMEOUT_MS);+ try {+ const response = await (this.options.fetch ?? fetch)(this.spec.url, {+ headers: { accept: "application/json", "user-agent": "OpenMausBot" },+ // Nothing of the person's goes with it.+ credentials: "omit",+ referrerPolicy: "no-referrer",+ // raw.githubusercontent.com answers directly; anywhere else is not the file we meant to read.+ redirect: "error",+ signal: controller.signal,+ });+ if (response.status !== 200) {+ void response.body?.cancel().catch(() => {});+ throw new Error(`HTTP ${response.status}`);+ }+ const declared = Number(response.headers.get("content-length"));+ if (Number.isFinite(declared) && declared > this.maxBytes) {+ void response.body?.cancel().catch(() => {});+ throw new Error(`larger than ${this.maxBytes} bytes`);+ }+ const text = await readCapped(response, this.maxBytes);+ let json: unknown;+ try { json = JSON.parse(text); } catch { throw new Error("not valid JSON"); }+ const parsed = this.spec.parse(json, this.now);+ if (!parsed.ok) throw new Error(parsed.error);+ return { value: parsed.value, skipped: parsed.skipped };+ } catch (error) {+ if (controller.signal.aborted) throw new Error("it did not answer in time");+ throw error;+ } finally {+ clearTimeout(timer);+ }+ }+}++async function readCapped(response: Response, maxBytes: number): Promise<string> {+ if (!response.body) return "";+ const reader = response.body.getReader();+ const decoder = new TextDecoder();+ let total = 0;+ let text = "";+ for (;;) {+ const { done, value } = await reader.read();+ if (done) break;+ total += value.byteLength;+ if (total > maxBytes) {+ await reader.cancel().catch(() => {});+ throw new Error(`larger than ${maxBytes} bytes`);+ }+ text += decoder.decode(value, { stream: true });+ }+ return text + decoder.decode();+}++function message(error: unknown): string {+ return error instanceof Error ? error.message : String(error);+}diff --git a/server/routes/announcements.ts b/server/routes/announcements.tsindex 31acd59bf1..640d2be32a 100644--- a/server/routes/announcements.ts+++ b/server/routes/announcements.ts@@ -1,16 +1,19 @@import { announcementStore } from "../announcements/feed.ts";+import { releaseNotesStore } from "../announcements/release-notes.ts";import { PASS, type RouteHandler } from "./table.ts";export const ANNOUNCEMENTS_PATH = "/api/announcements";/** GET /api/announcements: the project's announcement cards whose time has not passed, and when their file last changed- * (`updatedAt`, the date Announcements gives a card without `starts`), for every signed-in page alike (request-auth.ts lets- * a Team Cloud's members read it). Each page decides for itself which card, if any, it shows. Asking refreshes this- * server's copy when it is an hour old; it never fails for want of the network. */+ * (`updatedAt`, the date Announcements gives a card without `starts`), with the notes of the latest releases+ * (`releases`, newest first), for every signed-in page alike (request-auth.ts lets a Team Cloud's members read it). Each+ * page decides for itself which card, if any, it shows. Asking refreshes this server's copies when they are an hour old;+ * it never fails for want of the network. */export const announcementRoutes: RouteHandler = async ({ res, path, method, json }) => {if (path !== ANNOUNCEMENTS_PATH) return PASS;if (method !== "GET") return json(res, 405, { error: "Use GET." });const store = announcementStore();- const cards = await store.cardsForPage();- return json(res, 200, store.disabled ? { cards, disabled: true } : { cards, updatedAt: store.current().updatedAt });+ const notes = releaseNotesStore();+ const [cards] = await Promise.all([store.cardsForPage(), notes.ready()]);+ return json(res, 200, store.disabled ? { cards, disabled: true } : { cards, updatedAt: store.current().updatedAt, releases: notes.releases() });};diff --git a/shared/release-notes.test.ts b/shared/release-notes.test.tsnew file mode 100644index 0000000000..9159ce6dae--- /dev/null+++ b/shared/release-notes.test.ts@@ -0,0 +1,151 @@+import { describe, expect, it } from "vitest";++import {+ cleanReleaseLine, DEFAULT_SECTION, MAX_RELEASES, parseRelease, parseReleaseFeed, releaseFromMarkdown, releaseLeads, releaseLineParts, type ReleaseEntry,+} from "./release-notes.ts";++const NOTES = `## What's new in 0.1.175++### A calmer look+- **A new conversation starts when you send.** New conversation, a bot's \`+\` and Cmd/Ctrl+Shift+N open a blank chat.+- **Mascots hold still at rest,** with eased blinks and hover gaze.++### Bots and AIs+- **Pi bots no longer read your own \`~/.pi\` instructions.** They share only your login.+- Faster settings saves (#6801) by @someone in https://github.com/milind-soni/OpenMausBot/pull/6801+- Thanks to @someone and @other for the fixes.++### Fixes+- Many smaller fixes, among them:+ - Japanese input underlines;+ - file names with \`#\` or \`%\`.+- Faster app start-up.++++**npm:** \`npx [email protected]\` · https://www.npmjs.com/package/openmausbot/v/0.1.175+`;++const entry = (sections: ReleaseEntry["sections"], version = "0.1.175"): ReleaseEntry => ({ version, date: "2026-11-21T05:17:00Z", sections });++describe("release notes Markdown to an entry", () => {+ it("keeps the sections and lines, folds nested lines into theirs, and leaves out credits and the npm line", () => {+ const release = releaseFromMarkdown(NOTES, { version: "0.1.175", date: "2026-11-21T05:17:00Z" });+ expect(release).toEqual(entry([+ { title: "A calmer look", items: [+ "**A new conversation starts when you send.** New conversation, a bot's `+` and Cmd/Ctrl+Shift+N open a blank chat.",+ "**Mascots hold still at rest,** with eased blinks and hover gaze.",+ ] },+ { title: "Bots and AIs", items: ["**Pi bots no longer read your own `~/.pi` instructions.** They share only your login."] },+ { title: "Fixes", items: ["Many smaller fixes, among them: Japanese input underlines; file names with `#` or `%`.", "Faster app start-up."] },+ ]));+ expect(parseRelease(release, { strict: true }).ok).toBe(true);+ });++ it("puts lines before any heading under a section of their own", () => {+ expect(releaseFromMarkdown("- One thing.\n- Another.", { version: "0.1.1", date: "2026-11-01T00:00:00Z" }).sections)+ .toEqual([{ title: DEFAULT_SECTION, items: ["One thing.", "Another."] }]);+ });++ it("drops HTML, links, pictures, script addresses and stray marks from hostile notes, and never lets markup through", () => {+ const hostile = [+ "### <img src=x onerror=alert(1)>Fixes",+ "- **Bold** and <script>alert(1)</script>plain <b>words</b>",+ "- [Click me](javascript:alert(1)) now",+ "- A JavaScript:alert(1) address and a jAvAsCrIpT : void(0) one",+ "-  A picture",+ "- See https://evil.example/x and data or <a href=\"https://evil.example\">this</a>",+ "- <scr<script>ipt>alert(1)</scr</script>ipt> nested",+ "- *single* _under_ ~~struck~~ **unpaired",+ "- `<script>` in code is only words",+ "- <iframe src=//evil.example></iframe>",+ ].join("\n");+ const release = releaseFromMarkdown(hostile, { version: "0.1.2", date: "2026-11-01T00:00:00Z" });+ expect(release.sections[0]!.title).toBe("Fixes");+ expect(release.sections[0]!.items).toEqual([+ "**Bold** and alert(1)plain words",+ "Click me now",+ "A address and a void(0) one",+ "A picture",+ "See and data or this",+ "alert(1) nested",+ "single under struck unpaired",+ "`<script>` in code is only words",+ ]);+ for (const item of release.sections[0]!.items) {+ const words = releaseLineParts(item).filter((part) => !part.code).map((part) => part.text).join("");+ expect(words).not.toMatch(/[<>]|javascript|:\/\//i);+ }+ expect(parseRelease(release, { strict: true }).ok).toBe(true);+ });++ it("replaces every control or direction character, not only the first", () => {+ expect(cleanReleaseLine("a\u202eb\u202ec\u200bd")).toBe("a b c d");+ });++ it("tidies spacing in the prose only, never inside code", () => {+ expect(cleanReleaseLine("Run `a b .c` now .")).toBe("Run `a b .c` now.");+ });++ it("each cleaned line is already clean", () => {+ for (const line of ["**A.** b `c` d", "Plain.", "x <b>y</b> [z](https://a.b)"]) expect(cleanReleaseLine(cleanReleaseLine(line))).toBe(cleanReleaseLine(line));+ });++ it("leads: the bold words a line opens with, else its first sentence, as plain sentences", () => {+ expect(releaseLeads(entry([{ title: "A", items: ["**Mascots hold still at rest,** with blinks.", "**Pi reads `~/.pi`** no more."] }]))).toEqual([+ "Mascots hold still at rest.", "Pi reads ~/.pi.",+ ]);+ expect(releaseLeads(entry([{ title: "A", items: ["Paste a link and a bot joins. It names itself.", "One."] }, { title: "B", items: ["Two!"] }]))).toEqual([+ "Paste a link and a bot joins.", "One.",+ ]);+ });+});++describe("drawing a line", () => {+ it("splits bold and code, code inside bold included, and leaves an unpaired mark as it is", () => {+ expect(releaseLineParts("**Pi reads `~/.pi`** no more, `x`.")).toEqual([+ { text: "Pi reads ", bold: true, code: false }, { text: "~/.pi", bold: true, code: true }, { text: " no more, ", bold: false, code: false },+ { text: "x", bold: false, code: true }, { text: ".", bold: false, code: false },+ ]);+ expect(releaseLineParts("2 ** 3 is `**` here")).toEqual([+ { text: "2 ** 3 is ", bold: false, code: false }, { text: "**", bold: false, code: true }, { text: " here", bold: false, code: false },+ ]);+ });+});++describe("the releases file", () => {+ const release = (version: string, extra: Record<string, unknown> = {}) => ({ ...entry([{ title: "Fixes", items: ["Faster."] }], version), ...extra });+ const feed = (releases: unknown[], extra: Record<string, unknown> = {}) => ({ version: 1, updatedAt: "2026-11-21T00:00:00Z", releases, ...extra });+ const NOW = Date.parse("2026-11-21T10:00:00Z");++ it("reads a sound file, newest first", () => {+ const parsed = parseReleaseFeed(feed([release("0.1.175"), release("0.1.173")]), { strict: true, nowMs: NOW });+ expect(parsed.ok && parsed.feed.releases.map((entry) => entry.version)).toEqual(["0.1.175", "0.1.173"]);+ });++ it("strictly, refuses a line with markup or a link, an unknown field, a repeat, the wrong order, and too many releases", () => {+ const refused = (value: unknown) => {+ const parsed = parseReleaseFeed(value, { strict: true, nowMs: NOW });+ return parsed.ok ? null : parsed.error;+ };+ expect(refused(feed([release("0.1.1", { sections: [{ title: "A", items: ["<b>x</b>"] }] })]))).toMatch(/tags/);+ expect(refused(feed([release("0.1.1", { sections: [{ title: "A", items: ["[x](https://a.b)"] }] })]))).toMatch(/links/);+ expect(refused(feed([release("0.1.1", { sections: [{ title: "A", items: ["see javascript:alert(1)"] }] })]))).toMatch(/links/);+ expect(refused(feed([release("0.1.1", { sections: [{ title: "A", items: ["xy"] }] })]))).toMatch(/control/);+ expect(refused(feed([release("0.1.1", { notes: "html" })]))).toMatch(/releases\.0/);+ expect(refused(feed([release("0.1.1"), release("0.1.1")]))).toMatch(/twice/);+ expect(refused(feed([release("0.1.1"), release("0.1.2")]))).toMatch(/newest first/);+ expect(refused(feed(Array.from({ length: MAX_RELEASES + 1 }, (_, index) => release(`0.1.${100 - index}`))))).toMatch(/releases/);+ expect(refused(feed([], { updatedAt: "2026-12-30T00:00:00Z" }))).toMatch(/future/);+ expect(refused({ version: 2, updatedAt: "2026-11-21T00:00:00Z", releases: [] })).toMatch(/version/);+ });++ it("leniently, as an install reads it, skips a bad release, keeps the rest in order and drops unknown fields", () => {+ const parsed = parseReleaseFeed(feed([release("0.1.1"), release("0.1.3", { sections: [] }), release("0.1.2", { extra: true })]), { nowMs: NOW });+ expect(parsed.ok).toBe(true);+ if (!parsed.ok) return;+ expect(parsed.feed.releases.map((entry) => entry.version)).toEqual(["0.1.2", "0.1.1"]);+ expect(parsed.feed.releases[0]).not.toHaveProperty("extra");+ expect(parsed.skipped).toEqual([expect.stringMatching(/^releases\.1/)]);+ });+});diff --git a/shared/release-notes.ts b/shared/release-notes.tsnew file mode 100644index 0000000000..0d5ad44e0f--- /dev/null+++ b/shared/release-notes.ts@@ -0,0 +1,281 @@+// What each app release brought, for the Announcements page: announcements/releases.json on main, delivered like the+// announcement cards (server/announcements/feed.ts). Each release is a version, a date and a few titled sections of+// short lines. A line is plain text with two marks only, **bold** and `code`; the app draws them itself, never as HTML,+// and a line with a tag, a link or an address in it is refused. scripts/release-notes-feed.mjs turns a release's+// Markdown notes into an entry with `releaseFromMarkdown`, which drops everything else.+import { z } from "zod";++import { compareVersions } from "./announcements.ts";++export const RELEASES_FILE = "announcements/releases.json";+export const RELEASES_SCHEMA_FILE = "announcements/releases.schema.json";+export const RELEASES_URL = `https://raw.githubusercontent.com/milind-soni/OpenMausBot/main/${RELEASES_FILE}`;++/** The file keeps the newest this many releases; an install reads at most this many. */+export const MAX_RELEASES = 20;+export const RELEASE_LIMITS = { sectionTitle: 60, item: 600, sections: 16, items: 40 } as const;+/** A section for lines the notes give before any heading. */+export const DEFAULT_SECTION = "Highlights";++const VERSION = /^\d{1,6}\.\d{1,6}\.\d{1,6}$/;+// Control characters, and the ones that reorder or hide text (bidi overrides and isolates, zero-width joiners).+// eslint-disable-next-line no-control-regex+const FORBIDDEN_CHARS = /[\u0000-\u001f\u007f-\u009f---]/u;+const FORBIDDEN_ALL = new RegExp(FORBIDDEN_CHARS.source, "gu");+const FUTURE_TOLERANCE_MS = 24 * 60 * 60 * 1000;++export interface ReleaseMark { text: string; bold: boolean; code: boolean }++/** Where a line's `code` runs are: [start, end] of each pair of backticks. */+function codeRuns(line: string): Array<[number, number]> {+ const runs: Array<[number, number]> = [];+ for (let at = line.indexOf("`"); at !== -1;) {+ const end = line.indexOf("`", at + 1);+ if (end === -1) break;+ if (end > at + 1) runs.push([at, end]);+ at = line.indexOf("`", end + 1);+ }+ return runs;+}++/** A line as the app draws it: runs of plain, **bold** and `code` text (code may sit inside bold). A mark without its+ * pair stays as the characters it is. */+export function releaseLineParts(line: string): ReleaseMark[] {+ const runs = codeRuns(line);+ const inCode = (at: number) => runs.some(([start, end]) => at >= start && at <= end);+ const toggles: number[] = [];+ for (let at = line.indexOf("**"); at !== -1; at = line.indexOf("**", at)) {+ if (inCode(at)) { at += 1; continue; }+ toggles.push(at);+ at += 2;+ }+ if (toggles.length % 2) toggles.pop();+ const parts: ReleaseMark[] = [];+ const push = (text: string, bold: boolean, code: boolean) => {+ if (!text) return;+ const last = parts[parts.length - 1];+ if (last && !code && !last.code && last.bold === bold) last.text += text;+ else parts.push({ text, bold, code });+ };+ let bold = false, plain = "";+ for (let at = 0; at < line.length;) {+ const run = runs.find(([start]) => start === at);+ if (run) {+ push(plain, bold, false); plain = "";+ push(line.slice(run[0] + 1, run[1]), bold, true);+ at = run[1] + 1;+ } else if (toggles.includes(at)) {+ push(plain, bold, false); plain = "";+ bold = !bold;+ at += 2;+ } else {+ plain += line[at];+ at += 1;+ }+ }+ push(plain, bold, false);+ return parts;+}++/** The words of a line without its marks. */+export const releaseLineText = (line: string) => releaseLineParts(line).map((part) => part.text).join("");++/** What makes a line unfit to show, outside its `code` runs: a tag, a link or a web address, a script address. */+function lineProblem(line: string): string | null {+ if (FORBIDDEN_CHARS.test(line)) return "control or direction characters";+ if (line.trim() !== line) return "leading or trailing spaces";+ const words = releaseLineParts(line).filter((part) => !part.code).map((part) => part.text).join(" ");+ if (/[<>]/.test(words)) return "no tags or angle brackets";+ if (/\]\(|:\/\/|\b(?:javascript|vbscript)\s*:/i.test(words)) return "no links or addresses";+ if (/!\[|\[[^\]]*\]\s*\(/.test(words)) return "no links or pictures";+ return null;+}++const line = (max: number) => z.string().min(1).max(max).superRefine((value, context) => {+ const problem = lineProblem(value);+ if (problem) context.addIssue({ code: "custom", message: problem });+});++type ObjectOf = typeof z.object;++function releaseSchema(strict: boolean) {+ const objectOf = strict ? (z.strictObject as unknown as ObjectOf) : z.object;+ return objectOf({+ version: z.string().regex(VERSION),+ date: z.iso.datetime({ offset: true }),+ sections: z.array(objectOf({+ title: line(RELEASE_LIMITS.sectionTitle),+ items: z.array(line(RELEASE_LIMITS.item)).min(1).max(RELEASE_LIMITS.items),+ })).min(1).max(RELEASE_LIMITS.sections),+ });+}++const strictRelease = releaseSchema(true);+const lenientRelease = releaseSchema(false);++export interface ReleaseSection { title: string; items: string[] }+export interface ReleaseEntry { version: string; date: string; sections: ReleaseSection[] }+export interface ReleaseFeed { version: 1; updatedAt: string; releases: ReleaseEntry[] }+export type ReleaseFeedResult = { ok: true; feed: ReleaseFeed; skipped: string[] } | { ok: false; error: string };++function outerSchema(strict: boolean, nowMs: number) {+ const objectOf = strict ? (z.strictObject as unknown as ObjectOf) : z.object;+ return objectOf({+ $schema: z.string().max(200).optional(),+ version: z.literal(1),+ updatedAt: z.iso.datetime({ offset: true }).refine((value) => Date.parse(value) <= nowMs + FUTURE_TOLERANCE_MS, "updatedAt is in the future"),+ releases: strict ? z.array(z.unknown()).max(MAX_RELEASES) : z.array(z.unknown()),+ });+}++/** For the JSON Schema beside the file (releases.schema.json), which editors read. CI keeps the two equal. */+export function releasesJsonSchema(): unknown {+ const feed = z.strictObject({+ $schema: z.string().max(200).optional(),+ version: z.literal(1),+ updatedAt: z.iso.datetime({ offset: true }),+ releases: z.array(strictRelease).max(MAX_RELEASES),+ });+ return z.toJSONSchema(feed, { target: "draft-2020-12", unrepresentable: "any" });+}++function issue(error: z.ZodError, where: string): string {+ const first = error.issues[0]!;+ return `${[where, ...first.path].filter((part) => part !== "").join(".")}: ${first.message}`;+}++export function parseRelease(value: unknown, options: { strict?: boolean } = {}): { ok: true; release: ReleaseEntry } | { ok: false; error: string } {+ const parsed = (options.strict ? strictRelease : lenientRelease).safeParse(value);+ if (!parsed.success) return { ok: false, error: issue(parsed.error, "release") };+ const { version, date, sections } = parsed.data;+ return { ok: true, release: { version, date, sections: sections.map(({ title, items }) => ({ title, items })) } };+}++/**+ * The whole file, as parseAnnouncementFeed reads the cards: a wrong outer shape refuses the file (the last good copy+ * stays); read leniently, a release that does not parse or repeats a version is skipped, and the newest MAX_RELEASES+ * are kept, newest first. `strict` (CI) refuses the file for any of those, and for releases out of order.+ */+export function parseReleaseFeed(value: unknown, options: { strict?: boolean; nowMs?: number } = {}): ReleaseFeedResult {+ const strict = options.strict === true;+ const outer = outerSchema(strict, options.nowMs ?? Date.now()).safeParse(value);+ if (!outer.success) return { ok: false, error: issue(outer.error, "") || "releases" };+ const releases: ReleaseEntry[] = [];+ const skipped: string[] = [];+ for (const [index, raw] of outer.data.releases.entries()) {+ const parsed = parseRelease(raw, { strict });+ const problem = !parsed.ok ? parsed.error+ : releases.some((entry) => entry.version === parsed.release.version) ? `release: ${parsed.release.version} is listed twice` : null;+ if (problem || !parsed.ok) {+ if (strict) return { ok: false, error: `releases.${index} ${problem}` };+ skipped.push(`releases.${index} ${problem}`);+ continue;+ }+ if (strict && releases.length && (compareVersions(parsed.release.version, releases[releases.length - 1]!.version) ?? 0) >= 0) {+ return { ok: false, error: `releases.${index} release: ${parsed.release.version} is not older than the one above it; newest first` };+ }+ releases.push(parsed.release);+ }+ releases.sort((a, b) => (compareVersions(b.version, a.version) ?? 0));+ return { ok: true, feed: { version: 1, updatedAt: outer.data.updatedAt, releases: releases.slice(0, MAX_RELEASES) }, skipped };+}++/** A release's first lines' leads, as plain sentences: the bold words a line opens with, else its first sentence. */+export function releaseLeads(release: Pick<ReleaseEntry, "sections">, count = 2): string[] {+ const leads: string[] = [];+ for (const item of release.sections.flatMap((section) => section.items)) {+ const bold = /^\*\*([^*]+?)\*\*/.exec(item)?.[1];+ let lead = (bold ?? /^(.+?[.!?])(\s|$)/.exec(releaseLineText(item))?.[1] ?? releaseLineText(item)).replace(/`/g, "").trim();+ lead = lead.replace(/[\s,;:–—-]+$/u, "");+ if (lead.length < 3) continue;+ if (!/[.!?…]$/.test(lead)) lead += ".";+ leads.push(lead);+ if (leads.length >= count) break;+ }+ return leads;+}++// ---- Markdown notes to an entry: what scripts/release-notes-feed.mjs writes, and the downloaded update's notes when the+// file does not list that version yet.++const HTML_TAG = /<\/?[a-zA-Z][^<>]*>/g;++/** One line made fit to show: tags, links, pictures, addresses and emphasis other than **bold** and `code` dropped;+ * marks that do not pair dropped. Code runs keep their text. */+export function cleanReleaseLine(raw: string): string {+ const codes: string[] = [];+ let text = raw.replace(FORBIDDEN_ALL, " ")+ // A code run keeps its words; anything else that looks like markup goes.+ .replace(/`([^`\n]+)`/g, (_, code: string) => `\u0000${codes.push(code.replace(/`/g, "")) - 1}\u0000`);+ let before: string;+ do {+ before = text;+ text = text.replace(HTML_TAG, "");+ } while (text !== before);+ text = text+ .replace(/!\[[^\]]*\]\((?:[^()]|\([^()]*\))*\)/g, "")+ .replace(/\[([^\]]*)\]\((?:[^()]|\([^()]*\))*\)/g, "$1")+ .replace(/\b(?:javascript|vbscript)\s*:\S*/gi, "")+ .replace(/\b[a-z][a-z0-9+.-]*:\/\/\S*/gi, "")+ .replace(/[<>]/g, "")+ .replace(/\[([^\]]*)\]/g, "$1")+ .replace(/~~(.+?)~~/g, "$1")+ .replace(/__(.+?)__/g, "$1")+ .replace(/(^|[^*\w])\*(?!\*)([^*\n]+?)\*(?!\*)/g, "$1$2")+ .replace(/(^|\W)_([^_\n]+?)_(?=\W|$)/g, "$1$2");+ if ((text.match(/\*\*/g)?.length ?? 0) % 2) text = text.replace(/\*\*/g, "");+ text = text.replace(/\*\*\s*\*\*/g, "").replace(/(?<!\*)\*(?!\*)/g, "");+ // Spacing is tidied in the prose only; a code run keeps its text as written.+ text = text.replace(/\s+/g, " ").replace(/\(\s*\)/g, "").replace(/\s+([.,;:!?])/g, "$1").trim();+ // eslint-disable-next-line no-control-regex+ text = text.replace(/\u0000(\d+)\u0000/g, (_, index: string) => `\`${codes[Number(index)]}\``);+ if (text.length > RELEASE_LIMITS.item) {+ const cut = text.slice(0, RELEASE_LIMITS.item - 1);+ const end = cut.search(/[.!?](?=[^.!?]*$)/);+ text = end > RELEASE_LIMITS.item / 2 ? cut.slice(0, end + 1) : `${cut.trimEnd()}…`;+ if ((text.match(/\*\*/g)?.length ?? 0) % 2) text = text.replace(/\*\*/g, "");+ if ((text.match(/`/g)?.length ?? 0) % 2) text = text.replace(/`/g, "");+ }+ return lineProblem(text) === null ? text : "";+}++/** Lines that name a pull request or a contributor's handle, which the page leaves out. */+function credits(line: string): boolean {+ const words = line.replace(/`[^`]*`/g, "");+ return /(^|[\s(])#\d{2,}\b|\/pull\/\d+|\bby @[\w-]+|\bthanks?\b[^.]*@[\w-]+|@[\w-]+ (?:in|via) [#h]|\bcontributors?:\s*@/i.test(words);+}++/** Release notes as written (`### Section` headings, `- ` lines, nested ` - ` lines folded into theirs) to an entry. */+export function releaseFromMarkdown(markdown: string, { version, date }: { version: string; date: string }): ReleaseEntry {+ const sections: ReleaseSection[] = [];+ let section: ReleaseSection | null = null;+ let item: { parts: string[] } | null = null;+ const items: Array<{ section: ReleaseSection; parts: string[] }> = [];+ for (const raw of markdown.replace(/\r\n?/g, "\n").split("\n")) {+ const heading = /^#{3,6}\s+(.*)$/.exec(raw);+ if (heading) {+ section = { title: cleanReleaseLine(heading[1]!).replace(/\*\*|`/g, "").slice(0, RELEASE_LIMITS.sectionTitle).trim(), items: [] };+ sections.push(section);+ item = null;+ continue;+ }+ if (/^#{1,2}\s/.test(raw)) { item = null; continue; }+ const bullet = /^(\s*)[-*+]\s+(.*)$/.exec(raw);+ if (bullet) {+ if (bullet[1]!.length >= 2 && item) { item.parts.push(bullet[2]!); continue; }+ if (!section) { section = { title: DEFAULT_SECTION, items: [] }; sections.push(section); }+ item = { parts: [bullet[2]!] };+ items.push({ section, parts: item.parts });+ continue;+ }+ if (raw.trim() && /^\s/.test(raw) && item) item.parts.push(raw.trim());+ else item = null;+ }+ for (const { section: owner, parts } of items) {+ if (parts.some(credits)) continue;+ const text = cleanReleaseLine(parts.join(" "));+ if (text.length >= 3 && owner.items.length < RELEASE_LIMITS.items) owner.items.push(text);+ }+ const kept = sections.filter((entry) => entry.title && entry.items.length).slice(0, RELEASE_LIMITS.sections);+ return { version, date, sections: kept.length ? kept : [] };+}diff --git a/src/components/announcements/AnnouncementsPage.test.ts b/src/components/announcements/AnnouncementsPage.test.tsindex e5e1c21aa7..2ec1cec0c8 100644--- a/src/components/announcements/AnnouncementsPage.test.ts+++ b/src/components/announcements/AnnouncementsPage.test.ts@@ -6,6 +6,8 @@ import { announcementHistory, type HistoryFacts } from "@/lib/announcement-histoimport { setLocale } from "@/lib/i18n";import { TEAMS_NOTICE } from "@/lib/notices";import type { AnnouncementCard } from "../../../shared/announcements";+import type { ReleaseEntry } from "../../../shared/release-notes";+import type { UpdaterState } from "@/lib/updater";import type { Announcements } from "./use-announcements";const f = vi.hoisted(() => ({ found: null as unknown as Announcements, dispatch: vi.fn(), state: { config: {} as Record<string, unknown> }, remembered: vi.fn() }));@@ -27,7 +29,7 @@ const card: AnnouncementCard = { id: "phone-app-2026-11", kind: "product", titleconst markRead = vi.fn();const found = (facts: HistoryFacts, extra: Partial<Announcements> = {}): Announcements => ({items: announcementHistory({ facts, cards: [card], feedUpdatedAt: null, now: NOW }), unread: false, markRead,- person: { record: undefined, desktopSeen: [] }, writer: { team: false, saved: vi.fn() }, viewer: { hosted: false, canSave: true }, account: null, cloudBridge: false, ...extra,+ person: { record: undefined, desktopSeen: [] }, writer: { team: false, saved: vi.fn() }, viewer: { hosted: false, canSave: true }, account: null, cloudBridge: false, branded: false, ...extra,});let host: HTMLDivElement, root: Root | null = null;@@ -44,7 +46,7 @@ beforeEach(() => {host = document.createElement("div"); document.body.append(host);vi.stubGlobal("open", vi.fn());});-afterEach(async () => { await act(async () => root?.unmount()); root = null; host.remove(); vi.unstubAllGlobals(); });+afterEach(async () => { await act(async () => root?.unmount()); root = null; host.remove(); vi.unstubAllGlobals(); delete (window as { ogb?: unknown }).ogb; });describe("Announcements", () => {it("lists everything announced here, newest first, each with its date, words and buttons; an offer that ended says so", async () => {@@ -126,4 +128,84 @@ describe("Announcements", () => {expect(rows()[0]!.textContent).toContain("MausBot no seu celular");expect(document.querySelector("h1")?.textContent).toBe("Anúncios");});++ describe("what each release brought", () => {+ const release = (version: string, date: string, items: string[] = ["**Faster start.** The app opens sooner.", "**Calmer sidebar,** with quieter rows.", "Third."]): ReleaseEntry =>+ ({ version, date, sections: [{ title: "Speed", items: items.slice(0, 2) }, { title: "Fixes", items: items.slice(2) }].filter(section => section.items.length) });+ const releases = [release("0.1.175", "2026-11-21T05:17:00Z"), release("0.1.173", "2026-11-19T23:52:37Z")];+ const install = vi.fn(async () => {});+ const desktopApp = (state: Partial<UpdaterState> | null) => {+ (window as { ogb?: unknown }).ogb = { app: { version: "0.1.173" }, updater: { onState: (listener: (next: UpdaterState) => void) => { if (state) listener(state as UpdaterState); return () => {}; }, install } };+ };+ const withReleases = (facts = browser, list = releases) => found(facts, { items: announcementHistory({ facts, cards: [card], feedUpdatedAt: null, now: NOW, releases: list }) });+ const row = (version: string) => document.querySelector<HTMLElement>(`[data-release="${version}"]`)!;++ it("one row per release in the same newest-first list: its date, What's new in its version, its first two leads; See all changes opens the rest", async () => {+ desktopApp({ status: "idle" });+ f.found = withReleases();+ await open();+ expect(rows().map(each => each.dataset.announcementItem).slice(0, 4)).toEqual(["release-0.1.175", card.id, "release-0.1.173", TEAMS_NOTICE]);+ const latest = row("0.1.175");+ expect(latest.querySelector("time")?.textContent).toBe("Nov 21, 2026");+ expect(latest.textContent).toContain("What's new in 0.1.175");+ expect(latest.textContent).toContain("Faster start. Calmer sidebar.");+ expect(latest.querySelector("[data-release-notes]")).toBeNull();+ expect(latest.querySelector("[data-release-restart]"), "nothing downloaded").toBeNull();+ const toggle = [...latest.querySelectorAll("button")].find(button => button.textContent === "See all changes")!;+ expect(toggle.getAttribute("aria-expanded")).toBe("false");+ await click(toggle);+ const notes = latest.querySelector("[data-release-notes]")!;+ expect(toggle.getAttribute("aria-expanded")).toBe("true");+ expect(toggle.textContent).toBe("Hide changes");+ expect([...notes.querySelectorAll("h3")].map(heading => heading.textContent)).toEqual(["Speed", "Fixes"]);+ expect(notes.querySelector("li strong")?.textContent).toBe("Faster start.");+ expect(notes.querySelectorAll("li")).toHaveLength(3);+ expect(row("0.1.173").querySelector("[data-release-current]")?.textContent, "the version running here").toBe("You're on this version");+ expect(latest.querySelector("[data-release-current]")).toBeNull();+ });++ it("draws bold and code only: markup in a line stays words", async () => {+ desktopApp(null);+ f.found = withReleases(browser, [release("0.1.175", "2026-11-21T05:17:00Z", ["**Bold** `<img src=x onerror=alert(1)>` text"])]);+ await open();+ await click([...row("0.1.175").querySelectorAll("button")].find(button => button.textContent === "See all changes"));+ const line = row("0.1.175").querySelector("[data-release-notes] li")!;+ expect(line.querySelector("img")).toBeNull();+ expect(line.querySelector("code")?.textContent).toBe("<img src=x onerror=alert(1)>");+ expect(line.textContent).toBe("Bold <img src=x onerror=alert(1)> text");+ });++ it("Restart to update shows only on a downloaded update's row, and restarts as the update card does", async () => {+ desktopApp({ status: "downloading", version: "0.1.175", percent: 40 });+ f.found = withReleases();+ await open();+ expect(document.querySelector("[data-release-restart]")).toBeNull();+ await act(async () => root?.unmount()); root = null;+ desktopApp({ status: "downloaded", version: "0.1.175" });+ await open();+ const restart = row("0.1.175").querySelector<HTMLButtonElement>("[data-release-restart]")!;+ expect(restart.textContent).toBe("Restart to update");+ expect(document.querySelectorAll("[data-release-restart]")).toHaveLength(1);+ await click(restart);+ expect(install).toHaveBeenCalledTimes(1);+ expect(restart.disabled).toBe(true);+ });++ it("a downloaded update the list does not have yet gets a row on top from its own notes", async () => {+ desktopApp({ status: "downloaded", version: "v0.1.176", releaseNotes: "<h3>Chat</h3><ul><li><strong>Replies stream sooner.</strong> Yes.</li></ul>" });+ f.found = withReleases();+ await open();+ expect(rows()[0]!.dataset.announcementItem).toBe("release-0.1.176");+ expect(rows()[0]!.textContent).toContain("What's new in 0.1.176");+ expect(rows()[0]!.textContent).toContain("Replies stream sooner.");+ expect(rows()[0]!.querySelector("[data-release-restart]")).not.toBeNull();+ });++ it("a branded build shows no releases, not even a downloaded update", async () => {+ desktopApp({ status: "downloaded", version: "0.1.176" });+ f.found = { ...withReleases({ ...browser, branded: true }), branded: true };+ await open();+ expect(document.querySelector("[data-release]")).toBeNull();+ });+ });});diff --git a/src/components/announcements/AnnouncementsPage.tsx b/src/components/announcements/AnnouncementsPage.tsxindex a2adf0cfde..94843956a9 100644--- a/src/components/announcements/AnnouncementsPage.tsx+++ b/src/components/announcements/AnnouncementsPage.tsx@@ -1,11 +1,13 @@import { useEffect, useRef, useState, type ComponentType, type ReactNode } from "react";import { Cloud, Gift, Megaphone, Rocket, UsersRound } from "lucide-react";import type { CloudOffer } from "../../../electron/cloud-home.mjs";-import { itemSeen, rememberNoticeSeen, type HistoryAction, type HistoryItem, type HistoryMark, type HistoryModal } from "@/lib/announcement-history";+import { itemSeen, rememberNoticeSeen, withDownloadedUpdate, type HistoryAction, type HistoryItem, type HistoryMark, type HistoryModal } from "@/lib/announcement-history";+import { appVersion, desktopAppVersion } from "@/lib/app-links";import { openEmailDraft, openExternalLink } from "@/lib/app-links";import { cn } from "@/lib/cn";import { activeLocale, t } from "@/lib/i18n";import { reportTeams, teamsAction } from "@/lib/teams-whats-new";+import { installUpdate, useUpdaterState } from "@/lib/updater";import { reportWhatsNew, WHATS_NEW_SOURCES, whatsNewView, type WhatsNewView } from "@/lib/whats-new";import { useStore } from "@/state/store";import { localized, type AnnouncementAction, type AnnouncementPlace } from "../../../shared/announcements";@@ -18,12 +20,13 @@ import { ModelgoMark, type IconProps } from "../ProviderIcons";import { TOOL_PAGE_TITLE, ToolPage, ToolPageHeader } from "../ToolPageShell";import { TeamsPopup } from "../whats-new/TeamsPopup";import { WhatsNewPopup } from "../whats-new/WhatsNewPopup";+import { BODY_TEXT, CHIP, DATE_TEXT, downloadedUpdate, MARK_TILE, QUIET_BUTTON, ReleaseRow, TITLE_TEXT, type ReleaseContext } from "./ReleaseRow";import { useAnnouncements, type Announcements } from "./use-announcements";const BUILT_IN_MARK: Record<HistoryMark, ComponentType<IconProps>> = {teams: UsersRound, cloud: Cloud, boat: Gift, modelgo: ModelgoMark, grok: GrokBotMark, "product-hunt": Rocket,};-const QUIET_BUTTON = "ui-button min-h-9 gap-1.5 px-3 py-1.5";+type NoticeItem = Exclude<HistoryItem, { source: "release" }>;/** A button that opens what an announcement's own notice opens, never anything else. */export interface AnnouncementRun {@@ -46,21 +49,21 @@ const dateText = (at: number, locale: string) => {try { return new Intl.DateTimeFormat(locale, { dateStyle: "medium", timeZone: "UTC" }).format(at); } catch { return new Date(at).toISOString().slice(0, 10); }};-function Mark({ item }: { item: HistoryItem }) {+function Mark({ item }: { item: NoticeItem }) {const Icon = item.source === "built-in" ? BUILT_IN_MARK[item.entry.mark] : item.card.image && "mark" in item.card.image ? MARK[item.card.image.mark] : KIND_ICON[item.card.kind];- return <span aria-hidden="true" className="flex size-9 shrink-0 items-center justify-center rounded-xl bg-ink/[0.05] text-ink-secondary"><Icon size={18} /></span>;+ return <span aria-hidden="true" className={MARK_TILE}><Icon size={18} /></span>;}/** One announcement: its date, mark, title and line or two, and its own buttons; a popup's row opens the popup again. */function Row({ item, locale, onModal, canReopen, to }: {- item: HistoryItem; locale: string; onModal: (modal: HistoryModal) => void; canReopen: (modal: HistoryModal) => boolean; to: AnnouncementRun;+ item: NoticeItem; locale: string; onModal: (modal: HistoryModal) => void; canReopen: (modal: HistoryModal) => boolean; to: AnnouncementRun;}) {const title = item.source === "built-in" ? t(item.entry.title) : localized(item.card.title, locale);const body = item.source === "built-in" ? t(item.entry.body) : localized(item.card.body, locale);const words = <>- <time dateTime={new Date(item.at).toISOString()} className="block text-[12px] leading-4 text-ink-tertiary">{dateText(item.at, locale)}</time>- <span className="mt-0.5 block text-[14px] font-medium leading-5 text-ink">{title}</span>- <span className="mt-0.5 line-clamp-2 block text-[13px] leading-[18px] text-ink-secondary">{body}</span>+ <time dateTime={new Date(item.at).toISOString()} className={DATE_TEXT}>{dateText(item.at, locale)}</time>+ <span className={TITLE_TEXT}>{title}</span>+ <span className={BODY_TEXT}>{body}</span></>;const modal = item.source === "built-in" && "modal" in item.entry.open ? item.entry.open.modal : null;if (modal && canReopen(modal)) {@@ -73,7 +76,7 @@ function Row({ item, locale, onModal, canReopen, to }: {</li>;}let buttons: ReactNode = null;- if (item.source === "built-in" && item.ended) buttons = <span data-announcement-ended className="rounded-full bg-ink/[0.06] px-2.5 py-1 text-[12px] text-ink-secondary">{t("announcements.ended")}</span>;+ if (item.source === "built-in" && item.ended) buttons = <span data-announcement-ended className={CHIP}>{t("announcements.ended")}</span>;else if (item.source === "built-in" && "buttons" in item.entry.open) {buttons = item.entry.open.buttons.map((button, index) => <button key={button.label} type="button" className={index === 0 ? PRIMARY_BUTTON : QUIET_BUTTON}onClick={() => run(button.action, to)}>{t(button.label)}</button>);@@ -91,8 +94,9 @@ function Row({ item, locale, onModal, canReopen, to }: {}/** The list itself, as the page draws it: newest first. */-export function AnnouncementList({ items, locale = activeLocale(), onModal, canReopen = () => true, to }: {+export function AnnouncementList({ items, locale = activeLocale(), onModal, canReopen = () => true, to, release = { installed: appVersion(), updater: null }, onRestart = () => {} }: {items: readonly HistoryItem[]; locale?: string; onModal: (modal: HistoryModal) => void; canReopen?: (modal: HistoryModal) => boolean; to: AnnouncementRun;+ release?: ReleaseContext; onRestart?: () => void;}) {if (!items.length) {return <section aria-label={t("announcements.empty")} className="px-6 py-16 text-center">@@ -101,7 +105,9 @@ export function AnnouncementList({ items, locale = activeLocale(), onModal, canR</section>;}return <ul aria-label={t("announcements.title")} className="flex flex-col divide-y divide-hairline/40 rounded-2xl border border-hairline/50 bg-card/40">- {items.map(item => <Row key={`${item.source}:${item.id}`} item={item} locale={locale} onModal={onModal} canReopen={canReopen} to={to} />)}+ {items.map(item => item.source === "release"+ ? <ReleaseRow key={`${item.source}:${item.id}`} item={item} date={dateText(item.at, locale)} context={release} onRestart={onRestart} />+ : <Row key={`${item.source}:${item.id}`} item={item} locale={locale} onModal={onModal} canReopen={canReopen} to={to} />)}</ul>;}@@ -149,6 +155,9 @@ export function AnnouncementsPage() {const found = useAnnouncements();const [open, setOpen] = useState<HistoryModal | null>(null);const back = useRef<HTMLButtonElement>(null);+ const updater = useUpdaterState();+ const [openedAt] = useState(Date.now);+ const items = withDownloadedUpdate(found.items, downloadedUpdate(updater, openedAt), found.branded, openedAt);const whatsNew = useWhatsNewView(found, found.items.some(item => item.source === "built-in" && "modal" in item.entry.open && item.entry.open.modal === "whats-new"));useEffect(() => { back.current?.focus({ preventScroll: true }); }, []);useEffect(() => { if (found.unread) found.markRead(); }, [found.unread]);@@ -164,9 +173,10 @@ export function AnnouncementsPage() {<ToolPageHeader backLabel={t("automations.back")} onBack={() => dispatch({ type: "showChat" })} backRef={back}><h1 className={TOOL_PAGE_TITLE}>{t("announcements.title")}</h1></ToolPageHeader>- <div className="min-h-0 flex-1 overflow-y-auto" data-announcements={found.items.length}>+ <div className="min-h-0 flex-1 overflow-y-auto" data-announcements={items.length}><div className={cn("mx-auto w-full max-w-2xl p-4 sm:p-6")}>- <AnnouncementList items={found.items} onModal={setOpen} canReopen={modal => modal !== "whats-new" || whatsNew !== null} to={to} />+ <AnnouncementList items={items} onModal={setOpen} canReopen={modal => modal !== "whats-new" || whatsNew !== null} to={to}+ release={{ installed: desktopAppVersion(), updater }} onRestart={() => void installUpdate().catch(() => undefined)} /></div></div>{open && <Replay modal={open} found={found} whatsNew={whatsNew} onClose={() => setOpen(null)} />}diff --git a/src/components/announcements/ReleaseRow.tsx b/src/components/announcements/ReleaseRow.tsxnew file mode 100644index 0000000000..58c0a8a635--- /dev/null+++ b/src/components/announcements/ReleaseRow.tsx@@ -0,0 +1,94 @@+import { useEffect, useId, useState } from "react";+import { ChevronDown, Loader2, PackageOpen, RefreshCw, Rocket } from "lucide-react";+import type { HistoryItem } from "@/lib/announcement-history";+import { cn } from "@/lib/cn";+import { t } from "@/lib/i18n";+import { notesAsMarkdown } from "@/lib/release-highlights";+import type { UpdaterState } from "@/lib/updater";+import { compareVersions } from "../../../shared/announcements";+import { releaseFromMarkdown, releaseLeads, releaseLineParts, type ReleaseEntry } from "../../../shared/release-notes";+import { PRIMARY_BUTTON } from "../NoticeCard";++export const MARK_TILE = "flex size-9 shrink-0 items-center justify-center rounded-xl bg-ink/[0.05] text-ink-secondary";+export const QUIET_BUTTON = "ui-button min-h-9 gap-1.5 px-3 py-1.5";+export const DATE_TEXT = "block text-[12px] leading-4 text-ink-tertiary";+export const TITLE_TEXT = "mt-0.5 block text-[14px] font-medium leading-5 text-ink";+export const BODY_TEXT = "mt-0.5 line-clamp-2 block text-[13px] leading-[18px] text-ink-secondary";+export const CHIP = "rounded-full bg-ink/[0.06] px-2.5 py-1 text-[12px] text-ink-secondary";++const bare = (version: string) => version.trim().replace(/^v/i, "");+const sameVersion = (a: string, b: string) => compareVersions(bare(a), bare(b)) === 0;++/** What the Announcements page knows of this app's own version and its updater. */+export interface ReleaseContext {+ /** The version running here. */+ installed: string;+ /** The updater, when it has an update downloaded and waiting for a restart. */+ updater: UpdaterState | null;+}++/** An update downloaded and waiting for a restart, with its notes as an entry (for a row when the list lacks it). */+export function downloadedUpdate(state: UpdaterState | null, now: number): { version: string; notes: ReleaseEntry } | null {+ if (state?.status !== "downloaded" || !state.version) return null;+ const version = bare(state.version);+ return { version, notes: releaseFromMarkdown(notesAsMarkdown(state.releaseNotes ?? ""), { version, date: new Date(now).toISOString() }) };+}++/** A line of the notes: its words, with **bold** and `code` drawn as such, and nothing else read from it. */+function Line({ text }: { text: string }) {+ return <>{releaseLineParts(text).map((part, index) => {+ const words = part.code ? <code className="rounded bg-ink/[0.06] px-1 font-mono text-[12px]">{part.text}</code> : part.text;+ return part.bold ? <strong key={index} className="font-medium text-ink">{words}</strong> : <span key={index}>{words}</span>;+ })}</>;+}++/** Restart into the downloaded update, as the update card's own button does (installUpdate). */+function RestartButton({ updater, onRestart }: { updater: UpdaterState; onRestart: () => void }) {+ const [pending, setPending] = useState(false);+ useEffect(() => setPending(false), [updater.status]);+ const handoff = updater.installMode === "handoff";+ const busy = pending || updater.status === "installing";+ const label = busy ? handoff ? t("settings.updates.opening") : t("settings.updates.restartingShort") : handoff ? t("settings.updates.install") : t("update.card.restart");+ const Icon = busy ? Loader2 : handoff ? PackageOpen : RefreshCw;+ return <button type="button" data-release-restart className={PRIMARY_BUTTON} disabled={busy} onClick={() => { setPending(true); onRestart(); }}>+ <Icon size={14} aria-hidden className={cn(busy && "animate-spin")} />{label}+ </button>;+}++/** One release in the Announcements list: its date, "What's new in" its version, the leads of its first two lines, and+ * the whole notes behind See all changes. The version running here says so; a downloaded update offers its restart. */+export function ReleaseRow({ item, date, context, onRestart }: {+ item: Extract<HistoryItem, { source: "release" }>; date: string; context: ReleaseContext; onRestart: () => void;+}) {+ const [open, setOpen] = useState(false);+ const panel = useId();+ const { release } = item;+ const current = sameVersion(release.version, context.installed);+ const ready = context.updater?.status === "downloaded" && !!context.updater.version && sameVersion(release.version, context.updater.version) ? context.updater : null;+ const leads = releaseLeads(release).join(" ");+ const hasNotes = release.sections.length > 0;+ return <li data-announcement-item={item.id} data-release={release.version} className="flex items-start gap-3 px-3 py-3">+ <span aria-hidden="true" className={MARK_TILE}><Rocket size={18} /></span>+ <div className="min-w-0 flex-1">+ <time dateTime={new Date(item.at).toISOString()} className={DATE_TEXT}>{date}</time>+ <span className={TITLE_TEXT}>{t("announcements.release.title", { version: release.version })}</span>+ {leads && <span className={BODY_TEXT}>{leads}</span>}+ {(ready || hasNotes || current) && <div className="mt-2.5 flex flex-wrap items-center gap-2">+ {ready && <RestartButton updater={ready} onRestart={onRestart} />}+ {hasNotes && <button type="button" className={QUIET_BUTTON} aria-expanded={open} aria-controls={panel} onClick={() => setOpen(value => !value)}>+ {t(open ? "announcements.release.hide" : "announcements.release.seeAll")}+ <ChevronDown size={14} aria-hidden className={cn("transition-transform motion-reduce:transition-none", open && "rotate-180")} />+ </button>}+ {current && <span data-release-current className={CHIP}>{t("announcements.release.current")}</span>}+ </div>}+ {open && <div id={panel} data-release-notes className="mt-3 flex flex-col gap-3">+ {release.sections.map((section, index) => <section key={index}>+ <h3 className="text-[13px] font-medium leading-[18px] text-ink">{section.title}</h3>+ <ul className="mt-1 flex list-disc flex-col gap-1 ps-4 text-[13px] leading-[18px] text-ink-secondary">+ {section.items.map((line, index) => <li key={index}><Line text={line} /></li>)}+ </ul>+ </section>)}+ </div>}+ </div>+ </li>;+}diff --git a/src/components/announcements/use-announcements.ts b/src/components/announcements/use-announcements.tsindex da9adbd42e..3adf4ef2e3 100644--- a/src/components/announcements/use-announcements.ts+++ b/src/components/announcements/use-announcements.ts@@ -1,10 +1,10 @@import { useEffect, useState } from "react";import type { CloudAccountState } from "../../../electron/cloud-account.mjs";-import { announcementHistory, announcementsUnread, markAnnouncementsRead, useAnnouncementRecord, type HistoryFacts, type HistoryItem, type PersonRecord,+import { announcementHistory, announcementsUnread, firstListedVersion, markAnnouncementsRead, useAnnouncementRecord, type HistoryFacts, type HistoryItem, type PersonRecord,type RecordWriter } from "@/lib/announcement-history";import { announcementConditions, announcementFeedUpdatedAt, announcementPlan, announcementPlatform, announcementSurface, cardsForPerson, providersRestricted,- SPONSOR_CARDS_FOR_TEAM_MEMBERS, useAnnouncementCards } from "@/lib/announcements";-import { appVersion } from "@/lib/app-links";+ SPONSOR_CARDS_FOR_TEAM_MEMBERS, useAnnouncementCards, useReleaseNotes } from "@/lib/announcements";+import { appVersion, desktopAppVersion } from "@/lib/app-links";import { brandStatus } from "@/lib/brand";import { cloudPlanView } from "@/lib/cloud-plan";import { activeLocale } from "@/lib/i18n";@@ -54,6 +54,8 @@ export interface Announcements {account: CloudAccountState | null;/** The app's Add a Cloud and Cloud sign-in are here: This computer's page. */cloudBridge: boolean;+ /** A branded build: no release notes, nor a downloaded update's row. */+ branded: boolean;}/** Every announcement this person could have had here, and whether one is new to them. */@@ -85,13 +87,14 @@ export function useAnnouncements(now: () => number = Date.now): Announcements {conditions: announcementConditions(state) },branded, admin: canSave, sponsors: !providersRestricted(state.config?.managedPolicy) && sponsors,});- const items = announcementHistory({ facts, cards, feedUpdatedAt: announcementFeedUpdatedAt(), now: now() });+ const releases = useReleaseNotes(!branded);+ const items = announcementHistory({ facts, cards, feedUpdatedAt: announcementFeedUpdatedAt(), now: now(), releases });const record = state.config?.onboarding;- const person: PersonRecord = { record, desktopSeen: desktopState?.seen ?? [] };+ const person: PersonRecord = { record, desktopSeen: desktopState?.seen ?? [], firstVersion: firstListedVersion(desktopAppVersion()) };const ready = viewer !== null && organization !== null && (!desktop || desktopState !== null) && state.config !== null;const writer: RecordWriter = { team, desktop, saved: config => dispatch({ type: "configStatus", config }) };return {- items, unread: ready && announcementsUnread(items, person), person, writer, viewer, account, cloudBridge: Boolean(bridge),+ items, unread: ready && announcementsUnread(items, person), person, writer, viewer, account, cloudBridge: Boolean(bridge), branded,markRead: () => markAnnouncementsRead(now(), record, writer),};}diff --git a/src/lib/announcement-history.test.ts b/src/lib/announcement-history.test.tsindex 692cefda92..d569487355 100644--- a/src/lib/announcement-history.test.ts+++ b/src/lib/announcement-history.test.ts@@ -3,8 +3,9 @@ vi.mock("@/state/store", () => ({ api: vi.fn() }));import { api } from "@/state/store";import { EMPTY_ONBOARDING, type OnboardingStatus } from "@/lib/onboarding";import { BOAT_OFFER_NOTICE, CLOUD_INTRO, GROK_MOVE_NOTICE, MODELGO_OFFER_NOTICE, PRODUCT_HUNT_NOTICE, PRODUCT_HUNT_UNTIL, TEAMS_NOTICE, WHATS_NEW_NOTICE } from "@/lib/notices";-import { announcementHistory, announcementsReadAt, announcementsUnread, BUILT_IN_ANNOUNCEMENTS, markAnnouncementsRead, READ_BASELINE, readMark, rememberNoticeSeen,- type HistoryFacts, type PersonRecord } from "./announcement-history";+import { announcementHistory, announcementsReadAt, announcementsUnread, BUILT_IN_ANNOUNCEMENTS, firstListedVersion, markAnnouncementsRead, READ_BASELINE, readMark,+ rememberNoticeSeen, withDownloadedUpdate, type HistoryFacts, type PersonRecord } from "./announcement-history";+import type { ReleaseEntry } from "../../shared/release-notes";import { announcementsReadAt as readMarkOf, newestReadMarkOnly, personalHints, teamPersonalHint } from "../../shared/cloud-hints";import type { AnnouncementCard } from "../../shared/announcements";@@ -94,6 +95,51 @@ describe("the red dot", () => {});});+describe("releases", () => {+ const release = (version: string, date: string): ReleaseEntry => ({ version, date, sections: [{ title: "Fixes", items: ["Faster."] }] });+ const releases = [release("0.1.175", "2026-11-21T05:17:00Z"), release("0.1.173", "2026-11-19T23:52:37Z"), release("0.1.155", "2026-11-13T11:33:22Z")];+ const listed = (facts: HistoryFacts) => announcementHistory({ facts, cards: [card("later", { starts: "2026-11-20T00:00:00Z" })], feedUpdatedAt: null, now: NOW, releases });+ const read = (firstVersion: string | null, hints: string[] = [TEAMS_NOTICE]): PersonRecord => ({ record: record(hints), desktopSeen: [], firstVersion });++ it("sit in the same newest-first timeline by their dates; a branded build lists none", () => {+ const order = listed(desktopHere).map(item => item.id);+ expect(order.slice(0, 6)).toEqual(["release-0.1.175", "later", "release-0.1.173", TEAMS_NOTICE, "release-0.1.155", MODELGO_OFFER_NOTICE]);+ expect(order.at(-1)).toBe(CLOUD_INTRO);+ expect(listed({ ...desktopHere, branded: true }).some(item => item.source === "release")).toBe(false);+ });++ it("a downloaded update the list lacks gets a row on top from its own notes; one the list has keeps its own; none when branded", () => {+ const items = listed(desktopHere);+ const update = { version: "0.1.176", notes: release("0.1.176", "2026-11-22T00:00:00Z") };+ const withUpdate = withDownloadedUpdate(items, update, false, NOW);+ expect(withUpdate[0]).toMatchObject({ source: "release", id: "release-0.1.176", pending: true });+ expect(withUpdate[0]!.at).toBeGreaterThanOrEqual(items[0]!.at);+ expect(withDownloadedUpdate(items, { ...update, version: "0.1.175" }, false, NOW)).toBe(items);+ expect(withDownloadedUpdate(items, update, true, NOW)).toBe(items);+ expect(withDownloadedUpdate(items, null, false, NOW)).toBe(items);+ });++ it("raise the dot only after the version first listed here, and only when newer than the last look; a downloaded update's own row never does", () => {+ const items = listed(desktopHere).filter(item => item.id !== "later");+ expect(announcementsUnread(items, read("0.1.175")), "a new install is not told about every release before it").toBe(false);+ expect(announcementsUnread(items, read("0.1.173")), "the next release after it").toBe(true);+ expect(announcementsUnread(items, read("0.1.173", [TEAMS_NOTICE, readMark(Date.parse("2026-11-22T00:00:00Z"))])), "looked since").toBe(false);+ expect(announcementsUnread(items, read(null)), "nothing kept: releases never raise it").toBe(false);+ const pending = withDownloadedUpdate(items, { version: "0.1.176", notes: release("0.1.176", "2026-11-22T00:00:00Z") }, false, NOW);+ expect(announcementsUnread(pending, read("0.1.175"))).toBe(false);+ });++ it("the first version listed is kept from the first time, and is the running one when nothing can be kept", () => {+ expect(firstListedVersion("0.1.175")).toBe("0.1.175");+ expect(firstListedVersion("0.1.180")).toBe("0.1.175");+ storage.clear();+ expect(firstListedVersion("dev")).toBe("dev");+ expect(storage.size, "a dev build keeps nothing").toBe(0);+ vi.stubGlobal("localStorage", { getItem: () => { throw new Error("blocked"); }, setItem: () => { throw new Error("blocked"); } });+ expect(firstListedVersion("0.1.180")).toBe("0.1.180");+ });+});+describe("opening Announcements and seeing a popup", () => {const desktop = { seen: vi.fn(async () => {}) };beforeEach(() => desktop.seen.mockClear());diff --git a/src/lib/announcement-history.ts b/src/lib/announcement-history.tsindex 666ff29ad1..99ab7ae192 100644--- a/src/lib/announcement-history.ts+++ b/src/lib/announcement-history.ts@@ -12,7 +12,8 @@ import type { ConfigStatus } from "@/state/config-status";import { api } from "@/state/store";import { ANNOUNCEMENTS_READ_HINT, announcementsReadAt as readMarkOf } from "../../shared/cloud-hints";import { MODELGO_URL } from "../../shared/modelgo";-import type { AnnouncementCard } from "../../shared/announcements";+import { compareVersions, type AnnouncementCard } from "../../shared/announcements";+import type { ReleaseEntry } from "../../shared/release-notes";/** What decides whom a built-in announcement was for, by its own rules (never whether they saw it, nor its dates). */export interface HistoryFacts {@@ -81,23 +82,40 @@ export const READ_BASELINE = Date.parse("2026-11-11");export type HistoryItem =| { source: "built-in"; id: string; at: number; entry: BuiltInAnnouncement; ended: boolean }- | { source: "feed"; id: string; at: number; card: AnnouncementCard };+ | { source: "feed"; id: string; at: number; card: AnnouncementCard }+ /** What a release brought (announcements/releases.json); `pending` for a downloaded update the file does not list yet. */+ | { source: "release"; id: string; at: number; release: ReleaseEntry; pending?: true };-/** Newest first; a feed card is dated by its `starts`, else by when its file last changed, else now. */-export function announcementHistory({ facts, cards, feedUpdatedAt, now }: {- facts: HistoryFacts; cards: readonly AnnouncementCard[]; feedUpdatedAt: number | null; now: number;+const releaseItem = (release: ReleaseEntry, at = Date.parse(release.date)): Extract<HistoryItem, { source: "release" }> =>+ ({ source: "release", id: `release-${release.version}`, at, release });++/** Newest first; a feed card is dated by its `starts`, else by when its file last changed, else now; a release by its+ * date. A branded build lists no releases, as it has none of the built-in announcements. */+export function announcementHistory({ facts, cards, feedUpdatedAt, now, releases = [] }: {+ facts: HistoryFacts; cards: readonly AnnouncementCard[]; feedUpdatedAt: number | null; now: number; releases?: readonly ReleaseEntry[];}): HistoryItem[] {const builtIn: HistoryItem[] = BUILT_IN_ANNOUNCEMENTS.filter(entry => entry.for(facts)).map(entry => ({source: "built-in", id: entry.id, at: Date.parse(entry.date), entry, ended: typeof entry.until === "number" && now >= entry.until,}));const feed: HistoryItem[] = cards.map(card => ({ source: "feed", id: card.id, at: card.starts ? Date.parse(card.starts) : feedUpdatedAt ?? now, card }));- return [...builtIn, ...feed].map((item, order) => ({ item, order })).sort((a, b) => b.item.at - a.item.at || a.order - b.order).map(({ item }) => item);+ const notes: HistoryItem[] = facts.branded ? [] : releases.map(release => releaseItem(release));+ return [...builtIn, ...feed, ...notes].map((item, order) => ({ item, order })).sort((a, b) => b.item.at - a.item.at || a.order - b.order).map(({ item }) => item);+}++/** An update downloaded and waiting for a restart: its row, from its own notes (`notes`, as an entry) when the list+ * does not have it yet, goes on top. Nothing in a branded build. */+export function withDownloadedUpdate(items: readonly HistoryItem[], update: { version: string; notes: ReleaseEntry } | null, branded: boolean,+ now: number): readonly HistoryItem[] {+ if (!update || branded || items.some(item => item.source === "release" && item.release.version === update.version)) return items;+ const top = Math.max(now, ...items.map(item => item.at));+ return [{ ...releaseItem(update.notes, top), pending: true }, ...items];}// ---- When the person last opened Announcements: this browser, this desktop's record for every page of its window, and// the place's record (on a Team Cloud, the person's own). The newest of them counts.const READ_KEY = "omb.announcements.read-at";+const FIRST_VERSION_KEY = "omb.announcements.first-version";const stored = (key: string): string | null => { try { return localStorage.getItem(key); } catch { return null; } };const store = (key: string, value: string) => { try { localStorage.setItem(key, value); } catch {} };@@ -116,6 +134,17 @@ export interface PersonRecord {record: OnboardingStatus | undefined;/** This desktop's record (DesktopNoticesState.seen); empty in a browser. */desktopSeen: readonly string[];+ /** The app version this browser first listed announcements on (firstListedVersion): only releases after it are new. */+ firstVersion?: string | null;+}++/** The app version this browser first listed announcements on, kept from the first time; `current` when nothing can be+ * kept. So a new install, or a new browser on a Cloud, is not told about every release before it. */+export function firstListedVersion(current: string): string {+ const kept = stored(FIRST_VERSION_KEY);+ if (kept && compareVersions(kept, kept) === 0) return kept;+ if (compareVersions(current, current) === 0) store(FIRST_VERSION_KEY, current);+ return current;}export function announcementsReadAt({ record, desktopSeen }: PersonRecord): number {@@ -125,14 +154,23 @@ export function announcementsReadAt({ record, desktopSeen }: PersonRecord): numb}export function itemSeen(item: HistoryItem, { record, desktopSeen }: PersonRecord): boolean {+ if (item.source === "release") return false;const key = item.source === "feed" ? `announcement:${item.id}` : item.id;return noticeSeen(record, key) || desktopSeen.includes(key);}+/** A release counts for the dot only when it is after the version this browser first listed announcements on; a+ * downloaded update's own row never does (it is dated now). */+function releaseCounts(item: HistoryItem, person: PersonRecord): boolean {+ if (item.source !== "release") return true;+ if (item.pending || !person.firstVersion) return false;+ return (compareVersions(item.release.version, person.firstVersion) ?? 0) > 0;+}+/** The dot: something here is newer than the person's last look and they have not seen it. */export function announcementsUnread(items: readonly HistoryItem[], person: PersonRecord): boolean {const readAt = announcementsReadAt(person);- return items.some(item => item.at > readAt && !itemSeen(item, person));+ return items.some(item => item.at > readAt && !itemSeen(item, person) && releaseCounts(item, person));}export interface RecordWriter {diff --git a/src/lib/announcements.ts b/src/lib/announcements.tsindex a19c7eabd7..cd8ed5943c 100644--- a/src/lib/announcements.ts+++ b/src/lib/announcements.ts@@ -13,6 +13,7 @@ import {ADMIN_PLACES, audienceMatches, cardPlaces, parseAnnouncementCard, type AnnouncementCard, type AnnouncementFacts, type AnnouncementKind,type AnnouncementPlan, type AnnouncementPlatform, type AnnouncementSurface,} from "../../shared/announcements";+import { parseRelease, type ReleaseEntry } from "../../shared/release-notes";/** Sponsor cards (the announcements' and the app's own) for a Team Cloud's members who are not its owner or an admin. Off:* a sponsor's card is for whoever chooses the team's providers. The owner's call; flip this to show them to every member. */@@ -36,6 +37,7 @@ export const sponsorDayKey = (day: string) => `${SPONSOR_DAY_PREFIX}${day}`;// ---- The cards this server hands over: asked at launch, then about hourly while the app is in use.let cards: AnnouncementCard[] = [];+let releases: ReleaseEntry[] = [];let updatedAt: number | null = null;let askedAt: number | null = null;let answered = false;@@ -51,12 +53,22 @@ function readCards(answer: unknown): AnnouncementCard[] {});}+/** The notes of the latest releases, newest first; none from a server older than them. */+function readReleases(answer: unknown): ReleaseEntry[] {+ const list = (answer as { releases?: unknown } | null)?.releases;+ if (!Array.isArray(list)) return [];+ return list.flatMap((raw) => {+ const parsed = parseRelease(raw);+ return parsed.ok ? [parsed.release] : [];+ });+}+function ask(now: number): void {if (asking || (askedAt !== null && now >= askedAt && now - askedAt < (answered ? ANNOUNCEMENT_REFRESH_MS : RETRY_MS))) return;asking = true;askedAt = now;void api("/api/announcements").then((answer) => {- cards = readCards(answer); answered = true;+ cards = readCards(answer); releases = readReleases(answer); answered = true;const date = Date.parse(String((answer as { updatedAt?: unknown } | null)?.updatedAt ?? ""));updatedAt = Number.isFinite(date) ? date : null;}, () => {})@@ -74,6 +86,14 @@ export function useAnnouncementCards(enabled: boolean, now: () => number = Date.return enabled ? current : [];}+const releasesSnapshot = () => releases;++/** What the latest releases brought, as the same answer handed them over (useAnnouncementCards asks for it). */+export function useReleaseNotes(enabled: boolean): ReleaseEntry[] {+ const current = useSyncExternalStore(subscribe, releasesSnapshot, releasesSnapshot);+ return enabled ? current : [];+}+/** When the cards' file last changed (epoch ms), as the server said; null before it answers or from an older server. */export function announcementFeedUpdatedAt(): number | null {return updatedAt;@@ -81,7 +101,7 @@ export function announcementFeedUpdatedAt(): number | null {/** Tests: start from a page that has asked nothing. */export function forgetAnnouncementCards(): void {- cards = []; updatedAt = null; askedAt = null; answered = false; asking = false;+ cards = []; releases = []; updatedAt = null; askedAt = null; answered = false; asking = false;}// ---- What this page knows.diff --git a/src/lib/release-highlights.ts b/src/lib/release-highlights.tsindex c34c487bf3..e98e0e8927 100644--- a/src/lib/release-highlights.ts+++ b/src/lib/release-highlights.ts@@ -1,13 +1,13 @@-/** The GitHub update provider gives release notes as HTML; a generic feed often gives Markdown. */-export function releaseHighlights(notes: string | undefined, max = 4): string[] {- if (!notes?.trim()) return [];- const markdown = notes+/** The GitHub update provider gives release notes as HTML; a generic feed often gives Markdown. Either way, as Markdown. */+export function notesAsMarkdown(notes: string): string {+ return notes.replace(/\r\n?/g, "\n").replace(/<\s*(strong|b)\s*>/gi, "**").replace(/<\s*\/\s*(strong|b)\s*>/gi, "**").replace(/<\s*li[^>]*>/gi, "\n- ").replace(/<\s*\/\s*(li|p|h[1-6]|ul|ol)\s*>|<\s*br\s*\/?>/gi, "\n")- .replace(/<\s*h[1-6][^>]*>/gi, "\n# ")+ .replace(/<\s*h([1-6])[^>]*>/gi, (_, level: string) => `\n${"#".repeat(Number(level))} `)+ .replace(/<\s*\/?\s*code\s*>/gi, "`").replace(/<[^>]+>/g, "").replace(/ /g, " ").replace(/"/g, '"')@@ -15,6 +15,11 @@ export function releaseHighlights(notes: string | undefined, max = 4): string[].replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");+}++export function releaseHighlights(notes: string | undefined, max = 4): string[] {+ if (!notes?.trim()) return [];+ const markdown = notesAsMarkdown(notes);const out: string[] = [];for (const raw of markdown.split("\n")) {const item = /^\s*[-*+]\s+(.*)$/.exec(raw)?.[1]?.trim();diff --git a/src/lib/updater.ts b/src/lib/updater.tsindex 66e691ea1d..d4fb6869e7 100644--- a/src/lib/updater.ts+++ b/src/lib/updater.ts@@ -36,3 +36,8 @@ export function updaterMessage(state: UpdaterState | null | undefined, { restartconst text = key ? missing ? state.message : t(key as LocaleKey, params) : code ? t(code) : state.message;return text && (key || code) && restart && state.status === "error" && state.retryable === false ? `${text} ${t("update.error.restartFirst")}` : text;}++/** Restarts into the downloaded update (or, for a handed-off install, copies its command), as the update card's button does. */+export function installUpdate(): Promise<void> {+ return window.ogb?.updater?.install() ?? Promise.resolve();+}diff --git a/src/locales/en.json b/src/locales/en.jsonindex d2a45f9d67..bffe780d24 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -596,6 +596,10 @@"announcements.ended": "Ended","announcements.empty": "Nothing has been announced here yet.","announcements.new": "New announcements",+ "announcements.release.title": "What's new in {version}",+ "announcements.release.seeAll": "See all changes",+ "announcements.release.hide": "Hide changes",+ "announcements.release.current": "You're on this version","cloudHowTo.title": "Add a Cloud from here","cloudHowTo.body": "Click this menu, then choose Add a Cloud. It's also where you switch between this computer and the Cloud.","cloudHowTo.skip": "Skip",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex ff2cd1770a..08db641aa4 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -570,6 +570,10 @@"announcements.ended": "Encerrado","announcements.empty": "Nada foi anunciado aqui ainda.","announcements.new": "Novos anúncios",+ "announcements.release.title": "Novidades da versão {version}",+ "announcements.release.seeAll": "Ver todas as mudanças",+ "announcements.release.hide": "Ocultar mudanças",+ "announcements.release.current": "Você está nesta versão","cloudHowTo.title": "Adicione um Cloud por aqui","cloudHowTo.body": "Clique neste menu e escolha “Adicionar um Cloud”. É também onde você alterna entre este computador e o Cloud.","cloudHowTo.skip": "Pular",