v0.19.0

sleep3r/mtproto.zigv0.19.0Apr 15, 2026by sleep3r

Upgrading?

AI Summary

Focuses on dashboard improvements and version tracking. Adds proxy version display in the dashboard header and fixes release automation issues preventing version updates.

Key Highlights

  • Proxy version badge now visible in the dashboard header.
  • Fixed release-please automation to correctly update version in binary.
  • Fixed dashboard deployment failures on subsequent updates.

New Features

  • Dashboard API endpoint for proxy version detection.
  • Automated version bumping fix via configuration update.
  • Dashboard deployment script fix for ownership issues.

Full Release Notes

### 🇷🇺 Что нового (RU)

**Что решает этот релиз**

• В дашборде теперь отображается версия прокси — можно визуально убедиться, что обновление прошло.
• Исправлена ошибка, из-за которой `release-please` не обновлял версию в бинарнике.
• Повторный деплой дашборда больше не падает с ошибкой `uv venv creation failed`.

**Что изменено**

• **Версия в хедере дашборда** (#190, #191)
  - В API-ответ `/api/stats` добавлено поле `proxy_version`.
  - Сервер определяет версию из `mtproto-proxy --version` или парсит `version.zig` (кэш 5 минут).
  - В хедере дашборда рядом с названием появился pill-бейдж `v0.19.0` в стиле Zig-акцента.

• **Фикс version.zig / release-please**
  - `version.zig` не обновлялся при релизах — `release-please-config.json` указывал на `src/main.zig` и `src/ctl/main.zig`, которые не содержат маркер `x-release-please-version`.
  - Теперь `extra-files` указывает на `src/version.zig`, где реально находится маркер. Следующие релизы будут обновлять версию автоматически.

• **Фикс повторного деплоя дашборда**
  - `make deploy` выполняет `chown mtproto:mtproto` на `/opt/mtproto-proxy/`, включая `.venv`. При следующем деплое `uv venv` (от root) не мог перезаписать каталог с другим владельцем.
  - Теперь `dashboard.zig` делает `rm -rf .venv` перед `uv venv`, что решает проблему.

> [!TIP]
> Версия прокси теперь видна сразу в хедере дашборда — не нужно лезть в логи или SSH, чтобы проверить обновление.

--------

### 🇬🇧 Release notes (EN)

**What this release addresses**

• The dashboard now shows the proxy version — you can visually confirm that an update was applied.
• Fixed a bug where `release-please` was not updating the version in the binary.
• Repeated dashboard deploys no longer fail with `uv venv creation failed`.

**What changed**

• **Version badge in dashboard header** (#190, #191)
  - Added `proxy_version` field to the `/api/stats` response.
  - The server detects the version from `mtproto-proxy --version` or by parsing `version.zig` (cached for 5 minutes).
  - A pill badge `v0.19.0` now appears next to the title in the dashboard header, styled with the Zig accent color.

• **version.zig / release-please fix**
  - `version.zig` was not being updated on releases — `release-please-config.json` pointed at `src/main.zig` and `src/ctl/main.zig`, which do not contain the `x-release-please-version` marker.
  - `extra-files` now points to `src/version.zig` where the marker actually lives. Future releases will bump the version automatically.

• **Fix repeated dashboard deploy failure**
  - `make deploy` runs `chown mtproto:mtproto` on `/opt/mtproto-proxy/`, including `.venv`. On the next deploy, `uv venv` (running as root) could not overwrite the directory owned by a different user.
  - `dashboard.zig` now runs `rm -rf .venv` before `uv venv`, fixing the ownership mismatch.

> [!TIP]
> The proxy version is now visible right in the dashboard header — no need to SSH in or check logs to verify an update.

--------

### Changelog

* feat(dashboard): show proxy version in header ([#191](https://github.com/sleep3r/mtproto.zig/pull/191), closes [#190](https://github.com/sleep3r/mtproto.zig/issues/190)) ([99b5d7d](https://github.com/sleep3r/mtproto.zig/commit/99b5d7d19431ea3a859e3fa4ab8028009ccd2a72))

Related Repositories