<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>termchat.app</title>
<link>https://termchat.app/</link>
<atom:link href="https://termchat.app/rss.xml" rel="self" type="application/rss+xml"/>
<description>Releases and articles of termchat.app, an encrypted messenger without a phone number.</description>
<item>
<title>termchat.app 0.12.0</title>
<link>https://termchat.app/changelog/#v0.12.0</link>
<guid>https://termchat.app/changelog/#v0.12.0</guid>
<pubDate>Wed, 18 Nov 2026 14:25:33 GMT</pubDate>
<description><![CDATA[<p>One identity on up to four devices (ADR-028).</p>
<ul>
<li>Link a new device to your main one with a link code: Ctrl+P, l in the
terminal, Settings, Link to my main device on the desktop, the menu on
Android. Add it on the main device under Devices, by pasting or
scanning the code. Both screens show the identity’s fingerprint;
nothing goes further until you confirm it is the same on both.</li>
<li>Each device has keys of its own; your fingerprint does not change.
Contacts write to every device, and what you send from one appears on
the others. Your contacts move to the new device; history does not.</li>
<li>The main device names devices (“phone”, “laptop”) and removes a lost
one. Labels stay on your own devices; contacts see only how many you
have.</li>
<li>For now groups stay on the main device, documents reach a contact’s
main device only, and with three or four devices a linked one’s copies
reach the main device but not the other linked ones.</li>
<li>Contacts on an app before 0.12 hear only your main device.</li>
<li>Groups: an invite taken while the group moved to a new queue left the
member in the old one, unable to read; it now moves them.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.11.1</title>
<link>https://termchat.app/changelog/#v0.11.1</link>
<guid>https://termchat.app/changelog/#v0.11.1</guid>
<pubDate>Wed, 18 Nov 2026 10:54:33 GMT</pubDate>
<description><![CDATA[<ul>
<li>Groups: inviting a contact right after accepting their request said
“their app is older” until they had answered. The invite now waits a
moment and goes as soon as their app says it knows groups.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.11.0</title>
<link>https://termchat.app/changelog/#v0.11.0</link>
<guid>https://termchat.app/changelog/#v0.11.0</guid>
<pubDate>Wed, 18 Nov 2026 09:27:35 GMT</pubDate>
<description><![CDATA[<ul>
<li>Groups: each member’s name has a colour of its own, taken from their
key: the same on every device and in every theme.</li>
<li>Groups: a new member’s messages could stay unreadable for someone in
the group for good. Their key could come before the admin’s new member
list and was dropped; it now waits for the list.</li>
</ul>]]></description>
</item>
<item>
<title>Your phone and your laptop, one identity: termchat.app 0.12</title>
<link>https://termchat.app/blog/second-device/</link>
<guid>https://termchat.app/blog/second-device/</guid>
<pubDate>Wed, 18 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>Until now termchat.app lived on one device. Writing from the phone and from the laptop meant two identities: two fingerprints, two entries in every contact’s list, two separate histories. Version 0.12 lets one identity live on up to four devices.</p>
<h2 id="linking-takes-a-minute">Linking takes a minute</h2>
<ol>
<li>On the new device, create an identity (any nickname; it gets replaced) and pick <strong>Link to my main device</strong>. It shows a code, as text and as a QR code.</li>
<li>On your main device, open <strong>Devices</strong>, <strong>Add a device</strong>, and scan or paste the code.</li>
<li>Both screens now show one fingerprint. Go on only if it is the same on both, and confirm on both.</li>
</ol>
<p>That is all. The new device takes your nickname and your contacts, and from then on messages from them reach both devices.</p>
<h2 id="why-the-fingerprint-check">Why the fingerprint check</h2>
<p>The link code is the one thing that travels outside the encryption. Someone who copied it, from a screenshot or over a shoulder, could try to answer it first and pass their own device off as your main one. Then the new device would show <em>their</em> fingerprint, not yours. So nothing secret moves until a person has looked at both screens and said “the same” on each. It is the same idea as comparing safety numbers with a contact, done once, with yourself.</p>
<h2 id="keys-of-its-own-not-a-copy">Keys of its own, not a copy</h2>
<p>The obvious shortcut, copying the whole state to the second device, does not work: the ratchets of two copies drift apart at the first message, and both break. So each device gets keys of its own, and the first one, your main device, signs a list of them with your identity key.</p>
<ul>
<li><strong>Fingerprints do not change.</strong> The identity is still your main device’s key; no contact has to verify you again.</li>
<li><strong>Contacts check the list.</strong> A contact accepts a device list only if your identity signed it, and talks to each device on it over a session of its own.</li>
<li><strong>Each message goes once per device.</strong> To each of the contact’s devices, into its own queue, and as a copy to each of yours, so your laptop shows what you sent from the phone.</li>
</ul>
<h2 id="what-moves-over-and-what-does-not">What moves over, and what does not</h2>
<ul>
<li><strong>Contacts move</strong>, with your names for them and their verified marks.</li>
<li><strong>History does not.</strong> A new device starts empty. Copying old messages would move all of them out of one device’s protection into another’s, and disappearing messages would have to be tracked across both.</li>
<li><strong>Groups stayed on the main device</strong> in 0.12; since 0.13 they reach every device.</li>
<li><strong>Documents</strong> you send reach the contact’s main device only for now, and your other devices get no copy of them.</li>
<li><strong>Incognito contacts stay</strong> where they are: each is an identity of its own.</li>
</ul>
<h2 id="losing-a-device">Losing a device</h2>
<ul>
<li>A lost laptop or tablet: remove it from the main device. It keeps what it already had, says it was removed, and reads and sends nothing more; contacts stop writing to it.</li>
<li>A lost main device: the others keep working, but cannot add or remove devices until you restore the main one from its backup.</li>
<li>The duress password wipes only the device it is typed on. A signed “wipe everything” message would let a stolen main device erase your other ones.</li>
</ul>
<h2 id="what-others-learn-honestly">What others learn, honestly</h2>
<ul>
<li><strong>Each device is one more way in.</strong> A stolen unlocked laptop reads what your phone would. Lock it, and remove it when it is lost.</li>
<li><strong>Contacts</strong> see how many devices you have, and their keys. Labels like “phone” or “laptop” stay on your own devices.</li>
<li><strong>The relay</strong> sees a message to you as one write per device and can tie those queues together as one person’s devices. Without Tor, IP addresses tie them too. It still reads nothing.</li>
</ul>
<h2 id="one-design-change-on-the-way">One design change on the way</h2>
<p>The first version of the design sent one write with a ciphertext for every device in it. Planning the code showed it would not fit: a long message or a document chunk, times seven devices, passes the relay’s frame limit, and every device would receive every copy. Separate writes, one per device, cost less and show the relay nothing it does not already see. The design record says so in its amendment.</p>
<p>The full design is in ADR-028.</p>
]]></description>
</item>
<item>
<title>Телефон и ноутбук, одна личность: termchat.app 0.12</title>
<link>https://termchat.app/ru/blog/second-device/</link>
<guid>https://termchat.app/ru/blog/second-device/</guid>
<pubDate>Wed, 18 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>До сих пор termchat.app жил на одном устройстве. Писать и с телефона, и с ноутбука значило держать две личности: два отпечатка, две записи у каждого контакта, две отдельные истории. Версия 0.12 позволяет одной личности жить на четырёх устройствах.</p>
<h2 id="привязка-занимает-минуту">Привязка занимает минуту</h2>
<ol>
<li>На новом устройстве создайте личность (никнейм любой, его заменят) и выберите <strong>Link to my main device</strong>. Оно покажет код текстом и QR-кодом.</li>
<li>На основном устройстве откройте <strong>Devices</strong>, <strong>Add a device</strong> и отсканируйте или вставьте код.</li>
<li>Оба экрана покажут один отпечаток. Продолжайте, только если он одинаковый, и подтвердите на обоих.</li>
</ol>
<p>Всё. Новое устройство получает ваш никнейм и ваши контакты, и дальше сообщения от них приходят на оба устройства.</p>
<h2 id="зачем-сверка-отпечатка">Зачем сверка отпечатка</h2>
<p>Код привязки — единственное, что идёт вне шифрования. Тот, кто его скопировал — со скриншота или из-за плеча, — мог бы попробовать ответить первым и выдать своё устройство за ваше основное. Тогда новое устройство показало бы <em>его</em> отпечаток, а не ваш. Поэтому ничего секретного не передаётся, пока человек не посмотрит на оба экрана и не скажет «совпадает» на каждом. Это та же сверка номеров безопасности, что с контактом, только один раз и с самим собой.</p>
<h2 id="свои-ключи-а-не-копия">Свои ключи, а не копия</h2>
<p>Очевидный короткий путь — скопировать всё состояние на второе устройство — не работает: ratchet двух копий расходится на первом же сообщении, и обе ломаются. Поэтому у каждого устройства свои ключи, а первое, основное, подписывает их список ключом вашей личности.</p>
<ul>
<li><strong>Отпечатки не меняются.</strong> Личность — по-прежнему ключ основного устройства; никому не нужно проверять вас заново.</li>
<li><strong>Контакты проверяют список.</strong> Контакт принимает список устройств, только если его подписала ваша личность, и говорит с каждым устройством из него в своей сессии.</li>
<li><strong>Каждое сообщение уходит по разу на устройство.</strong> Каждому устройству контакта, в его очередь, и копией каждому вашему, так что ноутбук показывает то, что вы отправили с телефона.</li>
</ul>
<h2 id="что-переносится-а-что-нет">Что переносится, а что нет</h2>
<ul>
<li><strong>Контакты переносятся</strong>, с вашими именами для них и отметками проверки.</li>
<li><strong>История — нет.</strong> Новое устройство начинает с пустых чатов. Копирование вынесло бы все старые сообщения из-под защиты одного устройства под защиту другого, а исчезающие сообщения пришлось бы отслеживать на обоих.</li>
<li><strong>Группы в 0.12 оставались на основном устройстве</strong>; с 0.13 они доходят до всех устройств.</li>
<li><strong>Документы</strong>, которые вы отправляете, пока доходят только до основного устройства собеседника, и ваши другие устройства их копии не получают.</li>
<li><strong>Контакты инкогнито остаются</strong> на месте: у каждого из них своя личность.</li>
</ul>
<h2 id="если-устройство-потеряно">Если устройство потеряно</h2>
<ul>
<li>Потерян ноутбук или планшет: удалите его с основного. Оно сохранит то, что было, сообщит об удалении и больше ничего не прочитает и не отправит; контакты перестанут ему писать.</li>
<li>Потеряно основное: остальные работают, но добавлять и удалять устройства нельзя, пока вы не восстановите основное из резервной копии.</li>
<li>Пароль под принуждением стирает только то устройство, на котором его ввели. Подписанная команда «стереть всё» позволила бы украденному основному устройству стереть остальные.</li>
</ul>
<h2 id="что-узнают-другие-честно">Что узнают другие, честно</h2>
<ul>
<li><strong>Каждое устройство — ещё одна дверь.</strong> Украденный незаблокированный ноутбук прочтёт то же, что телефон. Блокируйте его и удаляйте, если потерян.</li>
<li><strong>Контакты</strong> видят, сколько у вас устройств, и их ключи. Метки вроде «телефон» или «ноутбук» остаются на ваших устройствах.</li>
<li><strong>Relay</strong> видит сообщение вам как запись на каждое устройство и может связать эти очереди как устройства одного человека. Без Tor их связывают и IP-адреса. Прочитать он по-прежнему ничего не может.</li>
</ul>
<h2 id="одно-изменение-по-дороге">Одно изменение по дороге</h2>
<p>В первой версии проекта сообщение уходило одной записью с шифртекстом для каждого устройства внутри. При планировании кода выяснилось, что так не помещается: длинное сообщение или кусок документа, умноженные на семь устройств, больше предела кадра relay, и каждое устройство получало бы все копии. Отдельные записи, по одной на устройство, дешевле и не показывают relay ничего, чего он и так не видит. Об этом — поправка в описании решения.</p>
<p>Полное описание — в ADR-028.</p>
]]></description>
</item>
<item>
<title>Small private groups that nobody can find: termchat.app 0.10</title>
<link>https://termchat.app/blog/small-groups/</link>
<guid>https://termchat.app/blog/small-groups/</guid>
<pubDate>Wed, 18 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>Until now termchat.app had one-to-one chats only. But people talk in small circles too: a family, a team, a few friends who share a relay. Version 0.10 adds groups for them, and only for them.</p>
<h2 id="what-a-group-is-here">What a group is here</h2>
<ul>
<li><strong>Up to 32 people</strong>, the one who made it included.</li>
<li><strong>The one who makes a group is its admin.</strong> Only the admin adds and removes members, and only from their own contacts.</li>
<li><strong>No links that anyone can use, no search, no public groups.</strong> Nobody can find a group. You get into one only when the admin invites you, and nothing happens until you accept.</li>
<li><strong>The same chat as one to one:</strong> answers, edits, deletes, reactions (they show how many chose each one) and a disappearing timer that the admin sets for everyone.</li>
</ul>
<p>In the terminal: Ctrl+P, then g for a new group; inside a group, Ctrl+R shows the members. In the desktop app: <strong>+ New</strong> above the groups. On Android: <strong>New group</strong> in the menu.</p>
<p>Most group chats are built to grow. These are built to stay small.</p>
<h2 id="how-it-is-encrypted">How it is encrypted</h2>
<p>With Megolm from vodozemac, the group ratchet Matrix uses, next to the Olm we already use for chats. Nothing is combined in a new way.</p>
<ul>
<li>Each member writes with a Megolm session of their own and hands its key to every other member <strong>over Olm, one to one</strong>.</li>
<li><strong>A new member reads nothing said before they joined.</strong> They get only the current keys. History for newcomers is off by design.</li>
<li><strong>A removed member reads nothing after.</strong> Everyone starts a new session, and the group moves to a new queue, so the removed member does not even know where it now lives.</li>
<li>Sessions also renew after 100 messages or 7 days.</li>
<li>Every message names its sender inside the encryption, and keys are filed under the member who brought them, so one member cannot write as another.</li>
</ul>
<h2 id="members-who-are-not-each-others-contacts">Members who are not each other’s contacts</h2>
<p>In a group of eight, you may know only the admin. How do you know “Bob” is Bob? The admin signs the member list with their identity key, and your app shows only people on the latest list it has verified. Your trust in them is the admin’s word, and the app says so: “The admin added them. Compare safety numbers in person to be sure.”</p>
<h2 id="what-the-relay-sees-honestly">What the relay sees, honestly</h2>
<p>A group has one queue on the admin’s relay, with a separate reader for each member. The relay keeps every message until each reader has taken it, or 14 days.</p>
<ul>
<li><strong>It sees the size of the group.</strong> It knows how many readers a queue has. That is the main new leak, and we accepted it for groups this small.</li>
<li>It sees when a message is written and when each reader takes it, as with any queue.</li>
<li>Key shares come in bursts when someone joins or leaves, so it can notice that membership changed.</li>
<li>It does <strong>not</strong> see the group’s name, the member list, who the admin is, or a single message.</li>
<li>With Tor, it cannot tell which of its other queues belong to a group’s readers, except by timing. Without Tor, a member’s IP links their connections.</li>
</ul>
<h2 id="choices-we-did-not-make">Choices we did not make</h2>
<ul>
<li><strong>One copy per member</strong> (pairwise fan-out): up to 32·31 queues, and each message written 31 times at once, a burst the relay can see.</li>
<li><strong>MLS or Signal’s Sender Keys:</strong> not in vodozemac, and we do not build our own cryptography.</li>
<li><strong>Any member can invite:</strong> a group then grows past what its admin agreed to. We will revisit it if people ask.</li>
</ul>
<h2 id="limits-for-now">Limits for now</h2>
<p>Groups carry text only, no documents yet. If the admin loses their device, the group stays readable but cannot change; members can make a new one. Everyone in a group needs 0.10: the admin can invite only contacts whose app understands groups, and the app says why when it cannot.</p>
<p>The full design is in ADR-027.</p>
]]></description>
</item>
<item>
<title>Маленькие закрытые группы, которые никто не найдёт: termchat.app 0.10</title>
<link>https://termchat.app/ru/blog/small-groups/</link>
<guid>https://termchat.app/ru/blog/small-groups/</guid>
<pubDate>Wed, 18 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>До сих пор в termchat.app были только переписки один на один. Но люди общаются и небольшими кругами: семья, команда, несколько друзей на одном relay. Версия 0.10 добавляет группы для них, и только для них.</p>
<h2 id="что-здесь-называется-группой">Что здесь называется группой</h2>
<ul>
<li><strong>До 32 человек</strong>, включая создателя.</li>
<li><strong>Кто создал группу, тот её администратор.</strong> Добавлять и удалять участников может только он, и только из своих контактов.</li>
<li><strong>Нет ссылок, по которым может войти кто угодно, нет поиска, нет публичных групп.</strong> Найти группу нельзя. Попасть в неё можно только по приглашению администратора, и ничего не происходит, пока вы его не примете.</li>
<li><strong>Всё как в обычном чате:</strong> ответы, правка, удаление, реакции (видно, сколько человек выбрали каждую) и таймер исчезающих сообщений, который администратор задаёт для всех.</li>
</ul>
<p>В терминале: Ctrl+P, потом g — новая группа; внутри группы Ctrl+R показывает участников. В приложении для компьютера: <strong>+ New</strong> над списком групп. На Android: <strong>New group</strong> в меню.</p>
<p>Большинство групповых чатов сделаны, чтобы расти. Эти сделаны, чтобы оставаться маленькими.</p>
<h2 id="как-она-зашифрована">Как она зашифрована</h2>
<p>Megolm из vodozemac — групповой ratchet, которым пользуется Matrix, рядом с Olm, на котором у нас работают переписки. Ничего не комбинируется по-новому.</p>
<ul>
<li>Каждый участник пишет своей сессией Megolm и передаёт её ключ каждому другому участнику <strong>через Olm, один на один</strong>.</li>
<li><strong>Новый участник не читает ничего, что было сказано до него.</strong> Он получает только текущие ключи. История для новичков отключена намеренно.</li>
<li><strong>Удалённый участник не читает ничего после.</strong> Все начинают новые сессии, а группа переезжает в новую очередь, так что удалённый даже не знает, где она теперь.</li>
<li>Сессии обновляются и сами: после 100 сообщений или 7 дней.</li>
<li>Каждое сообщение внутри шифрования называет отправителя, а ключи записываются за тем, кто их принёс, поэтому один участник не может писать от имени другого.</li>
</ul>
<h2 id="участники-которые-не-в-контактах-друг-у-друга">Участники, которые не в контактах друг у друга</h2>
<p>В группе из восьми человек вы можете знать только администратора. Откуда известно, что «Боб» — это Боб? Администратор подписывает список участников своим ключом личности, и приложение показывает только людей из последнего проверенного списка. Доверие к ним — это слово администратора, и приложение так и пишет: участника добавил администратор, для уверенности сверьте номера безопасности при встрече.</p>
<h2 id="что-видит-relay-честно">Что видит relay, честно</h2>
<p>У группы одна очередь на relay администратора, с отдельным читателем для каждого участника. Relay хранит сообщение, пока его не заберёт каждый читатель, но не дольше 14 дней.</p>
<ul>
<li><strong>Он видит размер группы.</strong> Он знает, сколько у очереди читателей. Это главная новая утечка, и для таких маленьких групп мы её приняли.</li>
<li>Он видит, когда сообщение записано и когда каждый читатель его забрал, как и в любой очереди.</li>
<li>Ключи рассылаются пачкой, когда кто-то входит или уходит, так что он может заметить смену состава.</li>
<li>Он <strong>не</strong> видит название группы, список участников, кто администратор, и ни одного сообщения.</li>
<li>С Tor он не может сказать, какие из его других очередей принадлежат читателям группы, разве что по времени. Без Tor IP участника связывает его подключения.</li>
</ul>
<h2 id="что-мы-не-стали-делать">Что мы не стали делать</h2>
<ul>
<li><strong>Отдельная копия каждому участнику</strong> (pairwise fan-out): до 32·31 очередей, и каждое сообщение пишется 31 раз разом — такую пачку relay видит.</li>
<li><strong>MLS или Sender Keys из Signal:</strong> их нет в vodozemac, а свою криптографию мы не пишем.</li>
<li><strong>Приглашать может любой участник:</strong> тогда группа вырастает больше, чем согласился администратор. Вернёмся к этому, если попросят.</li>
</ul>
<h2 id="ограничения-пока">Ограничения пока</h2>
<p>В группах только текст, документов пока нет. Если администратор потеряет устройство, группа останется читаемой, но меняться больше не сможет; участники могут создать новую. Всем в группе нужна 0.10: администратор может пригласить только тех, чьё приложение понимает группы, и приложение объясняет, почему нельзя.</p>
<p>Полное описание — в ADR-027.</p>
]]></description>
</item>
<item>
<title>termchat.app 0.10.0</title>
<link>https://termchat.app/changelog/#v0.10.0</link>
<guid>https://termchat.app/changelog/#v0.10.0</guid>
<pubDate>Tue, 17 Nov 2026 22:11:29 GMT</pubDate>
<description><![CDATA[<p>Small private groups (ADR-027).</p>
<ul>
<li>Up to 32 people. The one who makes a group is its admin: only they
invite their own contacts and remove members. There are no links that
anyone can use and no search: nobody can find a group.</li>
<li>Megolm from vodozemac, the group ratchet Matrix uses, with keys shared
over Olm one to one. A new member reads nothing said before they
joined; a removed one nothing after: the group moves to a new queue and
everyone starts a new session.</li>
<li>Answers, edits, deletes and reactions as in a chat; reactions show how
many chose each one. The admin sets the disappearing timer for all.</li>
<li>Members who are not each other’s contacts can still read each other:
the admin signs the member list. Compare safety numbers to be sure.</li>
<li>The relay sees a group queue and how many read it: a group’s size is
visible to its operator. It cannot read the name, the members or the
messages.</li>
<li>Terminal: Ctrl+P, g for a new group; in a group Ctrl+R shows the
members. Desktop: + New above the groups; double-click a message to
answer it. Android: New group in the menu.</li>
<li>Groups carry text only for now, no documents.</li>
<li>Desktop: text fields in dialogs were invisible against the window;
they show now.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.9.2</title>
<link>https://termchat.app/changelog/#v0.9.2</link>
<guid>https://termchat.app/changelog/#v0.9.2</guid>
<pubDate>Tue, 17 Nov 2026 15:52:50 GMT</pubDate>
<description><![CDATA[<ul>
<li>Documentation: a user guide at termchat.app/docs, in English and
Russian, with every step checked. The manual in the terminal client
(Ctrl+P, m) shows the same guide.</li>
<li>Terminal: a message with several lines keeps them, and the quote over
an answer shows its first line. They were joined into one.</li>
<li>macOS: the desktop app has a rounded Dock icon like other apps, not a
full square.</li>
<li>The wipe dialog says the relay deletes your queues; “forgets your key”
was left over from before anonymous queues.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.9.1</title>
<link>https://termchat.app/changelog/#v0.9.1</link>
<guid>https://termchat.app/changelog/#v0.9.1</guid>
<pubDate>Tue, 17 Nov 2026 14:49:12 GMT</pubDate>
<description><![CDATA[<ul>
<li>Answers, edits, deletes and reactions now work when the two of you
updated at different times. If one side reached 0.9.0 while the other
was still on 0.8, the chat stayed without them on one phone and had
them only for one’s own messages on the other. The app that updated
first needs 0.9.1; the chat mends itself at the next connection
(ADR-026).</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.9.0</title>
<link>https://termchat.app/changelog/#v0.9.0</link>
<guid>https://termchat.app/changelog/#v0.9.0</guid>
<pubDate>Tue, 17 Nov 2026 12:21:21 GMT</pubDate>
<description><![CDATA[<p>Answers, edits, deletes and reactions (ADR-025).</p>
<ul>
<li>Answer a particular message. The answer points at it and shows its first
line; it never copies the text, so a disappearing message still goes on
time.</li>
<li>Edit or delete your own messages for both of you. Edits keep the timer;
no history is kept. A delete is a request: a copy or screenshot the other
side made stays.</li>
<li>React with one of seven signs, drawn by termchat.app as arcade sprites:
like, love, laugh, wow, sad, thanks, dislike.</li>
<li>Terminal: Shift+Up or Ctrl+N picks a message; Enter answers, e edits,
d deletes, 1 to 7 react. Desktop: right-click a message. Android: long
press.</li>
<li><code>termchat recv --json</code> prints edits, deletes and reactions as events,
and <code>id</code> and <code>reply_to</code> with each message.</li>
<li>Contacts still on 0.8 see one “could not be decrypted” line and one
“1 message lost” when your app first says what it reads. Nothing is
lost. Answers and reactions work in a chat once both sides run 0.9.</li>
<li>From now on a newer kind of message is skipped quietly by older apps.</li>
<li><code>termchat invite</code> waits until its keys are on the relay, so the first
<code>termchat add</code> from it no longer times out.</li>
</ul>]]></description>
</item>
<item>
<title>Answers, edits and reactions without telling the server: termchat.app 0.9</title>
<link>https://termchat.app/blog/answers-and-reactions/</link>
<guid>https://termchat.app/blog/answers-and-reactions/</guid>
<pubDate>Tue, 17 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>Answering a particular message, fixing a typo, taking something back, a quick 👍 instead of a whole reply: people expect these from any messenger, and termchat.app had none of them. Version 0.9 adds all four, without giving the relay anything new to look at.</p>
<h2 id="what-you-can-do-now">What you can do now</h2>
<ul>
<li><strong>Answer</strong> a message. The answer points at it and shows its first line above your text.</li>
<li><strong>Edit</strong> your own message. The other side sees the new text and an “edited” mark.</li>
<li><strong>Delete</strong> your own message for both of you. A line “message deleted” stays, so nobody wonders why the conversation jumps.</li>
<li><strong>React</strong> with one of seven signs: like, love, laugh, wow, sad, thanks and dislike.</li>
</ul>
<p>In the terminal, Shift+Up or Ctrl+N picks a message: Enter answers, e edits, d deletes, 1 to 7 react. In the desktop app, right-click a message. On Android, long press it.</p>
<h2 id="what-the-relay-sees">What the relay sees</h2>
<p>Nothing new. An answer, an edit, a delete or a reaction is one more message inside the Olm encryption, padded to the same sizes as every other. A reaction looks to the relay exactly like a short “ok”. It still sees that something was sent, and when, as with any message; the threat model says so.</p>
<h2 id="decisions-worth-explaining">Decisions worth explaining</h2>
<ul>
<li><strong>An answer is a pointer, not a quote.</strong> It carries a random id of the message, never its text. Your app shows the quote from its own copy, so a disappearing message still disappears on time; when it is gone, the answer says “message no longer here”.</li>
<li><strong>Edits keep the timer and keep no history.</strong> A disappearing message does not live longer because it was fixed, and the old text is wiped, not kept somewhere for later.</li>
<li><strong>A delete is a request.</strong> The other app removes the message and wipes the text. A modified app, a screenshot or a backup keeps what it kept. The app says “deleted for both”, never “deleted everywhere”.</li>
<li><strong>Only your own messages.</strong> A contact cannot edit or delete what you wrote, even by naming its id: each side names its own messages, and changes reach only the sender’s.</li>
<li><strong>Seven fixed reactions, drawn by us.</strong> Any emoji or free text as a reaction would be a second text channel past every limit, and emoji break column widths in a terminal. So there are seven, by number, drawn by termchat.app itself as 1980s arcade sprites in your theme’s colours: the same picture on every phone and computer. In the terminal they are one-column signs: ▲ ♥ ☺ ◎ ☹ ✧ ▼.</li>
</ul>
<h2 id="updating-honestly">Updating, honestly</h2>
<p>Contacts still on 0.8 cannot read the new kinds of message. Your app first tells each contact what it reads, once, and until their app says the same, it sends them plain messages and offers no answers or reactions in that chat. The price: a contact on 0.8 sees one “could not be decrypted” line and one “1 message lost” when that first note arrives. Nothing is lost in fact. From 0.9 on, a newer kind of message is skipped quietly, so the next new feature will not cost even that.</p>
<h2 id="for-scripts">For scripts</h2>
<p><code>termchat recv --json</code> now prints the id of each message, what it answers, and edits, deletes and reactions as events of their own. A server can see that you put a 👍 on “backup failed”.</p>
<p>The full design is in ADR-025.</p>
]]></description>
</item>
<item>
<title>Ответы, правка и реакции, о которых сервер не знает: termchat.app 0.9</title>
<link>https://termchat.app/ru/blog/answers-and-reactions/</link>
<guid>https://termchat.app/ru/blog/answers-and-reactions/</guid>
<pubDate>Tue, 17 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>Ответить на конкретное сообщение, исправить опечатку, забрать сказанное обратно, поставить 👍 вместо целого ответа — этого ждут от любого мессенджера, а в termchat.app не было ничего из этого. Версия 0.9 добавляет все четыре вещи и не даёт relay ничего нового для наблюдения.</p>
<h2 id="что-теперь-можно">Что теперь можно</h2>
<ul>
<li><strong>Ответить</strong> на сообщение. Ответ указывает на него и показывает его первую строку над вашим текстом.</li>
<li><strong>Исправить</strong> своё сообщение. Собеседник увидит новый текст и пометку «изменено».</li>
<li><strong>Удалить</strong> своё сообщение у обоих. Остаётся строка «сообщение удалено», чтобы было понятно, почему разговор прыгает.</li>
<li><strong>Отреагировать</strong> одним из семи знаков: нравится, люблю, смешно, ого, грустно, спасибо и не нравится.</li>
</ul>
<p>В терминале Shift+↑ или Ctrl+N выбирают сообщение: Enter — ответить, e — исправить, d — удалить, 1–7 — реакция. В приложении для компьютера — правый клик по сообщению. На Android — долгое нажатие.</p>
<h2 id="что-видит-relay">Что видит relay</h2>
<p>Ничего нового. Ответ, правка, удаление или реакция — ещё одно сообщение внутри шифрования Olm, дополненное до тех же размеров, что и все остальные. Реакция для relay выглядит ровно как короткое «ок». Он по-прежнему видит, что что-то отправлено и когда, как и для любого сообщения; модель угроз говорит об этом прямо.</p>
<h2 id="решения-которые-стоит-объяснить">Решения, которые стоит объяснить</h2>
<ul>
<li><strong>Ответ — это указатель, а не цитата.</strong> В нём случайный id сообщения, а не его текст. Цитату ваше приложение берёт из своей копии, поэтому исчезающее сообщение всё равно исчезает вовремя; когда его нет, ответ пишет «сообщения уже нет».</li>
<li><strong>Правка сохраняет таймер и не хранит историю.</strong> Исчезающее сообщение не живёт дольше оттого, что его исправили, а старый текст затирается, а не откладывается куда-то.</li>
<li><strong>Удаление — это просьба.</strong> Приложение собеседника убирает сообщение и затирает текст. Изменённое приложение, скриншот или резервная копия сохранят то, что сохранили. Приложение пишет «удалено у обоих», а не «удалено везде».</li>
<li><strong>Только свои сообщения.</strong> Собеседник не может исправить или удалить то, что написали вы, даже назвав его id: каждая сторона называет свои сообщения сама, и изменения применяются только к сообщениям отправителя.</li>
<li><strong>Семь фиксированных реакций, нарисованных нами.</strong> Любой эмодзи или текст в качестве реакции был бы вторым текстовым каналом в обход всех лимитов, а эмодзи ломают ширину колонок в терминале. Поэтому их семь, по номерам, и рисует их сам termchat.app — спрайтами аркад 80-х в цветах вашей темы, одинаково на любом телефоне и компьютере. В терминале это знаки шириной в одну колонку: ▲ ♥ ☺ ◎ ☹ ✧ ▼.</li>
</ul>
<h2 id="об-обновлении-честно">Об обновлении честно</h2>
<p>Контакты на 0.8 не умеют читать новые виды сообщений. Ваше приложение один раз сообщает каждому контакту, что оно умеет читать, и пока его приложение не ответит тем же, отправляет обычные сообщения и не предлагает в этом чате ответы и реакции. Цена: контакт на 0.8, когда придёт эта первая отметка, увидит одну строку «could not be decrypted» и одну «1 message lost». На деле ничего не теряется. С 0.9 незнакомые виды сообщений пропускаются молча, так что следующая новая функция не будет стоить даже этого.</p>
<h2 id="для-скриптов">Для скриптов</h2>
<p><code>termchat recv --json</code> теперь печатает id каждого сообщения, на что оно отвечает, а правки, удаления и реакции — отдельными событиями. Сервер может узнать, что вы поставили 👍 на «бэкап не прошёл».</p>
<p>Полное описание решения — в ADR-025.</p>
]]></description>
</item>
<item>
<title>termchat.app 0.8.2</title>
<link>https://termchat.app/changelog/#v0.8.2</link>
<guid>https://termchat.app/changelog/#v0.8.2</guid>
<pubDate>Mon, 16 Nov 2026 17:16:34 GMT</pubDate>
<description><![CDATA[<ul>
<li>Desktop: buttons, text fields, drop-down lists and check boxes are
readable in light themes. They used to stay dark grey with dark text.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.8.1</title>
<link>https://termchat.app/changelog/#v0.8.1</link>
<guid>https://termchat.app/changelog/#v0.8.1</guid>
<pubDate>Mon, 16 Nov 2026 16:45:50 GMT</pubDate>
<description><![CDATA[<ul>
<li>Android: accepting a contact request now answers them at once. Since
0.7.0 the answer went out only after the app was locked and unlocked.</li>
<li>A contact who takes a fresh invite right away no longer gets stuck when
the relay has no key for them yet: the app asks again 15 s later.</li>
<li>A contact deleted and added again no longer hangs.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.8.0</title>
<link>https://termchat.app/changelog/#v0.8.0</link>
<guid>https://termchat.app/changelog/#v0.8.0</guid>
<pubDate>Mon, 16 Nov 2026 16:03:52 GMT</pubDate>
<description><![CDATA[<p>Scripts and servers can now write to you (ADR-024).</p>
<ul>
<li><code>termchat init</code>, <code>invite</code>, <code>add</code>, <code>contacts</code>, <code>send</code>, <code>send-file</code> and
<code>recv</code> run without the screen, so a cron job, a CI run or the end of a
long command can send you an end-to-end encrypted message, or read your
answer. See “Scripts and servers” in the user guide (termchat.app/docs).</li>
<li>Give each server an identity of its own: its password sits on that
server. It cannot accept requests; you make the link from your app.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.7.1</title>
<link>https://termchat.app/changelog/#v0.7.1</link>
<guid>https://termchat.app/changelog/#v0.7.1</guid>
<pubDate>Mon, 16 Nov 2026 12:11:25 GMT</pubDate>
<description><![CDATA[<ul>
<li>A contact who deleted you, or moved to a new device, and adds your
invite again now learns your name. Before, they saw only the
fingerprint, and your first answer could go to a queue that was gone.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.7.0</title>
<link>https://termchat.app/changelog/#v0.7.0</link>
<guid>https://termchat.app/changelog/#v0.7.0</guid>
<pubDate>Mon, 16 Nov 2026 11:23:33 GMT</pubDate>
<description><![CDATA[<p>The relay no longer knows who talks to whom (ADR-023). This release
breaks with every earlier one: read this before you update.</p>
<ul>
<li>The relay knows anonymous queues, not people. It stores no keys and
learns no senders: anyone who has a queue’s address can write to it,
and only the address’s owner can read it. Each contact gets a queue of
their own and, with Tor, its own circuit.</li>
<li><strong>Every contact must exchange invites again.</strong> Old contacts show “needs
a new invite”. Ask them for one, or send yours: the chat, its history
and the contact’s name stay. Old invites no longer work.</li>
<li>Blocking a contact deletes their queue: they cannot put a single byte
in it. Unblocking makes a new one.</li>
<li>Reports still reach the relay operator, but the relay cannot ban
anyone any more: it does not know who wrote.</li>
<li>A contact on another relay can be added.</li>
<li>Settings → security → connections: one connection for all contacts
uses less battery, but lets the relay see your queues together. Off by
default.</li>
<li>The setting for requests without an invite code is gone: invites
without a code no longer work, so such requests are always dropped.</li>
<li>The relay still sees when each queue is written to and read; timing can
link queues. Without Tor, your IP address links your connections.</li>
<li>Relay operators: the upgrade erases the old database. <code>--host</code> is no
longer needed. Clients older than 0.7.0 are told to update.</li>
</ul>]]></description>
</item>
<item>
<title>Why should the relay know who talks to whom? termchat.app 0.7.0 moves to anonymous queues</title>
<link>https://termchat.app/blog/anonymous-queues/</link>
<guid>https://termchat.app/blog/anonymous-queues/</guid>
<pubDate>Mon, 16 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>termchat.app is an end-to-end encrypted messenger for the terminal, the desktop and Android. Until now, our relay could not read a single message, but it knew a lot about them: who sent each one, to whom, and when. Version 0.7.0 takes that away. This is how, what the relay still sees, and what it cost.</p>
<h2 id="what-the-relay-knew">What the relay knew</h2>
<p>Up to 0.6.3, every client logged in to the relay with its identity key and a signature. Each envelope named the recipient’s key. So the relay knew:</p>
<ul>
<li><strong>the sender</strong>, from the logged-in connection;</li>
<li><strong>the recipient</strong>, from the envelope;</li>
<li><strong>the time</strong> of every message.</li>
</ul>
<p>Put together, that is the social graph: who talks to whom, how often, at what hours. Encryption hides what you say, not who you say it to. Our threat model said so plainly, and incognito contacts (ADR-014) helped for people who turned them on. But the default was a relay that could draw your circle of contacts.</p>
<p>So we asked: why does the relay need to know any of this?</p>
<h2 id="the-answer-it-does-not">The answer: it does not</h2>
<p>A relay has to move bytes. It cannot avoid seeing when they arrive and leave. But it does not need to know whose bytes they are. The SimpleX messenger showed that a relay can work with anonymous queues only, and we took the same idea, without any new cryptography.</p>
<p>In 0.7.0 the relay knows no users. It knows <strong>queues</strong>. A queue has:</p>
<ul>
<li>a random <code>recv_id</code>, to read it;</li>
<li>another random <code>send_id</code>, to write to it;</li>
<li>a random token, the owner’s secret. The relay keeps only its SHA-256.</li>
</ul>
<p>Nobody logs in. Anyone who knows a queue’s <code>send_id</code> can write to it; only the owner, with the token, can read it.</p>
<h2 id="how-two-people-meet">How two people meet</h2>
<ol>
<li>Your invite carries the address of your <strong>invite queue</strong>. Strangers can write only there.</li>
<li>Someone adds your invite and writes into that queue: a contact request, and then the address of a queue they made just for you.</li>
<li>You accept. Your client makes a queue just for them, sends its address, and only then says “accepted”.</li>
<li>From then on each of you writes to the queue the other made. Those addresses travel only inside the encrypted messages, so only the two of you know them.</li>
</ol>
<p>The relay sees envelopes going into queue X and coming out of queue Y. It does not see names, keys or senders. The envelope itself names nobody: both names are inside the ciphertext, where the client checks them.</p>
<h2 id="one-connection-per-contact">One connection per contact</h2>
<p>Anonymous queues mean little if one connection reads all of them: the relay would see “these queues belong to one person” and draw the graph again. So by default <strong>each contact gets a connection of its own</strong>, and with Tor, a circuit of its own.</p>
<p>That costs battery and startup time, especially on a phone with many contacts. If you prefer, settings → security → connections puts all contacts of an identity on one connection. Then the relay sees your queues together, and the app says so.</p>
<h2 id="what-we-gave-up">What we gave up</h2>
<ul>
<li><strong>Bans after reports.</strong> A report still goes to the relay operator with the text you chose to disclose. But the relay cannot ban anyone: it does not know who wrote. Instead, blocking a contact <strong>deletes their queue</strong>, so they cannot put a single byte in it. That is stronger than before for the person blocking.</li>
<li><strong>Your contacts, once.</strong> Version 1 addressed people by key; version 2 addresses queues. There is no way to carry an old conversation across without a new invite. After you update, every contact shows “needs a new invite”. Ask them for one, or send yours: the chat, its history and their name stay.</li>
<li><strong>Old invites.</strong> They named only your identity, with no queue. They no longer work.</li>
</ul>
<h2 id="what-the-relay-still-sees">What the relay still sees</h2>
<p>We will not call this “untraceable”. The relay still sees:</p>
<ul>
<li><strong>timing</strong>: when each queue is written to and when it is read. A message into one queue followed by a read from another can link them. Only a mixnet with cover traffic hides that, and we do not have one;</li>
<li><strong>your IP address</strong>, unless Tor is on. Without Tor, the shared IP links your connections;</li>
<li><strong>size</strong>, rounded up to 512, 4096 or 16384 bytes;</li>
<li>roughly <strong>how many contacts</strong> you have, from how many connections come up when you unlock.</li>
</ul>
<p>All of this is in the <a href="/threat-model/">threat model</a>, and the decision with its trade-offs is in ADR-023.</p>
<h2 id="updating">Updating</h2>
<ul>
<li>Update the app, then exchange invites with your contacts once.</li>
<li>If you run a relay: update it. The upgrade erases the old database, which held exactly the keys and the graph we no longer want anyone to keep. <code>--host</code> is no longer needed. Clients older than 0.7.0 are told to update.</li>
</ul>
]]></description>
</item>
<item>
<title>Зачем relay знать, кто с кем переписывается? termchat.app 0.7.0 переходит на анонимные очереди</title>
<link>https://termchat.app/ru/blog/anonymous-queues/</link>
<guid>https://termchat.app/ru/blog/anonymous-queues/</guid>
<pubDate>Mon, 16 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>termchat.app — мессенджер со сквозным шифрованием для терминала, компьютера и Android. До сих пор наш relay не мог прочитать ни одного сообщения, но знал о них много: кто отправил каждое, кому и когда. В версии 0.7.0 мы это у него отняли. Рассказываем, как, что relay всё ещё видит и чего это стоило.</p>
<h2 id="что-знал-relay">Что знал relay</h2>
<p>До 0.6.3 каждый клиент входил на relay ключом своей личности и подписью. Каждый конверт называл ключ получателя. Поэтому relay знал:</p>
<ul>
<li><strong>отправителя</strong> — по соединению, через которое тот вошёл;</li>
<li><strong>получателя</strong> — из конверта;</li>
<li><strong>время</strong> каждого сообщения.</li>
</ul>
<p>Вместе это граф общения: кто с кем говорит, как часто, в какие часы. Шифрование прячет, что вы говорите, но не кому. Наша модель угроз прямо об этом писала, и инкогнито-контакты (ADR-014) помогали тем, кто их включал. Но по умолчанию relay мог нарисовать круг ваших контактов.</p>
<p>Тогда мы спросили себя: а зачем relay всё это знать?</p>
<h2 id="ответ-незачем">Ответ: незачем</h2>
<p>Relay должен передавать байты. Не видеть, когда они приходят и уходят, он не может. Но знать, чьи это байты, ему не нужно. Мессенджер SimpleX показал, что relay может работать с одними анонимными очередями, и мы взяли ту же идею — без новой криптографии.</p>
<p>В 0.7.0 relay не знает пользователей. Он знает <strong>очереди</strong>. У очереди есть:</p>
<ul>
<li>случайный <code>recv_id</code>, чтобы её читать;</li>
<li>другой случайный <code>send_id</code>, чтобы в неё писать;</li>
<li>случайный токен — секрет владельца. Relay хранит только его SHA-256.</li>
</ul>
<p>Входа нет. Писать в очередь может любой, кто знает её <code>send_id</code>; читать — только владелец с токеном.</p>
<h2 id="как-знакомятся-двое">Как знакомятся двое</h2>
<ol>
<li>В вашем приглашении лежит адрес вашей <strong>очереди приглашения</strong>. Незнакомцы могут писать только туда.</li>
<li>Кто-то добавляет ваше приглашение и пишет в эту очередь: запрос контакта, а следом адрес очереди, которую он создал специально для вас.</li>
<li>Вы принимаете. Ваш клиент создаёт очередь специально для него, отправляет её адрес и только потом говорит «принято».</li>
<li>Дальше каждый пишет в очередь, которую создал другой. Эти адреса ходят только внутри зашифрованных сообщений, поэтому их знаете только вы двое.</li>
</ol>
<p>Relay видит, как конверты входят в очередь X и выходят из очереди Y. Имён, ключей и отправителей он не видит. Сам конверт никого не называет: оба имени внутри шифртекста, где их проверяет клиент.</p>
<h2 id="своё-соединение-для-каждого-контакта">Своё соединение для каждого контакта</h2>
<p>Анонимные очереди мало что дают, если одно соединение читает их все: relay увидит «эти очереди принадлежат одному человеку» и снова нарисует граф. Поэтому по умолчанию <strong>у каждого контакта своё соединение</strong>, а с Tor — своя цепочка.</p>
<p>Это стоит батареи и времени запуска, особенно на телефоне с большим числом контактов. Если вам так удобнее, настройки → security → соединения переводят все контакты личности на одно соединение. Тогда relay видит ваши очереди вместе, и приложение об этом прямо говорит.</p>
<h2 id="чем-мы-заплатили">Чем мы заплатили</h2>
<ul>
<li><strong>Банами по жалобам.</strong> Жалоба по-прежнему уходит оператору relay с тем текстом, который вы решили раскрыть. Но забанить кого-либо relay не может: он не знает, кто писал. Взамен блокировка контакта <strong>удаляет его очередь</strong>, и он больше не может положить в неё ни байта. Для того, кто блокирует, это сильнее, чем раньше.</li>
<li><strong>Вашими контактами — один раз.</strong> Версия 1 адресовала людей по ключу, версия 2 — очереди. Перенести старый разговор без нового приглашения нельзя. После обновления у каждого контакта будет пометка «нужно новое приглашение». Попросите у него новое или отправьте своё: чат, история и его имя сохранятся.</li>
<li><strong>Старыми приглашениями.</strong> Они называли только вашу личность, без очереди, и больше не работают.</li>
</ul>
<h2 id="что-relay-всё-ещё-видит">Что relay всё ещё видит</h2>
<p>Писать «невозможно отследить» мы не будем. Relay всё ещё видит:</p>
<ul>
<li><strong>время</strong>: когда в каждую очередь пишут и когда её читают. Сообщение в одну очередь, за которым следует чтение другой, может их связать. Скрыть это может только mixnet с фоновым трафиком, а его у нас нет;</li>
<li><strong>ваш IP-адрес</strong>, если Tor выключен. Без Tor общий IP связывает ваши соединения;</li>
<li><strong>размер</strong>, округлённый до 512, 4096 или 16384 байт;</li>
<li>примерно <strong>сколько у вас контактов</strong> — по числу соединений, которые поднимаются при разблокировке.</li>
</ul>
<p>Всё это есть в <a href="/ru/threat-model/">модели угроз</a>, а решение с его компромиссами — в ADR-023.</p>
<h2 id="как-обновиться">Как обновиться</h2>
<ul>
<li>Обновите приложение и один раз обменяйтесь приглашениями с контактами.</li>
<li>Если у вас свой relay — обновите его. Обновление стирает старую базу, где лежали именно те ключи и тот граф, которые мы больше никому не хотим оставлять. Флаг <code>--host</code> больше не нужен. Клиенты старше 0.7.0 получат просьбу обновиться.</li>
</ul>
]]></description>
</item>
<item>
<title>Encrypted messages from your servers, without a bot account: termchat.app 0.8 for scripts and cron</title>
<link>https://termchat.app/blog/scripts-and-servers/</link>
<guid>https://termchat.app/blog/scripts-and-servers/</guid>
<pubDate>Mon, 16 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>termchat.app started as a messenger for the terminal. But the terminal has another side: scripts, cron jobs, CI and servers that need to tell you something. Version 0.8 lets them.</p>
<h2 id="the-problem">The problem</h2>
<p>“The backup failed.” “The build is done.” “Disk at 95 %.” Most people send these through a Telegram bot, ntfy or email. That works, but:</p>
<ul>
<li>the text sits readable on someone else’s server;</li>
<li>a Telegram bot needs an account tied to a phone number;</li>
<li>answering back from your phone takes more plumbing still.</li>
</ul>
<p>End-to-end encryption from a shell script, without running infrastructure of your own, barely exists.</p>
<h2 id="what-08-adds">What 0.8 adds</h2>
<p><code>termchat</code> with no arguments still opens the chat screen. With a command, it does one thing and exits:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">termchat</span><span style="color:#9ECBFF"> send</span><span style="color:#9ECBFF"> alice</span><span style="color:#9ECBFF"> "backup failed on $(</span><span style="color:#B392F0">hostname</span><span style="color:#9ECBFF">)"</span></span>
<span class="line"><span style="color:#B392F0">make</span><span style="color:#9ECBFF"> release</span><span style="color:#E1E4E8">; </span><span style="color:#B392F0">termchat</span><span style="color:#9ECBFF"> send</span><span style="color:#9ECBFF"> alice</span><span style="color:#9ECBFF"> "release build: exit </span><span style="color:#79B8FF">$?</span><span style="color:#9ECBFF">"</span></span>
<span class="line"><span style="color:#B392F0">df</span><span style="color:#79B8FF"> -h</span><span style="color:#9ECBFF"> /</span><span style="color:#F97583"> |</span><span style="color:#B392F0"> termchat</span><span style="color:#9ECBFF"> send</span><span style="color:#9ECBFF"> alice</span></span>
<span class="line"><span style="color:#B392F0">termchat</span><span style="color:#9ECBFF"> recv</span><span style="color:#79B8FF"> --from</span><span style="color:#9ECBFF"> alice</span><span style="color:#79B8FF"> --wait</span><span style="color:#79B8FF"> 600</span><span style="color:#79B8FF"> --json</span></span></code></pre>
<p>A message from a script travels exactly like one from a person: Olm encryption, an anonymous queue on the relay, Tor if you turn it on. The relay cannot tell the two apart.</p>
<p>On a server every command also gets <code>--password-file</code>: without it termchat asks for the password at the keyboard, and a script has none. The setup below shows it in full.</p>
<h2 id="setting-up-a-server">Setting up a server</h2>
<p>Steps for Linux with systemd, run as root.</p>
<p><strong>1. Install termchat</strong> for every user of the server (it is one static binary):</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">curl</span><span style="color:#79B8FF"> -fsSL</span><span style="color:#9ECBFF"> https://raw.githubusercontent.com/prophecy1345/termchat/main/scripts/install.sh</span><span style="color:#F97583"> |</span><span style="color:#E1E4E8"> TERMCHAT_INSTALL_DIR</span><span style="color:#F97583">=</span><span style="color:#9ECBFF">/usr/local/bin</span><span style="color:#B392F0"> sh</span></span></code></pre>
<p><strong>2. A system user</strong> that owns the server’s identity and nothing else, its folder, and a random password that only it can read:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">useradd</span><span style="color:#79B8FF"> --system</span><span style="color:#79B8FF"> --home-dir</span><span style="color:#9ECBFF"> /var/lib/termchat-bot</span><span style="color:#79B8FF"> --shell</span><span style="color:#9ECBFF"> /usr/sbin/nologin</span><span style="color:#9ECBFF"> termchat-bot</span></span>
<span class="line"><span style="color:#B392F0">install</span><span style="color:#79B8FF"> -d</span><span style="color:#79B8FF"> -o</span><span style="color:#9ECBFF"> termchat-bot</span><span style="color:#79B8FF"> -g</span><span style="color:#9ECBFF"> termchat-bot</span><span style="color:#79B8FF"> -m</span><span style="color:#79B8FF"> 700</span><span style="color:#9ECBFF"> /var/lib/termchat-bot</span><span style="color:#9ECBFF"> /etc/termchat-bot</span></span>
<span class="line"><span style="color:#B392F0">head</span><span style="color:#79B8FF"> -c</span><span style="color:#79B8FF"> 30</span><span style="color:#9ECBFF"> /dev/urandom</span><span style="color:#F97583"> |</span><span style="color:#B392F0"> base64</span><span style="color:#F97583"> |</span><span style="color:#B392F0"> sudo</span><span style="color:#79B8FF"> -u</span><span style="color:#9ECBFF"> termchat-bot</span><span style="color:#9ECBFF"> sh</span><span style="color:#79B8FF"> -c</span><span style="color:#9ECBFF"> 'umask 077; cat &gt; /etc/termchat-bot/pw'</span></span></code></pre>
<p>A short name for running termchat as that user saves typing in the next steps:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">bot</span><span style="color:#E1E4E8">() { </span><span style="color:#B392F0">sudo</span><span style="color:#79B8FF"> -u</span><span style="color:#9ECBFF"> termchat-bot</span><span style="color:#9ECBFF"> env</span><span style="color:#9ECBFF"> TERMCHAT_HOME=/var/lib/termchat-bot</span><span style="color:#9ECBFF"> termchat</span><span style="color:#9ECBFF"> "</span><span style="color:#79B8FF">$@</span><span style="color:#9ECBFF">"</span><span style="color:#79B8FF"> --password-file</span><span style="color:#9ECBFF"> /etc/termchat-bot/pw</span><span style="color:#E1E4E8">; }</span></span></code></pre>
<p><strong>3. Make the identity.</strong> The nickname is what you will see in your app:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">bot</span><span style="color:#9ECBFF"> init</span><span style="color:#79B8FF"> --nickname</span><span style="color:#9ECBFF"> backup-box</span></span></code></pre>
<p><strong>4. Link it to you.</strong> In your app make an invite: Ctrl+O in the terminal and desktop apps, “Invite” on the phone. Give it to the server:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">bot</span><span style="color:#9ECBFF"> add</span><span style="color:#9ECBFF"> 'termchat:...'</span></span></code></pre>
<p><strong>5. Accept the request</strong> from <code>backup-box</code> in your app. Then check under which name the server sees you, and send a test:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">bot</span><span style="color:#9ECBFF"> contacts</span><span style="color:#6A737D">                # your nickname, fingerprint, "ok"</span></span>
<span class="line"><span style="color:#B392F0">bot</span><span style="color:#9ECBFF"> send</span><span style="color:#9ECBFF"> alice</span><span style="color:#9ECBFF"> "hello from $(</span><span style="color:#B392F0">hostname</span><span style="color:#9ECBFF">)"</span></span></code></pre>
<p><strong>6. Use it from systemd.</strong> The password file and <code>TERMCHAT_HOME</code> must be given in the unit, because a service does not see what you typed in your shell:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="ini"><code><span class="line"><span style="color:#6A737D"># /etc/systemd/system/disk-report.service</span></span>
<span class="line"><span style="color:#B392F0">[Service]</span></span>
<span class="line"><span style="color:#F97583">Type</span><span style="color:#E1E4E8">=oneshot</span></span>
<span class="line"><span style="color:#F97583">User</span><span style="color:#E1E4E8">=termchat-bot</span></span>
<span class="line"><span style="color:#F97583">Environment</span><span style="color:#E1E4E8">=</span><span style="color:#F97583">TERMCHAT_HOME</span><span style="color:#E1E4E8">=/var/lib/termchat-bot</span></span>
<span class="line"><span style="color:#F97583">ExecStart</span><span style="color:#E1E4E8">=/bin/sh -c </span><span style="color:#9ECBFF">'df -h / | /usr/local/bin/termchat send alice --password-file /etc/termchat-bot/pw'</span></span></code></pre>
<p>Add a <code>.timer</code> for a schedule. With cron instead, <code>crontab -u termchat-bot -e</code> and put the same two things in the line: <code>0 9 * * * TERMCHAT_HOME=/var/lib/termchat-bot /usr/local/bin/termchat send alice "good morning" --password-file /etc/termchat-bot/pw</code>.</p>
<p>One identity serves one command at a time: if two scripts run at once, the second exits with code 1 and says the identity is open elsewhere. Our own relay server now sends its owner a morning report and a message when a site goes down, set up exactly like this.</p>
<h2 id="decisions-worth-explaining">Decisions worth explaining</h2>
<ul>
<li><strong>The password never comes from the environment.</strong> Only from a file that must be yours and <code>chmod 600</code>, from stdin, or typed at a terminal. Every child process inherits the environment.</li>
<li><strong>One contact per send.</strong> There is no “send to everyone”: that would be a broadcast, and termchat.app has none by design.</li>
<li><strong>A server cannot accept requests.</strong> You make the link from your own device, so a server identity can never let a stranger in.</li>
<li><strong>Output is cleaned.</strong> Control characters from the other side never reach your terminal or log, and files are saved only into a folder you name, never opened.</li>
<li><strong>No background daemon.</strong> Each command connects and exits; there is no long-running process holding the password. Over Tor that costs 10 to 30 seconds per command, which is fine for alerts.</li>
<li><strong>Exit codes a script can use:</strong> 0 on the relay, 3 contact not found or ambiguous, 4 not taken in time (it goes with the next command), 5 cannot write to that contact.</li>
</ul>
<h2 id="be-honest-about-the-server">Be honest about the server</h2>
<p>A server identity is exactly as strong as the server. Its password sits next to its state, so whoever gets root there reads that identity’s messages and can write as it. That is why it should always be a separate identity that talks only to you, never your main one: it is a different key with different queues, so it is no way into your real contacts.</p>
<p>The full design is in ADR-024, and the commands are in the guide under <a href="/docs/scripts/">Scripts and servers</a>.</p>
]]></description>
</item>
<item>
<title>Зашифрованные сообщения с ваших серверов без бота с аккаунтом: termchat.app 0.8 для скриптов и cron</title>
<link>https://termchat.app/ru/blog/scripts-and-servers/</link>
<guid>https://termchat.app/ru/blog/scripts-and-servers/</guid>
<pubDate>Mon, 16 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>termchat.app начинался как мессенджер для терминала. Но у терминала есть и другая сторона: скрипты, cron, CI и серверы, которым нужно вам что-то сообщить. Версия 0.8 даёт им такую возможность.</p>
<h2 id="проблема">Проблема</h2>
<p>«Бэкап не прошёл». «Сборка закончилась». «Диск заполнен на 95 %». Обычно такое шлют через Telegram-бота, ntfy или почту. Это работает, но:</p>
<ul>
<li>текст лежит открытым на чужом сервере;</li>
<li>Telegram-боту нужен аккаунт, привязанный к номеру телефона;</li>
<li>чтобы ответить с телефона, нужна ещё больше обвязки.</li>
</ul>
<p>Сквозного шифрования прямо из shell-скрипта, без своей инфраструктуры, почти нет.</p>
<h2 id="что-добавила-08">Что добавила 0.8</h2>
<p><code>termchat</code> без аргументов по-прежнему открывает экран чата. С командой он делает одно дело и завершается:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">termchat</span><span style="color:#9ECBFF"> send</span><span style="color:#9ECBFF"> alice</span><span style="color:#9ECBFF"> "бэкап не прошёл на $(</span><span style="color:#B392F0">hostname</span><span style="color:#9ECBFF">)"</span></span>
<span class="line"><span style="color:#B392F0">make</span><span style="color:#9ECBFF"> release</span><span style="color:#E1E4E8">; </span><span style="color:#B392F0">termchat</span><span style="color:#9ECBFF"> send</span><span style="color:#9ECBFF"> alice</span><span style="color:#9ECBFF"> "сборка релиза: код </span><span style="color:#79B8FF">$?</span><span style="color:#9ECBFF">"</span></span>
<span class="line"><span style="color:#B392F0">df</span><span style="color:#79B8FF"> -h</span><span style="color:#9ECBFF"> /</span><span style="color:#F97583"> |</span><span style="color:#B392F0"> termchat</span><span style="color:#9ECBFF"> send</span><span style="color:#9ECBFF"> alice</span></span>
<span class="line"><span style="color:#B392F0">termchat</span><span style="color:#9ECBFF"> recv</span><span style="color:#79B8FF"> --from</span><span style="color:#9ECBFF"> alice</span><span style="color:#79B8FF"> --wait</span><span style="color:#79B8FF"> 600</span><span style="color:#79B8FF"> --json</span></span></code></pre>
<p>Сообщение от скрипта идёт ровно так же, как от человека: шифрование Olm, анонимная очередь на relay, Tor, если он включён. Relay их не различает.</p>
<p>На сервере у каждой команды есть ещё <code>--password-file</code>: без него termchat спрашивает пароль с клавиатуры, а у скрипта её нет. Ниже настройка целиком.</p>
<h2 id="как-завести-сервер">Как завести сервер</h2>
<p>Шаги для Linux с systemd, команды от root.</p>
<p><strong>1. Установите termchat</strong> для всех пользователей сервера (это один статический файл):</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">curl</span><span style="color:#79B8FF"> -fsSL</span><span style="color:#9ECBFF"> https://raw.githubusercontent.com/prophecy1345/termchat/main/scripts/install.sh</span><span style="color:#F97583"> |</span><span style="color:#E1E4E8"> TERMCHAT_INSTALL_DIR</span><span style="color:#F97583">=</span><span style="color:#9ECBFF">/usr/local/bin</span><span style="color:#B392F0"> sh</span></span></code></pre>
<p><strong>2. Системный пользователь</strong>, которому принадлежит только личность сервера, его папка и случайный пароль, который может прочитать только он:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">useradd</span><span style="color:#79B8FF"> --system</span><span style="color:#79B8FF"> --home-dir</span><span style="color:#9ECBFF"> /var/lib/termchat-bot</span><span style="color:#79B8FF"> --shell</span><span style="color:#9ECBFF"> /usr/sbin/nologin</span><span style="color:#9ECBFF"> termchat-bot</span></span>
<span class="line"><span style="color:#B392F0">install</span><span style="color:#79B8FF"> -d</span><span style="color:#79B8FF"> -o</span><span style="color:#9ECBFF"> termchat-bot</span><span style="color:#79B8FF"> -g</span><span style="color:#9ECBFF"> termchat-bot</span><span style="color:#79B8FF"> -m</span><span style="color:#79B8FF"> 700</span><span style="color:#9ECBFF"> /var/lib/termchat-bot</span><span style="color:#9ECBFF"> /etc/termchat-bot</span></span>
<span class="line"><span style="color:#B392F0">head</span><span style="color:#79B8FF"> -c</span><span style="color:#79B8FF"> 30</span><span style="color:#9ECBFF"> /dev/urandom</span><span style="color:#F97583"> |</span><span style="color:#B392F0"> base64</span><span style="color:#F97583"> |</span><span style="color:#B392F0"> sudo</span><span style="color:#79B8FF"> -u</span><span style="color:#9ECBFF"> termchat-bot</span><span style="color:#9ECBFF"> sh</span><span style="color:#79B8FF"> -c</span><span style="color:#9ECBFF"> 'umask 077; cat &gt; /etc/termchat-bot/pw'</span></span></code></pre>
<p>Чтобы не набирать длинную команду в следующих шагах, заведите короткое имя:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">bot</span><span style="color:#E1E4E8">() { </span><span style="color:#B392F0">sudo</span><span style="color:#79B8FF"> -u</span><span style="color:#9ECBFF"> termchat-bot</span><span style="color:#9ECBFF"> env</span><span style="color:#9ECBFF"> TERMCHAT_HOME=/var/lib/termchat-bot</span><span style="color:#9ECBFF"> termchat</span><span style="color:#9ECBFF"> "</span><span style="color:#79B8FF">$@</span><span style="color:#9ECBFF">"</span><span style="color:#79B8FF"> --password-file</span><span style="color:#9ECBFF"> /etc/termchat-bot/pw</span><span style="color:#E1E4E8">; }</span></span></code></pre>
<p><strong>3. Создайте личность.</strong> Никнейм — то, что вы увидите в приложении:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">bot</span><span style="color:#9ECBFF"> init</span><span style="color:#79B8FF"> --nickname</span><span style="color:#9ECBFF"> backup-box</span></span></code></pre>
<p><strong>4. Свяжите её с собой.</strong> В приложении создайте приглашение: Ctrl+O в терминале и десктопе, «Пригласить» на телефоне. Передайте его серверу:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">bot</span><span style="color:#9ECBFF"> add</span><span style="color:#9ECBFF"> 'termchat:...'</span></span></code></pre>
<p><strong>5. Примите запрос</strong> от <code>backup-box</code> в приложении. Затем посмотрите, под каким именем сервер видит вас, и отправьте пробное сообщение:</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="sh"><code><span class="line"><span style="color:#B392F0">bot</span><span style="color:#9ECBFF"> contacts</span><span style="color:#6A737D">                # ваш никнейм, отпечаток, "ok"</span></span>
<span class="line"><span style="color:#B392F0">bot</span><span style="color:#9ECBFF"> send</span><span style="color:#9ECBFF"> alice</span><span style="color:#9ECBFF"> "привет от $(</span><span style="color:#B392F0">hostname</span><span style="color:#9ECBFF">)"</span></span></code></pre>
<p><strong>6. Используйте из systemd.</strong> Файл пароля и <code>TERMCHAT_HOME</code> нужно указать в самой службе: служба не видит того, что вы задали в своей оболочке.</p>
<pre class="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="ini"><code><span class="line"><span style="color:#6A737D"># /etc/systemd/system/disk-report.service</span></span>
<span class="line"><span style="color:#B392F0">[Service]</span></span>
<span class="line"><span style="color:#F97583">Type</span><span style="color:#E1E4E8">=oneshot</span></span>
<span class="line"><span style="color:#F97583">User</span><span style="color:#E1E4E8">=termchat-bot</span></span>
<span class="line"><span style="color:#F97583">Environment</span><span style="color:#E1E4E8">=</span><span style="color:#F97583">TERMCHAT_HOME</span><span style="color:#E1E4E8">=/var/lib/termchat-bot</span></span>
<span class="line"><span style="color:#F97583">ExecStart</span><span style="color:#E1E4E8">=/bin/sh -c </span><span style="color:#9ECBFF">'df -h / | /usr/local/bin/termchat send alice --password-file /etc/termchat-bot/pw'</span></span></code></pre>
<p>Для расписания добавьте <code>.timer</code>. Если удобнее cron — <code>crontab -u termchat-bot -e</code>, и те же две вещи прямо в строке: <code>0 9 * * * TERMCHAT_HOME=/var/lib/termchat-bot /usr/local/bin/termchat send alice "доброе утро" --password-file /etc/termchat-bot/pw</code>.</p>
<p>Одна личность выполняет одну команду за раз: если два скрипта запустятся одновременно, второй завершится с кодом 1 и скажет, что личность открыта в другом месте. Наш relay-сервер, заведённый ровно так, теперь присылает владельцу утренний отчёт и сообщение, когда падает сайт.</p>
<h2 id="решения-которые-стоит-объяснить">Решения, которые стоит объяснить</h2>
<ul>
<li><strong>Пароль никогда не берётся из переменных окружения.</strong> Только из файла, который принадлежит вам и имеет права <code>600</code>, из stdin или с клавиатуры. Окружение наследует каждый дочерний процесс.</li>
<li><strong>Одна отправка — один контакт.</strong> Отправки «всем» нет: это была бы рассылка, а их в termchat.app нет намеренно.</li>
<li><strong>Сервер не может принимать запросы.</strong> Связь заводите вы со своего устройства, поэтому серверная личность не впустит незнакомца.</li>
<li><strong>Вывод очищается.</strong> Управляющие символы от собеседника не попадут в ваш терминал или лог, а файлы сохраняются только в папку, которую вы указали, и никогда не открываются.</li>
<li><strong>Без фоновой службы.</strong> Каждая команда подключается и завершается, нет долгоживущего процесса с паролем в памяти. Через Tor это 10–30 секунд на команду, для уведомлений нормально.</li>
<li><strong>Коды возврата для скриптов:</strong> 0 — сообщение на relay, 3 — контакт не найден или найдено несколько, 4 — не принят вовремя (уйдёт со следующей командой), 5 — этому контакту писать нельзя.</li>
</ul>
<h2 id="честно-о-сервере">Честно о сервере</h2>
<p>Личность на сервере защищена ровно настолько, насколько защищён сам сервер. Её пароль лежит рядом с её состоянием, поэтому тот, кто получил там root, читает её переписку и может писать от её имени. Поэтому это всегда должна быть отдельная личность, которая говорит только с вами, а не ваша основная: это другой ключ с другими очередями, и через неё не добраться до ваших настоящих контактов.</p>
<p>Полное описание решения — в ADR-024, команды — в руководстве, раздел <a href="/ru/docs/scripts/">«Скрипты и серверы»</a>.</p>
]]></description>
</item>
<item>
<title>termchat.app 0.6.3</title>
<link>https://termchat.app/changelog/#v0.6.3</link>
<guid>https://termchat.app/changelog/#v0.6.3</guid>
<pubDate>Sat, 14 Nov 2026 16:06:08 GMT</pubDate>
<description><![CDATA[<p>More fixes from the second source review (ADR-022).</p>
<ul>
<li>Android: without “stay connected”, a backgrounded app now locks when the
lock time is up, also when Android has frozen it. Before, it held its
keys until you came back. The lock may come a few minutes late.</li>
<li>Relay: logins of one key are limited (30 at once, then one a minute),
the report journal stops growing at 10 MiB, and a slow reader holds less
memory. Operators should update.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.6.2</title>
<link>https://termchat.app/changelog/#v0.6.2</link>
<guid>https://termchat.app/changelog/#v0.6.2</guid>
<pubDate>Sat, 14 Nov 2026 15:14:07 GMT</pubDate>
<description><![CDATA[<p>Fixes from a second source review of the code (not an independent audit;
the findings are in <code>docs/security/review-2026-11b.md</code>).</p>
<ul>
<li>Android: coming back to the app after the lock time has passed locks it
at once. Before, the chats could show for a few seconds, and a touch in
that time kept the app unlocked.</li>
<li>Terminal and desktop: time asleep counts toward the idle lock, and a key
pressed after the time is up locks the app instead of extending it.</li>
<li>An onion relay address is used only through Tor, never through plain DNS
(ADR-004).</li>
<li>A deleted contact can no longer be brought back as a contact request by
a relay that floods the list of sessions already seen (ADR-019).</li>
<li>Relay: a WebSocket frame larger than 64 KiB is refused before it is read
into memory. Operators should update.</li>
<li>The note of a contact request is no longer shown.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.6.1</title>
<link>https://termchat.app/changelog/#v0.6.1</link>
<guid>https://termchat.app/changelog/#v0.6.1</guid>
<pubDate>Sat, 14 Nov 2026 14:27:18 GMT</pubDate>
<description><![CDATA[<ul>
<li>Android: the first message after the phone has slept arrives within
a second or two of its notification, not 10-15 s later under Tor. The
relay keeps the sleeping phone’s connection open and wakes the phone
with a push; the app reads the message already waiting on that
connection instead of connecting again (ADR-012). Operators should
update the relay; with an older relay the app waits 5 s more.</li>
<li>Android: the “New message” notification goes away when you come back to
the unlocked app, also when the chat was already open.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.6.0</title>
<link>https://termchat.app/changelog/#v0.6.0</link>
<guid>https://termchat.app/changelog/#v0.6.0</guid>
<pubDate>Sat, 14 Nov 2026 11:03:34 GMT</pubDate>
<description><![CDATA[<ul>
<li><strong>Choose when the app locks itself</strong> (ADR-021): after 1, 5, 15 or 30
minutes without input, in all three apps. The default stays 5 minutes,
and there is no “never”. Terminal: Settings, security tab. Desktop:
Settings, “Lock after”. Android: Settings, under “Stay connected”. A
longer time gives whoever finds the device unlocked more time to read.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.5.7</title>
<link>https://termchat.app/changelog/#v0.5.7</link>
<guid>https://termchat.app/changelog/#v0.5.7</guid>
<pubDate>Sat, 14 Nov 2026 10:37:10 GMT</pubDate>
<description><![CDATA[<ul>
<li>Relay: a message to someone who had just received everything waiting
for them no longer stays on the relay until their next reconnect. It
showed as messages that went missing and arrived later, on every
client, since 0.5.3. Operators should update; the apps are unchanged.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.5.6</title>
<link>https://termchat.app/changelog/#v0.5.6</link>
<guid>https://termchat.app/changelog/#v0.5.6</guid>
<pubDate>Sat, 14 Nov 2026 09:43:32 GMT</pubDate>
<description><![CDATA[<ul>
<li>Android: a message no longer waits on the relay after its notification.
The relay had closed the connection, but the phone did not hear it and
kept waiting on it; the message came only with the next one. A wake-up
now always connects again (ADR-012).</li>
<li>Android: with “stay connected” on, coming back to the app no longer asks
for the password within seconds when the screen was not touched first.</li>
<li>Android: the app no longer crashes when it locks with a chat open. The
crash, too, ended in the password prompt.</li>
</ul>]]></description>
</item>
<item>
<title>Replaying a message nobody can read: the fallback-key gap in our Olm integration</title>
<link>https://termchat.app/blog/prekey-replay/</link>
<guid>https://termchat.app/blog/prekey-replay/</guid>
<pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>End-to-end encryption keeps the relay from reading your messages. It does not, by itself, keep the relay from delivering one of them twice. termchat.app had such a gap in how it used Olm: a relay could replay the first messages of a conversation as often as it liked. It could not read them, but the recipient saw each copy as a new message. It was found by a source review, fixed in 0.5.3, and tightened again in 0.6.2. This is what went wrong and what the fix does.</p>
<h2 id="how-a-conversation-starts-in-olm">How a conversation starts in Olm</h2>
<p>termchat.app uses Olm from <a href="https://github.com/matrix-org/vodozemac">vodozemac</a>, the Rust library behind Matrix. Starting a conversation works roughly like Signal’s X3DH:</p>
<ul>
<li>Each identity publishes <strong>one-time keys</strong> and a signed <strong>fallback key</strong> on the relay.</li>
<li>To write to someone, the sender claims one of their keys from the relay and builds an outbound session on it.</li>
<li>Until the recipient replies, every message the sender writes is a <strong>pre-key message</strong>: it carries what the recipient needs to build the matching inbound session.</li>
<li>A one-time key is deleted when it is used. The fallback key is not: it is there for when the one-time keys run out, and it stays until it is replaced.</li>
</ul>
<p>That last point is by design. Without a fallback key, a recipient whose one-time keys are used up could not be reached at all.</p>
<h2 id="the-gap">The gap</h2>
<p>When a message arrives, the client tries the sessions it already has. If none decrypts it and it is a pre-key message, it builds a new inbound session from it.</p>
<ul>
<li>On a <strong>one-time key</strong> that fails the second time: the key is gone.</li>
<li>On the <strong>fallback key</strong> it succeeds again. The same pre-key message builds the same session again, the same plaintext comes out, and the new session’s fresh sequence counter accepts it.</li>
</ul>
<p>So a relay could take any message written before the recipient’s first reply and deliver it again, any number of times, while the recipient still held that fallback key. The app showed each copy as a new message. “Pay 100” arrives three times; a contact request from someone you deleted comes back.</p>
<p>The relay also decided how long that window stayed open. The client replaced its fallback key when the relay reported that it had been used. A relay that hands out the fallback key every time, and never says so, keeps one key alive for good. The sender cannot tell: the key carries the recipient’s valid signature either way.</p>
<p>The review confirmed it with a short test: decrypt, then decrypt the same envelope again. Both returned the message.</p>
<h2 id="the-fix-adr-019">The fix (ADR-019)</h2>
<p>The fix adds no cryptography. The client stops calling one vodozemac function twice with the same input, and replaces a key on its own clock.</p>
<ol>
<li><strong>A known session is never built twice.</strong> A pre-key message whose session id matches a session the contact already has, and which that session cannot decrypt, is refused. An honest new session from the same peer has a new base key, so a new id.</li>
<li><strong>Remember the ids of inbound sessions.</strong> Rule 1 does not help once the session is gone: pushed out by the limit of five per contact, or deleted with the contact. So each identity keeps the ids of the inbound sessions it built, saved with its state and carried in its backup. Before building a session, the id is looked up; a known id is refused. An entry goes when the fallback key it could have been built on is forgotten, since nothing can build that session any more.</li>
<li><strong>The fallback key also rotates by age.</strong> The client replaces it when the relay says it was used, as before, or when it is older than seven days, on the client’s own clock.</li>
</ol>
<p>The list is capped: 200 entries per sender and 10,000 in all, so a busy sender cannot grow the state file without bound. About 0.5 MB at most; a normal account holds a few dozen.</p>
<h2 id="the-second-look">The second look</h2>
<p>A second source review found a way around the cap. The client filed each entry under the sender the relay named, and did so before it checked whether that name was true. A relay could start 200 sessions of its own, label each one as coming from a contact you had deleted, and push that contact’s real entry out of the list. Each forged message was refused, but it was remembered first. Then the old contact request replayed again.</p>
<p>The fix in 0.6.2 is one line: entries are counted under the <strong>Curve25519 key inside the pre-key message</strong>, which Olm vouches for, not under the name the relay gives. The relay’s 200 sessions now count against its own key, and the contact’s entry stays. A test reproduces the attack with 201 sessions; it failed before the change and passes after it.</p>
<h2 id="what-is-left">What is left</h2>
<ul>
<li><strong>The fallback key still lives about 30 days.</strong> About 15 days current and 15 more accepted, whatever the relay reports. A relay can still hand out the fallback key every time, and the first messages of a new conversation then depend on that key instead of a one-time key. Signal’s signed pre-key has the same property.</li>
<li><strong>The overall cap of 10,000 entries can still be filled</strong> by someone who reaches the fallback key, with sessions of their own.</li>
<li><strong>A relay can still drop messages.</strong> That cannot be prevented; a gap in the sequence numbers shows it.</li>
</ul>
<h2 id="what-we-took-from-it">What we took from it</h2>
<p>A library’s guarantee holds only on the path you actually take. vodozemac does what it promises: one-time keys are used once, fallback keys stay until replaced. The gap was in our code. When a decrypt fell through, nothing asked whether this exact session had been built before.</p>
<p>The decision, with the rejected alternatives, is <a href="https://github.com/prophecy1345/termchat/blob/main/docs/adr/019-prekey-replay.md">ADR-019</a>. Both reviews were made with Anthropic’s Claude Fable 5.2 model and are published with their findings: <a href="https://github.com/prophecy1345/termchat/blob/main/docs/security/review-2026-11.md">first</a> and <a href="https://github.com/prophecy1345/termchat/blob/main/docs/security/review-2026-11b.md">second</a>. Neither is an independent audit; termchat.app has not had one yet, so treat it as experimental.</p>
]]></description>
</item>
<item>
<title>Повтор сообщения, которое никто не может прочитать: дыра с fallback-ключом в нашей интеграции Olm</title>
<link>https://termchat.app/ru/blog/prekey-replay/</link>
<guid>https://termchat.app/ru/blog/prekey-replay/</guid>
<pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>Сквозное шифрование не даёт relay прочитать ваши сообщения. Но само по себе оно не мешает relay доставить одно и то же сообщение дважды. В том, как termchat.app использовал Olm, была такая дыра: relay мог повторять первые сообщения переписки сколько угодно раз. Прочитать он их не мог, но получатель видел каждую копию как новое сообщение. Дыру нашёл обзор кода, исправили её в 0.5.3 и закрыли плотнее в 0.6.2. Вот что было не так и что делает исправление.</p>
<h2 id="как-в-olm-начинается-переписка">Как в Olm начинается переписка</h2>
<p>termchat.app использует Olm из <a href="https://github.com/matrix-org/vodozemac">vodozemac</a>, Rust-библиотеки, на которой работает Matrix. Начало переписки устроено примерно как X3DH в Signal:</p>
<ul>
<li>Каждая личность публикует на relay <strong>одноразовые ключи</strong> и подписанный <strong>fallback-ключ</strong>.</li>
<li>Чтобы написать кому-то, отправитель берёт у relay один из его ключей и строит на нём исходящую сессию.</li>
<li>Пока получатель не ответил, каждое сообщение отправителя — <strong>pre-key сообщение</strong>: в нём есть всё, чтобы получатель построил ответную входящую сессию.</li>
<li>Одноразовый ключ удаляется после использования. Fallback-ключ — нет: он нужен на случай, когда одноразовые закончились, и живёт, пока его не заменят.</li>
</ul>
<p>Последнее — так задумано. Без fallback-ключа до получателя, у которого кончились одноразовые ключи, было бы вообще не достучаться.</p>
<h2 id="дыра">Дыра</h2>
<p>Когда приходит сообщение, клиент пробует сессии, которые у него уже есть. Если ни одна не расшифровала, а сообщение pre-key, клиент строит из него новую входящую сессию.</p>
<ul>
<li>На <strong>одноразовом ключе</strong> второй раз это не получается: ключа уже нет.</li>
<li>На <strong>fallback-ключе</strong> получается снова. То же pre-key сообщение строит ту же сессию, выходит тот же текст, и свежий счётчик номеров новой сессии его принимает.</li>
</ul>
<p>Значит, relay мог взять любое сообщение, написанное до первого ответа получателя, и доставить его снова — сколько угодно раз, пока у получателя оставался этот fallback-ключ. Приложение показывало каждую копию как новое сообщение. «Переведи 100» приходит трижды; запрос контакта от того, кого вы удалили, возвращается.</p>
<p>Сколько это окно открыто, тоже решал relay. Клиент менял fallback-ключ, когда relay сообщал, что ключ использовали. Relay, который каждый раз выдаёт fallback-ключ и никогда об этом не говорит, держит один ключ живым всегда. Отправитель этого не видит: подпись получателя на ключе в любом случае настоящая.</p>
<p>Обзор подтвердил это коротким тестом: расшифровать, потом расшифровать тот же конверт ещё раз. Оба раза приходило сообщение.</p>
<h2 id="исправление-adr-019">Исправление (ADR-019)</h2>
<p>Новой криптографии в исправлении нет. Клиент перестаёт вызывать одну функцию vodozemac дважды с одними и теми же данными и меняет ключ по своим часам.</p>
<ol>
<li><strong>Известная сессия не строится второй раз.</strong> Pre-key сообщение, у которого id совпадает с уже имеющейся у контакта сессией и которое эта сессия не расшифровала, отклоняется. У честной новой сессии от того же собеседника новый базовый ключ, а значит и новый id.</li>
<li><strong>Помнить id входящих сессий.</strong> Правило 1 не помогает, когда сессии уже нет: её вытеснил лимит в пять сессий на контакт или она удалена вместе с контактом. Поэтому каждая личность хранит id построенных ею входящих сессий — вместе со своим состоянием и в резервной копии. Перед тем как строить сессию, id ищется в списке; известный отклоняется. Запись удаляется, когда забыт fallback-ключ, на котором её могли построить: такую сессию уже ничем не построить.</li>
<li><strong>Fallback-ключ меняется и по возрасту.</strong> Клиент меняет его, когда relay говорит, что ключ использовали, как и раньше, — или когда ключу больше семи дней, по часам самого клиента.</li>
</ol>
<p>У списка есть лимит: 200 записей на отправителя и 10 000 всего, чтобы активный отправитель не раздул файл состояния без конца. Это не больше примерно 0,5 МБ; у обычного аккаунта записей несколько десятков.</p>
<h2 id="второй-взгляд">Второй взгляд</h2>
<p>Второй обзор кода нашёл обход лимита. Клиент записывал каждую запись под тем отправителем, которого назвал relay, и делал это до проверки, правда ли это. Relay мог создать 200 своих сессий, подписать каждую как пришедшую от удалённого вами контакта и вытеснить из списка его настоящую запись. Каждое поддельное сообщение отклонялось, но сначала запоминалось. После этого старый запрос контакта снова проходил.</p>
<p>Исправление в 0.6.2 — одна строка: записи считаются под <strong>Curve25519-ключом из pre-key сообщения</strong>, за который ручается Olm, а не под именем, которое даёт relay. 200 сессий relay теперь считаются под его собственным ключом, а запись контакта остаётся. Тест воспроизводит атаку на 201 сессии; до изменения он падал, после — проходит.</p>
<h2 id="что-осталось">Что осталось</h2>
<ul>
<li><strong>Fallback-ключ по-прежнему живёт около 30 дней.</strong> Примерно 15 дней текущим и ещё 15 — принимаемым, что бы ни сообщал relay. Relay всё ещё может каждый раз выдавать fallback-ключ, и тогда первые сообщения новой переписки зависят от него, а не от одноразового ключа. У подписанного pre-key в Signal то же свойство.</li>
<li><strong>Общий лимит в 10 000 записей по-прежнему можно заполнить</strong> своими сессиями, если добраться до fallback-ключа.</li>
<li><strong>Relay по-прежнему может терять сообщения.</strong> Помешать этому нельзя; пропуск в номерах сообщений это показывает.</li>
</ul>
<h2 id="что-мы-из-этого-вынесли">Что мы из этого вынесли</h2>
<p>Гарантия библиотеки работает только на том пути, по которому вы на самом деле идёте. vodozemac делает то, что обещает: одноразовые ключи используются один раз, fallback-ключи живут до замены. Дыра была в нашем коде. Когда расшифровка проваливалась дальше, никто не спрашивал, не строили ли уже именно эту сессию.</p>
<p>Решение вместе с отвергнутыми вариантами — <a href="https://github.com/prophecy1345/termchat/blob/main/docs/adr/019-prekey-replay.ru.md">ADR-019</a>. Оба обзора сделаны с помощью модели Claude Fable 5.2 от Anthropic и опубликованы с находками: <a href="https://github.com/prophecy1345/termchat/blob/main/docs/security/review-2026-11.md">первый</a> и <a href="https://github.com/prophecy1345/termchat/blob/main/docs/security/review-2026-11b.md">второй</a>. Ни один не заменяет независимый аудит; у termchat.app его пока не было, считайте проект экспериментальным.</p>
]]></description>
</item>
<item>
<title>The sleeping link: delivering to a dozing Android phone over Tor in 2 seconds, not 15</title>
<link>https://termchat.app/blog/sleeping-link/</link>
<guid>https://termchat.app/blog/sleeping-link/</guid>
<pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>termchat.app is an end-to-end encrypted messenger for the terminal, the desktop and Android. Messages go through a relay; on Android you can reach it over Tor, through the relay’s onion address. A user reported that with the phone asleep, the first message arrived 10 to 15 seconds after it was sent. Later ones were quick. This is how we found out where those seconds went, and what changed in 0.6.1.</p>
<h2 id="the-setup">The setup</h2>
<ul>
<li>The app keeps a WebSocket to the relay. With “stay connected” on, a foreground service keeps the process alive in the background.</li>
<li>The relay pings every 30 seconds and closed a connection after 60 seconds without a word from it.</li>
<li>When the relay has a message for someone it holds no connection of, it sends an empty wake-up through <a href="https://unifiedpush.org/">UnifiedPush</a> (here: ntfy). No content, no sender, only “something waits”.</li>
<li>Woken up, the app dials the relay again and fetches its queue.</li>
</ul>
<h2 id="where-the-seconds-went">Where the seconds went</h2>
<p>First suspect: the push itself. It was not. A message sent at 14:40:00 produced the notification at 14:40:01; the push server and Android delivered it in about a second.</p>
<p>Second: the connection. While the phone slept, the app had no connection to the relay at all, though Android allowed it the network (<code>dumpsys netpolicy</code> showed the foreground service exempt from Doze’s firewall, and <code>dumpsys connectivity</code> that its sockets survive Doze entry). Its TCP connections to Tor guards were alive; the onion circuit to the relay was gone.</p>
<p>To see when it went, we watched the relay’s onion port from the server, <code>ss</code> every two seconds, while the phone lay still:</p>
<ul>
<li>14:43:52: the phone entered deep Doze (<code>deviceidle</code>: <code>IDLE</code>).</li>
<li>14:45:02: the relay closed the phone’s connection. 70 seconds later: one missed ping, then the 60-second limit.</li>
</ul>
<p>In deep sleep Android stops the processor. The phone’s kernel still takes in the relay’s pings and acknowledges them at the TCP level, but the app does not run, so nobody answers with a pong. After a minute the relay concluded the phone was gone. The next message then needed a push, and the app a new connection: under Tor, a new circuit to an onion service, which is where 10 to 15 seconds went.</p>
<h2 id="what-we-did-not-do">What we did not do</h2>
<ul>
<li><strong>A wakelock.</strong> Keeping the processor awake while “stay connected” is on would keep the connection healthy. It would also drain the battery, more so with Tor’s background traffic.</li>
<li><strong>Periodic alarms.</strong> In Doze, Android lets an app’s alarm fire at most about once in 9 minutes. That does not help with seconds.</li>
<li><strong>Pinging from the phone.</strong> It needs the processor, which is exactly what is missing.</li>
</ul>
<h2 id="the-sleeping-link">The sleeping link</h2>
<p>The push already wakes the phone reliably: the push distributor is on Android’s battery allowlist and keeps its own connection. What was slow was only the new connection. So the relay now keeps the old one.</p>
<ol>
<li><strong>The relay holds a silent connection for up to an hour</strong>, not 60 seconds, and keeps pinging it.</li>
<li><strong>A connection that did not answer a ping by the next one counts as asleep.</strong> A message for it goes into the connection as usual, <strong>and</strong> the relay sends a push, at most one per 30 seconds per identity.</li>
<li><strong>The phone wakes up, and the message is already in its socket.</strong> The app reads it from the open connection. No new circuit.</li>
<li><strong>Then it checks the link</strong>: it sends its own ping. If nothing comes from the relay within 5 seconds, it drops the connection and dials again, as before. The same check replaces dropping the link outright when the app comes on screen after 35 seconds of silence.</li>
</ol>
<p>Nothing is lost if the held connection turns out to be dead: a message leaves the relay’s queue only when the client acknowledges it, so the next connection gets it.</p>
<h2 id="the-result">The result</h2>
<p>The same test with 0.6.1:</p>
<ul>
<li>15:09:00: message sent from the desktop app.</li>
<li>15:09:01.7: the push server received the wake-up and handed it to the app.</li>
<li>15:09:02.1: the notification on the phone.</li>
<li>On the relay: the same connection as before. No new one.</li>
</ul>
<p>From 10-15 seconds to about 2, with the phone in deep Doze and no wakelock.</p>
<h2 id="the-costs">The costs</h2>
<ul>
<li><strong>The relay holds dead connections longer</strong>: up to an hour instead of a minute. It holds at most one per identity, since a new connection replaces the old, and the limits on connections per IP and over Tor are unchanged.</li>
<li><strong>The relay sees missed pings.</strong> Before, it saw the connection drop, which says the same: this phone is asleep.</li>
<li><strong>The push server sees what it saw before</strong>: one empty wake-up per burst of messages while the phone sleeps.</li>
<li><strong>Both ends had to change.</strong> A new app with an old relay waits 5 seconds for an answer before dialling again, so the relay update shipped first.</li>
</ul>
<p>The decision is written up as an amendment to <a href="https://github.com/prophecy1345/termchat/blob/main/docs/adr/012-push.md">ADR-012</a>, with the measurements; the code is in <a href="https://github.com/prophecy1345/termchat/blob/main/crates/relay/src/lib.rs"><code>crates/relay/src/lib.rs</code></a> and <a href="https://github.com/prophecy1345/termchat/blob/main/crates/engine/src/relay.rs"><code>crates/engine/src/relay.rs</code></a>. termchat.app has had no independent security audit yet; treat it as experimental.</p>
]]></description>
</item>
<item>
<title>Спящая линия: доставка на заснувший Android через Tor за 2 секунды вместо 15</title>
<link>https://termchat.app/ru/blog/sleeping-link/</link>
<guid>https://termchat.app/ru/blog/sleeping-link/</guid>
<pubDate>Sat, 14 Nov 2026 00:00:00 GMT</pubDate>
<description><![CDATA[<p>termchat.app — мессенджер со сквозным шифрованием для терминала, компьютера и Android. Сообщения идут через relay; на Android к нему можно подключаться через Tor, по onion-адресу. Пользователь заметил: когда телефон спит, первое сообщение приходит через 10–15 секунд после отправки, следующие — быстро. Вот как мы нашли, куда уходят эти секунды, и что изменилось в 0.6.1.</p>
<h2 id="как-всё-было-устроено">Как всё было устроено</h2>
<ul>
<li>Приложение держит WebSocket к relay. Со «stay connected» служба переднего плана не даёт Android закрыть процесс в фоне.</li>
<li>Relay пингует соединение каждые 30 секунд и закрывал его после 60 секунд тишины.</li>
<li>Если у relay есть сообщение для того, чьего соединения у него нет, он шлёт пустое пробуждение через <a href="https://unifiedpush.org/">UnifiedPush</a> (здесь — ntfy). Без содержимого и отправителя, только «что-то ждёт».</li>
<li>Проснувшись, приложение заново подключается к relay и забирает очередь.</li>
</ul>
<h2 id="куда-уходили-секунды">Куда уходили секунды</h2>
<p>Первый подозреваемый — сам push. Не он: сообщение, отправленное в 14:40:00, дало уведомление в 14:40:01; push-сервер и Android доставили его примерно за секунду.</p>
<p>Второй — соединение. Пока телефон спал, у приложения не было соединения с relay вообще, хотя сеть Android ему разрешал (<code>dumpsys netpolicy</code> показывал, что служба переднего плана не попадает под файрвол Doze, а <code>dumpsys connectivity</code> — что её сокеты переживают вход в Doze). TCP-соединения с охранными узлами Tor были живы, а onion-цепочки до relay уже не было.</p>
<p>Чтобы увидеть, когда она пропадает, мы смотрели на onion-порт relay с сервера, <code>ss</code> каждые две секунды, пока телефон лежал:</p>
<ul>
<li>14:43:52 — телефон ушёл в глубокий Doze (<code>deviceidle</code>: <code>IDLE</code>).</li>
<li>14:45:02 — relay закрыл соединение телефона. Через 70 секунд: один пропущенный пинг, потом лимит в 60 секунд.</li>
</ul>
<p>В глубоком сне Android останавливает процессор. Ядро телефона ещё принимает пинги relay и подтверждает их на уровне TCP, но приложение не работает, и ответить pong некому. Через минуту relay решал, что телефона нет. Следующему сообщению тогда нужен был push, а приложению — новое соединение: через Tor это новая цепочка к onion-сервису, вот и 10–15 секунд.</p>
<h2 id="чего-мы-делать-не-стали">Чего мы делать не стали</h2>
<ul>
<li><strong>Wakelock.</strong> Не давать процессору засыпать, пока включено «stay connected», — соединение было бы живо. Но батарея садилась бы заметно, а с фоновым трафиком Tor тем более.</li>
<li><strong>Периодические будильники.</strong> В Doze Android даёт будильнику приложения сработать не чаще примерно раза в 9 минут. Для секунд это не помогает.</li>
<li><strong>Пинги с телефона.</strong> Им нужен процессор — ровно то, чего нет.</li>
</ul>
<h2 id="спящая-линия">Спящая линия</h2>
<p>Push и так надёжно будит телефон: push-дистрибьютор в белом списке батареи Android и держит своё соединение. Медленным было только новое соединение. Поэтому relay теперь сохраняет старое.</p>
<ol>
<li><strong>Relay держит молчащее соединение до часа</strong>, а не 60 секунд, и продолжает его пинговать.</li>
<li><strong>Соединение, не ответившее на пинг до следующего, считается спящим.</strong> Сообщение для него уходит в соединение как обычно, <strong>и</strong> relay шлёт push — не чаще раза в 30 секунд на идентичность.</li>
<li><strong>Телефон просыпается, а сообщение уже лежит в его сокете.</strong> Приложение читает его из открытого соединения. Новой цепочки нет.</li>
<li><strong>Потом оно проверяет линию</strong>: шлёт свой пинг. Если за 5 секунд от relay ничего не пришло, закрывает соединение и подключается заново, как раньше. Та же проверка теперь заменяет немедленный разрыв, когда приложение выходит на экран после 35 секунд тишины.</li>
</ol>
<p>Если удержанное соединение окажется мёртвым, ничего не потеряется: сообщение уходит из очереди relay только после подтверждения клиентом, и его получит следующее соединение.</p>
<h2 id="результат">Результат</h2>
<p>Тот же тест на 0.6.1:</p>
<ul>
<li>15:09:00 — сообщение отправлено из приложения на компьютере.</li>
<li>15:09:01,7 — push-сервер получил пробуждение и передал его приложению.</li>
<li>15:09:02,1 — уведомление на телефоне.</li>
<li>На relay — то же соединение, что и раньше. Нового нет.</li>
</ul>
<p>Было 10–15 секунд, стало около 2 — с телефоном в глубоком Doze и без wakelock.</p>
<h2 id="цена">Цена</h2>
<ul>
<li><strong>Relay дольше держит мёртвые соединения</strong>: до часа вместо минуты. Не больше одного на идентичность — новое соединение заменяет старое, — и лимиты на соединения с IP и через Tor не изменились.</li>
<li><strong>Relay видит пропущенные пинги.</strong> Раньше он видел разрыв соединения, а это говорит то же самое: телефон спит.</li>
<li><strong>Push-сервер видит то же, что и раньше</strong>: одно пустое пробуждение на пачку сообщений, пока телефон спит.</li>
<li><strong>Менять пришлось обе стороны.</strong> Новое приложение со старым relay ждёт ответа 5 секунд, прежде чем переподключиться, поэтому relay обновили первым.</li>
</ul>
<p>Решение записано поправкой к <a href="https://github.com/prophecy1345/termchat/blob/main/docs/adr/012-push.ru.md">ADR-012</a> вместе с замерами; код — в <a href="https://github.com/prophecy1345/termchat/blob/main/crates/relay/src/lib.rs"><code>crates/relay/src/lib.rs</code></a> и <a href="https://github.com/prophecy1345/termchat/blob/main/crates/engine/src/relay.rs"><code>crates/engine/src/relay.rs</code></a>. Независимого аудита безопасности у termchat.app пока не было; считайте проект экспериментальным.</p>
]]></description>
</item>
<item>
<title>termchat.app 0.5.5</title>
<link>https://termchat.app/changelog/#v0.5.5</link>
<guid>https://termchat.app/changelog/#v0.5.5</guid>
<pubDate>Wed, 11 Nov 2026 23:48:26 GMT</pubDate>
<description><![CDATA[<ul>
<li>Desktop: SEND sits above File and the timer and is as wide as the two;
together they span the message field’s height, and the field takes the
rest of the row. The timer button keeps one
width whatever it shows, and the field no longer shows a scroll bar on
hover.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.5.4</title>
<link>https://termchat.app/changelog/#v0.5.4</link>
<guid>https://termchat.app/changelog/#v0.5.4</guid>
<pubDate>Wed, 11 Nov 2026 21:53:40 GMT</pubDate>
<description><![CDATA[<ul>
<li>A message that went missing no longer fills the chat with warnings. One
“⚠ N message(s) missing” line stays per chat, changes with the count and
disappears once the message turns up.</li>
<li>A message or file chunk the relay refuses for now (sending too fast, a full
queue) is sent again as it was, so it no longer goes missing on the other
side. A chunk refused for good now fails its file instead of being lost
without a word (ADR-020).</li>
<li>Android: when a notification wakes the app or it comes on screen, it
reconnects at once. Before, a message could arrive up to a minute and a half
after its notification (ADR-012).</li>
<li>Desktop: the message field is three lines tall, wraps long text and scrolls
the rest. Enter sends, Shift+Enter starts a new line.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.5.3</title>
<link>https://termchat.app/changelog/#v0.5.3</link>
<guid>https://termchat.app/changelog/#v0.5.3</guid>
<pubDate>Wed, 11 Nov 2026 15:37:00 GMT</pubDate>
<description><![CDATA[<p>0.5.2 was tagged but never released: its build failed. 0.5.3 is the same
code with the release build fixed.</p>
<p>Fixes from a source review of the code (not an independent audit; the
findings are in <code>docs/security/review-2026-11.md</code>).</p>
<ul>
<li>A relay can no longer deliver a message a second time. This was possible
for messages written before the other side’s first reply, when the session
had started on the fallback key (ADR-019).</li>
<li>The fallback key is now replaced after 7 days on your device’s own clock,
whatever the relay reports (ADR-019).</li>
<li>A received document is saved under a safe name: never as a hidden file, and
on Windows never as a device or a stream of another file.</li>
<li>Message text and document bytes are wiped from memory when the app locks or
a message disappears.</li>
<li>The client refuses relay frames larger than the protocol allows.</li>
<li>A backup’s temporary file is never written through a link someone planted.</li>
<li>Relay: a queue is delivered in pages, so a client that logs in and does not
read cannot make the relay hold whole queues in memory; push wake-ups in
flight are capped. Operators should update.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.5.1</title>
<link>https://termchat.app/changelog/#v0.5.1</link>
<guid>https://termchat.app/changelog/#v0.5.1</guid>
<pubDate>Sat, 07 Nov 2026 12:35:04 GMT</pubDate>
<description><![CDATA[<ul>
<li>The desktop app shows What’s new formatted (headings, lists, bold, code)
instead of raw Markdown.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.5.0</title>
<link>https://termchat.app/changelog/#v0.5.0</link>
<guid>https://termchat.app/changelog/#v0.5.0</guid>
<pubDate>Fri, 06 Nov 2026 20:54:07 GMT</pubDate>
<description><![CDATA[<ul>
<li><strong>termchat.app in a window</strong> for macOS, Linux and Windows (ADR-018), for
those who prefer a window to a terminal. Same account, same encryption,
same relay; the look of the Android app with the site’s synthwave touches.
Contacts and requests, chats with bubbles, disappearing messages, invites
with a QR code for the phone, the safety number, documents, backup and
restore, passwords and the duress password, Tor and bridges, wipe.</li>
<li>Install: <code>curl -fsSL https://raw.githubusercontent.com/prophecy1345/termchat/main/scripts/install.sh | TERMCHAT_GUI=1 sh</code>
(macOS, Linux), <code>brew install prophecy1345/tap/termchat-gui</code>, or on Windows
<code>$env:TERMCHAT_GUI = 1; irm https://raw.githubusercontent.com/prophecy1345/termchat/main/scripts/install.ps1 | iex</code>.
It is not signed with a paid certificate; installed these ways it opens
without a warning. See the README for a browser download.</li>
<li>A window shows more to the rest of the computer than a terminal:
screenshots and screen recording see it, and the text passes through the
window system and the graphics driver.</li>
<li>The terminal client and the app share the account but not at the same
time: whichever opens second says termchat.app is already open.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.4.1</title>
<link>https://termchat.app/changelog/#v0.4.1</link>
<guid>https://termchat.app/changelog/#v0.4.1</guid>
<pubDate>Fri, 06 Nov 2026 17:36:16 GMT</pubDate>
<description><![CDATA[<ul>
<li><strong>Security update:</strong> vodozemac 0.11.2 for RUSTSEC-2026-0445 and -0451.
Versions 0.11.0 and 0.11.1 of the encryption library kept more copies of
session secrets in memory, for longer, than intended. Nothing changes on the
wire, so your contacts do not need to update at the same time.</li>
<li>The terminal client no longer starts twice on the same account: it says
“termchat is already open in another window”. Two copies would overwrite
each other’s saved state.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.4.0</title>
<link>https://termchat.app/changelog/#v0.4.0</link>
<guid>https://termchat.app/changelog/#v0.4.0</guid>
<pubDate>Sun, 01 Nov 2026 15:15:01 GMT</pubDate>
<description><![CDATA[<ul>
<li><strong>Documents</strong> (ADR-017). Send a file of up to 1 MiB, end-to-end encrypted
like a message: <strong>Ctrl+L</strong> in the terminal, the paperclip on Android. Save a
received one with <strong>Ctrl+G</strong> (or Save on Android, through the system dialog),
or discard it. termchat never opens, previews or renders a file, and never
overwrites one on save. Files from contacts can be harmful: check them before
you open them.</li>
<li>200 KB takes about 10 s, 1 MiB about 3 min: chunks are paced under the
relay’s send limit. The relay sees a run of 16 KB messages, so it can
estimate the size of a document.</li>
<li>Files work only between accepted contacts. <strong>Both sides need 0.4.0</strong>:
older versions show “a message could not be decrypted” for each chunk.</li>
<li>Dependencies: zstd, zstd-safe and zstd-sys updated for RUSTSEC-2026-0391,
-0398, -0403 and -0410.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.3.3</title>
<link>https://termchat.app/changelog/#v0.3.3</link>
<guid>https://termchat.app/changelog/#v0.3.3</guid>
<pubDate>Tue, 20 Oct 2026 11:52:58 GMT</pubDate>
<description><![CDATA[<ul>
<li><strong>Android: new signing key</strong> (RSA 4096, ADR-016), the one Google Play accepts,
so the app is signed the same on GitHub, F-Droid and Google Play. New
fingerprint: <code>9F:FB:61:1C:DD:1B:3A:AE:63:30:3F:B7:12:0B:85:F7:67:0D:08:BD:B8:24:D6:7C:7C:85:37:09:88:0C:2A:7F</code>.
If you installed 0.3.2 or older, uninstall it first (back up your identity
before), then install this one.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.3.2</title>
<link>https://termchat.app/changelog/#v0.3.2</link>
<guid>https://termchat.app/changelog/#v0.3.2</guid>
<pubDate>Tue, 20 Oct 2026 10:43:22 GMT</pubDate>
<description><![CDATA[<ul>
<li>Android: every release also ships an app bundle (.aab) for Google Play.
The APKs are unchanged.</li>
<li>The store icon now shows the termchat mark; it was blank.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.3.1</title>
<link>https://termchat.app/changelog/#v0.3.1</link>
<guid>https://termchat.app/changelog/#v0.3.1</guid>
<pubDate>Mon, 19 Oct 2026 17:32:28 GMT</pubDate>
<description><![CDATA[<ul>
<li>Android: “Generate a passphrase” now shows the passphrase under the fields
with a Copy button, instead of a warning line that was easy to miss.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.3.0</title>
<link>https://termchat.app/changelog/#v0.3.0</link>
<guid>https://termchat.app/changelog/#v0.3.0</guid>
<pubDate>Mon, 19 Oct 2026 12:35:03 GMT</pubDate>
<description><![CDATA[<ul>
<li><strong>One-time invites.</strong> Every invite you show carries a code that works once,
so a forwarded or leaked invite cannot be reused. “Revoke unused” stops all
the ones you handed out but nobody used.</li>
<li><strong>Public invite</strong> for a profile or a post: reusable until you renew it, and
renewing stops the old one.</li>
<li>Invites from older versions have no code. Requests from them are accepted
while settings → security → “accept requests without an invite code” is on;
turn it off once your old contacts are added. New accounts start with it off.</li>
<li><strong>Incognito contacts.</strong> An incognito invite, or “add incognito”, talks to
one contact from a new identity of your own: its own keys, name and relay
account. Contacts of different identities cannot link you, and over Tor the
relay cannot either. Deleting the contact deletes that identity.</li>
<li><strong>Tor bridges</strong> for where Tor itself is blocked: paste obfs4, webtunnel or
snowflake bridge lines in settings → security, and Tor enters only through
them. lyrebird, the Tor Project’s transport program, now ships next to
<code>termchat</code> and inside the Android app, built from source.</li>
<li><strong>Search a chat</strong>: Ctrl+S in the terminal, “Search” in the chat menu on
Android. It runs on your device only.</li>
<li><strong>Fixes from an external security review</strong>, among them: a full queue no
longer locks a slow (Tor) client out of the relay; strangers together get
at most a quarter of anyone’s queue; the fallback key is no longer rotated
by claims alone; backups leave out a request’s held messages; nicknames
mixing alphabets always show fingerprint digits.</li>
<li>Invites from this version need termchat 0.3.0 or later on the other side.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.2.3</title>
<link>https://termchat.app/changelog/#v0.2.3</link>
<guid>https://termchat.app/changelog/#v0.2.3</guid>
<pubDate>Sat, 17 Oct 2026 21:47:25 GMT</pubDate>
<description><![CDATA[<ul>
<li>Android: the QR code scanner opens upright and follows the phone’s rotation,
instead of always turning sideways.</li>
<li>The install notes explain how to get messages while the Android app is
closed: wake-ups through ntfy or another UnifiedPush app, or staying
connected in the background.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.2.2</title>
<link>https://termchat.app/changelog/#v0.2.2</link>
<guid>https://termchat.app/changelog/#v0.2.2</guid>
<pubDate>Sat, 17 Oct 2026 19:34:45 GMT</pubDate>
<description><![CDATA[<ul>
<li>The app store texts, icon and screenshots move to <code>fastlane/</code> at the
repository root, where F-Droid reads them. No changes in the app.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.2.1</title>
<link>https://termchat.app/changelog/#v0.2.1</link>
<guid>https://termchat.app/changelog/#v0.2.1</guid>
<pubDate>Sat, 17 Oct 2026 18:56:09 GMT</pubDate>
<description><![CDATA[<ul>
<li>The Android build works in F-Droid’s build server: the signing setup no
longer breaks when F-Droid strips signing blocks, and the version is written
where F-Droid’s update checker looks for it.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.2.0</title>
<link>https://termchat.app/changelog/#v0.2.0</link>
<guid>https://termchat.app/changelog/#v0.2.0</guid>
<pubDate>Sat, 17 Oct 2026 17:44:46 GMT</pubDate>
<description><![CDATA[<ul>
<li><strong>Reproducible Android builds</strong>: the APK can be rebuilt from source to the
same bytes, so F-Droid can ship our signed APK, and both sources update each
other.</li>
<li>Version numbers now follow the project’s rules: new features raise the
minor number (CONTRIBUTING.md). The Android app should have been 0.2.0;
this is it.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.1.14</title>
<link>https://termchat.app/changelog/#v0.1.14</link>
<guid>https://termchat.app/changelog/#v0.1.14</guid>
<pubDate>Sat, 17 Oct 2026 16:49:52 GMT</pubDate>
<description><![CDATA[<p>Android, after a security review:</p>
<ul>
<li>Android no longer copies the app’s data to a new phone (device-to-device
transfer); moving goes through termchat’s own backup.</li>
<li>A report sends exactly the text shown, even if more arrives meanwhile.</li>
<li>Restoring from a read-only place works.</li>
<li>Passwords leave the settings screen’s memory right after use.</li>
<li>A wipe also removes the settings file and the cache.</li>
<li>Message text is shown without characters that reorder it (bidi overrides).</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.1.13</title>
<link>https://termchat.app/changelog/#v0.1.13</link>
<guid>https://termchat.app/changelog/#v0.1.13</guid>
<pubDate>Sat, 17 Oct 2026 16:15:20 GMT</pubDate>
<description><![CDATA[<ul>
<li><strong>termchat for Android</strong>, built on the same engine as the terminal client
(ADR-011): chats, invites with QR codes, backups, passwords, the duress
password, WIPE and MOVED, Tor, and the same colour themes.</li>
<li><strong>Push wake-ups</strong> (ADR-012): the relay can ping a UnifiedPush server of your
choice when a message waits, so the phone shows “New message”. Off by default.</li>
<li>New theme <strong>termchat</strong> in the terminal too: near-black with a lime accent.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.1.12</title>
<link>https://termchat.app/changelog/#v0.1.12</link>
<guid>https://termchat.app/changelog/#v0.1.12</guid>
<pubDate>Sat, 17 Oct 2026 11:50:51 GMT</pubDate>
<description><![CDATA[<ul>
<li>The update notice for Homebrew says <code>brew update &amp;&amp; brew upgrade termchat</code>:
without <code>brew update</code> Homebrew may not see the new version for up to a day.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.1.11</title>
<link>https://termchat.app/changelog/#v0.1.11</link>
<guid>https://termchat.app/changelog/#v0.1.11</guid>
<pubDate>Sat, 17 Oct 2026 11:25:50 GMT</pubDate>
<description><![CDATA[<ul>
<li><strong>What’s new</strong> in the menu (Ctrl+P, n): this list. After an update the
status bar points here until you open it.</li>
<li><strong>Update notice.</strong> When your relay runs a newer termchat, the status bar
says so, and “what’s new” shows how to update: <code>brew upgrade termchat</code> for
Homebrew, the install command otherwise. No extra connection: the relay
reports its version when you connect (ADR-010).</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.1.10</title>
<link>https://termchat.app/changelog/#v0.1.10</link>
<guid>https://termchat.app/changelog/#v0.1.10</guid>
<pubDate>Sat, 17 Oct 2026 10:58:55 GMT</pubDate>
<description><![CDATA[<ul>
<li><strong>Every wipe erases backups left on this device.</strong> termchat remembers where
it wrote a backup or restored one from; a wipe (duress password, <code>WIPE</code>,
<code>MOVED</code>) erases a backup still at that path. Copies moved elsewhere are not
touched. See ADR-003.</li>
<li>The backup form no longer suggests <code>~/termchat-backup</code>: type where it goes,
a USB stick for example.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.1.9</title>
<link>https://termchat.app/changelog/#v0.1.9</link>
<guid>https://termchat.app/changelog/#v0.1.9</guid>
<pubDate>Sat, 17 Oct 2026 10:47:15 GMT</pubDate>
<description><![CDATA[<ul>
<li>The chat menu says what Ctrl+T does: <code>disappearing: off → 5m</code>, <code>1h → 1d</code>,
<code>7d → off</code>.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.1.8</title>
<link>https://termchat.app/changelog/#v0.1.8</link>
<guid>https://termchat.app/changelog/#v0.1.8</guid>
<pubDate>Sat, 17 Oct 2026 09:56:41 GMT</pubDate>
<description><![CDATA[<ul>
<li><strong>Moving to another device.</strong> Type <code>MOVED</code> instead of <code>WIPE</code> to erase the
old device silently, without telling contacts or leaving the relay. The
manual has the steps (section 8).</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.1.7</title>
<link>https://termchat.app/changelog/#v0.1.7</link>
<guid>https://termchat.app/changelog/#v0.1.7</guid>
<pubDate>Fri, 16 Oct 2026 18:00:05 GMT</pubDate>
<description><![CDATA[<ul>
<li><strong>Wiping tells your contacts.</strong> <code>WIPE</code> sends a goodbye to every contact and
asks the relay to forget your key. Their chat with you becomes read-only and
is marked <code>-</code> in the list. The duress password still sends nothing.</li>
<li>A message to a contact who is gone shows “contact is no longer on the relay”.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.1.6</title>
<link>https://termchat.app/changelog/#v0.1.6</link>
<guid>https://termchat.app/changelog/#v0.1.6</guid>
<pubDate>Fri, 16 Oct 2026 16:22:53 GMT</pubDate>
<description><![CDATA[<ul>
<li>Wiping also removes the Tor directory.</li>
<li>Security fixes in the relay and in relay URL parsing.</li>
</ul>]]></description>
</item>
<item>
<title>termchat.app 0.13.0</title>
<link>https://termchat.app/changelog/#v0.13.0</link>
<guid>https://termchat.app/changelog/#v0.13.0</guid>
<description><![CDATA[<ul>
<li>Groups on every device (ADR-028): accept an invite on one device and
the others join too; a device linked later joins by itself, and a
removed one leaves. Each device reads and writes there; your
messages from one show on the others. New groups are made on the main
device. A group with a member on an app before 0.12 keeps to main
devices.</li>
<li>Documents reach every device of a contact; your other devices show
that you sent one, without the file.</li>
<li>Linked devices meet each other through the main one, so with three or
four devices what you send shows on all of them.</li>
<li>A new colour theme, vice-sunset: hot pink and orange on night purple.</li>
<li>Your contact’s new device no longer warns that they “restarted the
conversation”.</li>
</ul>]]></description>
</item>
</channel>
</rss>
