Repository navigation
Releases
Releases · chaosk/marian
0.14.3
Upgrading
No migrations. A rolling update is safe.
Fixes
- A web address in an event description keeps its underscores, asterisks and tildes instead of turning them into formatting, so a link like a Steam store page works again (#155).
- A bare web address in a description becomes a link, as in Discord, and (Discord's way to hide a preview) shows as a link without the brackets (#155).
0.14.2
Upgrading
- No migrations or config changes. A rolling update is safe, and rolling back to 0.14.1 is a redeploy.
- Slash commands are unchanged.
Fixes
- On the Channels page, only one "New events mention" editor is open at a time: opening another closes it. An editor reopens showing what's saved, and Escape closes it (#153).
0.14.1
Upgrading
- No migrations or config changes. A rolling update is safe, and rolling back to 0.14.0 is a redeploy.
- Slash commands are unchanged.
- When it connects, Marian puts each server's channels in Discord's order, with one database write per server.
Changes
- Channel lists follow Discord's sidebar order: the Channels page, the channel pickers, the Default channel setting,
/event's list, and the channel a new event falls back to. Channels outside any category come first, then each category in its own order. The order follows channels and categories moved in Discord (#150). - Changing a posted event's title or date renames its Discord thread to match. A thread archived after a quiet week opens again when it's renamed (#151).
Fixes
- The Channels page's "New events mention" popover is no longer cut off by the table (#149).
0.14.0
Upgrading
- Three migrations, all additive:
- new tables for MCP clients and their sign-ins, and a column marking a sign-in as an MCP client's;
- default mentions on settings and channels;
- a default channel on settings, and an index on who created each event.
- A rolling update is safe. Rolling back to 0.13.3 is a redeploy: it leaves the new columns and tables unused.
- No new config. MCP uses
MARIAN_PUBLIC_URLand the existing Discord redirect, so the Discord application needs no changes. - Slash commands are unchanged.
Features
- MCP server at
/mcp. An AI assistant such as Claude can connect withclaude mcp add --transport http marian https://<your Marian>/mcp. It signs in through Discord and acts as the person who allowed it, with the same permissions as on the website (#141).- Event tools: list, read, create, change, post and delete events.
- Routine tools: list routines, read one, vote in a poll, set the days, stop a routine, see the approvals waiting on you, and confirm or skip a week.
- Each app gets its own Discord sign-in, so its list of servers stays current.
- Connected apps, in the account menu, lists the apps you allowed and disconnects one at once.
- Default mentions for new events (#146). The Settings page sets whom a new event's post mentions: @everyone and/or roles. On the Channels page, each channel follows that default or sets its own, which can be nobody. New events on the website, from
/eventand over MCP start from their channel's default. The event's creator can still change it. - A new event starts in a better channel (#147). On the website and over MCP, it starts in the channel its creator last made an event in. For someone who hasn't made one yet, it uses a new Default channel setting, else the first channel listed.
Security
url2.5.9 for RUSTSEC-2026-0592, a stack overflow on nestedblob:URLs. Marian only parsed its ownMARIAN_PUBLIC_URLthat way, so it wasn't exposed (#145).
Dependencies
0.13.3
Upgrading
- One data-only migration: it replaces no-break spaces and other unusual whitespace in saved event and template titles with ordinary spaces. The schema is unchanged. A rolling update is safe, and rolling back to 0.13.2 is a redeploy. The migration has no undo, and none is needed.
- Slash commands are unchanged.
Fixes
- A title typed with a no-break space (Option+Space on a Mac) keeps its space in a reminder's link in Discord. Titles of events and routines are saved with plain spaces, existing titles are cleaned, and Discord links built from titles use plain spaces (#138).
0.13.2
Upgrading
- No migrations or config changes. A rolling update is safe, and rolling back to 0.13.1 is a redeploy.
- Slash commands are unchanged.
Fixes
- Deleting a draft, scheduled or failed event no longer queues Discord updates for it. Before, they failed eight times over about eight minutes and were then logged as errors (#136).
- A Discord job whose event or poll has gone is dropped at once, logged at INFO and counted under a new
goneoutcome inmarian.discord.jobs(#136). - Deleting an event while it's open in another tab no longer crashes the page (#136).
Development
- Dependabot leaves dtolnay/rust-toolchain alone (#134).
0.13.1
Upgrading
- No migrations or config changes. A rolling update is safe, and rolling back to 0.13.0 is a redeploy.
- Slash commands are unchanged.
Development
- Every crate is on Rust edition 2024. Marian behaves the same: view functions mark what they borrow, code is formatted in rustfmt's 2024 style, and nested
if lets are let chains. Each place where 2024 drops values in a different order was checked (#132).
0.13.0
Upgrading
- No migrations. A rolling update is safe: 0.12.x and 0.13.0 share the leader, tick and migration locks. Rolling back to 0.12.1 is a redeploy.
- Marian now talks to Postgres in Rust (tokio-postgres) instead of through libpq, and the image no longer contains libpq or OpenSSL.
DATABASE_URL'ssslmodeworks as with libpq, with a few differences:prefer(the default) uses TLS when the server offers it, without checking the certificate, as before.require,verify-caandverify-fullcheck againstsslrootcert, or the system's roots when it is unset.- These fail at startup with a message saying why, instead of connecting:
~/.postgresql/root.crtisn't read.- Client certificates (
sslcert,sslkey) aren't supported. channel_binding=requireisn't supported.
- The README has the table.
MARIAN_DB_POOL(chart:database.pool) is now the most connections a pod opens. They open as needed instead of all at startup.- Postgres may log "unexpected EOF on client connection" when Marian drops a pooled connection. That's harmless.
- Slash commands are unchanged.
Reliability and performance
- Database work no longer holds a thread: requests, pages, slash commands, the task worker, Discord jobs and Google Calendar sync all wait on Postgres without blocking (#125).
- Changes made on another replica, and job and task wake-ups, arrive as soon as Postgres sends them, instead of on a 200 ms poll (#125).
- A request whose client went away stops at its next database call. Its transaction rolls back (#125).
- Errors when connecting to Postgres say why, such as a refused password or a server without TLS (#125).
Development
0.12.1
Upgrading
- No migrations and no configuration changes.
- A normal rolling update is safe: 0.12.0 and 0.12.1 both take the leader lock, so only one pod runs the bot at a time.
- The slash commands Marian registers are unchanged.
Web
- Pages no longer wait on Discord when a member comes back after a few minutes away (#126).
- Every request used to re-read the member's Discord servers once the last check was five minutes old. A page sends about ten requests together, so each one asked Discord, and most waited out its 429s. Those were the 0.5–4 s bursts across a page's API routes.
- Now one request per session claims the check, on any replica, and it runs in the background together with the member's role lookup. The request carries on with what Marian already knows.
- A member who left all of Marian's servers is signed out on their next request.
Maintenance
0.12.0
Upgrading
- Deploy this release with
--set updateStrategy=Recreate. The chart now defaults toRollingUpdate, but 0.11.x doesn't take the new leader lock and still writes tocommand_log, which this release drops. During a rolling update the old and new pods would both run the bot, posting and reminding twice, and the old one's slash commands would fail. From 0.12.0 on, rolling updates are safe. - Eight migrations run when Marian starts:
- Indexes on foreign keys that had none.
command_logis dropped, and the command history with it. Runpg_dump -t command_logfirst if you want to keep it.roles.made_by_marian, plusattendee_role_byon events and event templates. The backfill marks Marian's own roles: those not on Discord yet, and attendee roles in Marian's colour#1e3a6e. It records each event's creator as who picked its role.- A
discord_jobstable (the outbox). - CHECK constraints on 14 text columns that hold a fixed set of words. The migration fails, and the pod won't start, if a row holds anything else. A dev database copy passed.
- A
taskstable, with triggers on the tables that decide when something happens.
- Chart:
persistence.enablednow defaults tofalse. The volume was never mounted. A release that still has the old SQLite volume deletes it on upgrade unless you set it totrue.- New:
replicaCount(default 1),updateStrategy(defaultRollingUpdate), a PodDisruptionBudget whenreplicaCountis more than 1, a startup probe on/healthz,terminationGracePeriodSeconds: 60, andautomountServiceAccountToken: false.
- Each pod keeps two Postgres connections beyond its pool: the leader lock and a
LISTENconnection. - Logs are JSON lines when stdout isn't a terminal, so Loki detects their level. Saved LogQL that matches the old text needs
| json. SetMARIAN_LOG_FORMAT=textto keep text. - Slash commands are registered again on connect, now with English and Polish descriptions.
Discord
- The web Command desk is gone, and with it the command log (#103, #117).
- Slash commands show their real description in every Discord language. Polish readers see Polish and everyone else English, where most used to see "A slash command" (#123).
- Only server managers can make one of the server's own roles an event's attendee role. Roles Marian makes for attendees stay open to anyone who can create events. Marian also hands out a server role only while whoever picked it still manages the server (#109).
- The event's web page button shows only Discord's external-link icon (#121).
- A slash command that fails replies "Something went wrong. Please try again." instead of database error text (#112).
Web
- On a phone, the sidebar scrolls away instead of covering half the screen. The Schedule page lists the whole week, not only its first five events (#105).
- New event is offered only to members who can create events (#107).
- Errors show where they happened and are announced to screen readers:
- A refused setting springs back to its saved value, with the error under it.
- Error toasts stay until closed.
- Focus returns to the button that opened an editor (#114).
- The calendar feed opens a panel with a copyable address, a Subscribe link and Add to Google Calendar. Spoilers open on click and from the keyboard (#115).
- Role, choice and zone pickers close when their button is clicked again (#121).
Scheduling and reliability
- Timed work runs from task rows that Postgres triggers keep in step. There's no scan every 5 seconds, and posts go out on the second (#12).
- Deploys stop cleanly on SIGTERM. Discord work is saved in the same transaction that decides it, and survives restarts (#113).
- More than one replica can run: one leads the bot and the timed work, and every replica serves the web (#113).
- A database blip or one broken server no longer stops the scheduler.
/healthzfails when the worker stalls (#104). - Database work no longer holds up the async runtime (#110).
- Writes that must happen together now run in one transaction: a new server, role sync, Google disconnect, the settings page (#111).
- Two people can no longer take the same last place at the same moment (#108).
- A deleted date of a recurring series stays deleted (#102).
- A time in the hour that clocks skip moves forward by the gap instead of being read as UTC. Calendar feeds escape carriage returns (#120).
Development
- CI checks formatting, clippy (
-D warnings, with and without the app'sssrfeature) andcargo deny. Lint and Deny are required checks (#106). src/gateway.rsis split into a module directory, with a snapshot test of the registered commands (#118). Closed sets of text values are enums (#119).- The test suite runs in about a third of the time (#122).