dsh-tg-bridge 1.41.2 → 1.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/CHANGELOG.md CHANGED
@@ -1,5 +1,52 @@
1
- # CHANGELOG — DSH Telegram bridge
2
-
1
+ # CHANGELOG — DSH Telegram bridge
2
+
3
+ ## 1.43.0
4
+
5
+ - **Read the folder from the chat: `/ls` and `/view`.** Until now the only way
6
+ to see what a turn had to work with was `/find` — which answers "where is this
7
+ string", not "what is in here". `/ls [folder]` lists one folder of the topic as
8
+ buttons, folders first, and `/view <file>[:line]` opens a file with line
9
+ numbers, forty lines at a time with a «More» button for the next page.
10
+ `app.mjs:412` and `app.mjs 412` both open at line 412, because a path pasted
11
+ out of another app carries a colon and a path typed on a phone carries a space.
12
+ Both commands read through the same fence `/find` uses: nothing outside the
13
+ topic folder, nothing binary, nothing over 512 KB, and `/ls <file>` opens the
14
+ file instead of complaining that it is not a folder.
15
+ - **A card outlives the folder it was drawn from.** Pressing a folder replaces
16
+ the card with that folder, so walking back is `/ls ..` rather than a growing
17
+ stack of messages; pressing a file opens it under the folder card. Rows carry a
18
+ number, not a path — callback data is capped at 64 bytes and a path is longer
19
+ than that — so a card from an older listing answers "run /ls again" instead of
20
+ opening whatever moved into that place.
21
+ - **The topic's own folder, and no other.** `/ls` and `/view` do not fall back to
22
+ the install folder the way `/find` does: a topic with no `/cd` is told to bind
23
+ one, rather than listing the bridge's own directory.
24
+ - `/ls` and `/view` are in `/help`, `/menu` (the work section), the panel, and
25
+ all three locales.
26
+
27
+ ## 1.42.0
28
+
29
+ - **The workspace group is written by the host that owns it.** 1.39.0 closed
30
+ issue #3 by editing `workspace.json` from the bridge process, with the
31
+ caveat that a running `dsh web` holds that file in memory and can drop the id
32
+ on its next write. The addendum on the issue named the better place: the
33
+ shipped DSH plugin runs inside the host, so it can call
34
+ `workspace.attachSession` itself. `plugin-bridge.mjs` now reconciles once at
35
+ boot and every 30 s: every persisted session that no workspace lists and whose
36
+ folder matches one gets attached through the public API, and a folder that
37
+ matches nothing stays Ungrouped. Subagents and child sessions are never grouped
38
+ on their own, an id already listed is untouched, and a host without
39
+ `workspaceRegistry` / `sessionPersistence` is left quiet rather than broken.
40
+ Seven tests drive `reconcileOnce` with a fake context, so the grouping itself
41
+ is checked without booting a desktop.
42
+
43
+ ## 1.41.2
44
+
45
+ - **An empty note file is removed when its turn ends.** Every turn creates a
46
+ per-turn thought file; a turn that wrote no note left it at 0 bytes, and one
47
+ real folder had 269 of them out of 285. The card is finished before the unlink
48
+ runs, so nothing reads the file afterwards, and a file with a line is kept.
49
+
3
50
  ## 1.41.1
4
51
 
5
52
  - **A note cannot land in General while its turn is elsewhere.** `say.mjs
@@ -40,2324 +87,2324 @@
40
87
  interrupt, a CLI that printed nothing, a stale button card. `TG_POLL` and
41
88
  `TG_NET` join the reply-code table.
42
89
 
43
- ## 1.40.0
44
-
45
- - **`/find <text> [path]` — where a string lives in this project.** The chat could
46
- send a file and show a diff, but not answer "which file has this line", the
47
- question that sends a person back to their desk. The search is literal, so a
48
- query with `.`, `*`, `(` or `\` searches for those characters instead of
49
- throwing; it is bounded by files, milliseconds and depth, and says when the
50
- walk stopped. Twenty rows come back as buttons, with the total and a hint how to
51
- narrow; a file that is binary or over 512 KB is skipped and counted, never read.
52
- Pressing a row opens the file at the matched line, marked `▶`, with a **more**
53
- button that pages forty lines at a time.
54
- - **One fence for every file the chat touches** (`lib/file-fence.mjs`): a path
55
- outside the topic folder is refused with the folder named, a file is opened only
56
- when it is plausibly text and under the cap, and the walk skips `.git`,
57
- `node_modules` and their kind. `/ls` and `/edit` will read through the same
58
- fence, so the rule cannot drift between three commands.
59
- - `lib/` joins the published files; the fence is imported by shipped modules.
60
-
61
- ## 1.39.1
62
-
63
- - **A subagent is visible in the card as one honest line.** The headless stream
64
- has no event type for subagents — a scan of its JSON stream found seven types,
65
- and `subagent` is not one of them — so a subagent reaches the bridge as an
66
- ordinary tool call plus a later result. The card now shows the task it was
67
- given when the call starts, and adds the measured duration when the result
68
- arrives (`subagent: Проверить релиз · 42s`), with a `✖` when it failed. The
69
- duration is wall clock between the two events, because that is the only source
70
- the stream offers; token counts and live progress would need a DSH plugin.
71
-
72
- ## 1.39.0
73
-
74
- - **A Telegram session now appears under its folder in the desktop sidebar**
75
- (issue #3). The sidebar groups by a membership list — `workspace.json` →
76
- `tables.workspaces[<id>].sessionIds` — and only the web host or a one-time
77
- migration ever wrote to it, so a headless turn produced a session that worked
78
- and looked homeless. After a turn the bridge adds that session id to the
79
- workspace whose `path` is the turn's folder: once, idempotently, atomically
80
- (temp file plus rename, so a host holding the file never reads half of it), and
81
- only when the id is absent everywhere. A folder no single workspace claims is a
82
- refusal, logged and left alone — the wrong group is worse than "Ungrouped",
83
- because it claims the session ran somewhere it never did.
84
- - **A 💭 line finds its turn without the environment** (follow-up to 1.38.8). The
85
- bridge now writes one marker per running turn — pid, topic, folder, note file —
86
- and `say.mjs` reads it when the shell inherited nothing: a turn running in this
87
- folder is a fact, so no guessing is involved. Zero or two live turns in one
88
- folder is still a refusal, for the reason the guessing was removed in the first
89
- place.
90
-
91
- ## 1.38.8
92
-
93
- - **A 💭 line is no longer lost when the sandbox forbids the write.** A turn that
94
- runs in a project folder may have `~/.dsh` outside its writable area: the note
95
- file refused the append with `EPERM`, `say.mjs --thought` exited 6, and the
96
- decision never reached the chat. It now falls back to sending the line as a
97
- real `💭` message — the person sees it, the stderr line says why it did not go
98
- into the card, and the exit code is a failure only when both paths fail.
99
- - `DSH_TG_THOUGHTS` overrides the thoughts directory, so the fallback is
100
- testable without breaking a real installation.
101
-
102
- ## 1.38.7
103
-
104
- - **The turn card is now a choice, not a wall.** Every turn ends with one card,
105
- and it used to carry everything the bridge knew: speed, thoughts, steps,
106
- context, cost, cache and reasoning, in that order, for everyone. `/card` lists
107
- those rows as buttons: tap one and that block stops appearing in this topic
108
- from the next turn. The choice is per topic and survives a restart.
109
- A topic that never chose keeps the full card, so an update never shortens a
110
- card someone was reading. The head stays either way: a card without a duration
111
- is not a summary of a turn.
112
- - **The renderer reads the same switch the command writes.** `chat/panel.mjs`
113
- takes the chosen set and drops the rows it excludes, instead of deciding for
114
- itself what a card carries — the drift that would otherwise make `/card` a
115
- promise the card does not keep.
116
- - **A press answers.** Toggling redraws the card from state (a double tap settles
117
- on one truth), answers «Включено»/«Выключено», and an id this build does not
118
- know says the button is stale instead of writing a key nothing reads.
119
- - `/help` documents `/card` next to `/model`, `/cost` and `/thoughts`, in all
120
- three locales, with a sentence of its own.
121
-
122
- ## 1.38.6
123
-
124
- - **A refused key is no longer reported as an unrecognised voice message.** A
125
- speech engine answering 401 or 404 says the same thing on every attempt, but
126
- the chat got «Не распознал голосовое» — the same sentence a mumbled clip gets —
127
- and the batch sent every clip through the same doomed request. The transcript
128
- result now carries `fatal` and the status: a refused key, a model the server
129
- does not have, a rejected request, a missing key, a broken `voice.cwd` or a
130
- non-absolute `voice.python` all stop the batch at the first clip and say which
131
- setting to fix. Load is left retryable, because 429 and 5xx do change their
132
- mind: those keep the old line, with the status in it.
133
- - **The rest of a batch is counted, not sent.** One refusal explained, the
134
- remaining clips are skipped and one line at the end says how many were left
135
- out — previously each clip cost a download and printed the identical warning.
136
-
137
- ## 1.38.5
138
-
139
- - **The settings card opens the thing it names.** A row like «Модель» runs
140
- `/model`, whose answer is a card with buttons. The press handler kept only the
141
- text of whatever the command answered, so the model card arrived as a plain
142
- message: it named the current model and gave no way to change it — the settings
143
- screen could describe the install but not edit it. A card-shaped answer is now
144
- sent under the settings card with its keyboard, in the topic it was asked in,
145
- and a plain answer still comes as one line. `/fallback`, `/permissions`,
146
- `/preset` and `/cd` sit behind the same door and open the same way.
147
- - **The last thought of a turn reaches the card.** The progress card re-reads the
148
- decision trail every three seconds, so a line written in the final seconds —
149
- "the result is checked", the one that says how the turn ended — landed between
150
- two ticks and never appeared at all. The card now reads the trail once more
151
- before it is finished, and only while `/thoughts` is not off.
152
-
153
- ## 1.38.4
154
-
155
- - **A rewind button no longer answers "undefined".** `answerRewindPress()` was
156
- handed the unbound `t`, and it calls `t(key, vars)` with one argument, so the
157
- i18n read the key as a language and returned `String(undefined)` — every press
158
- on the card replaced it with the single word *undefined*, in every language.
159
- The caller now binds the topic's language, and the helper itself falls back to
160
- the key when a translation is missing, so a caller's binding mistake stays
161
- visible instead of becoming a message.
162
- - **"Back N" on the usage card cuts; it no longer only cancels.** Both buttons
163
- carried the verb `n`: the quick pick as `rw:n:<steps>`, the cancel as `rw:n::`.
164
- The handler read the verb alone, so `/rewind` followed by "back 2" cancelled
165
- and removed nothing — the one path the feature exists for. A step count now
166
- decides: `rw:n:<n>` cuts, `rw:n::` cancels, and both take the same one-use
167
- ticket, so a double tap still cannot cut twice.
168
- - **Picking a model for one topic acknowledges the press.** That branch switched
169
- the route, wrote the state and sent its confirmation, but never answered the
170
- callback, so Telegram kept the spinner for 45 seconds and then reported that
171
- the tap never answered — a switch that worked, shown as a failure, with the
172
- confirmation arriving after the person had already pressed something else. The
173
- toast now carries the route that took, before the confirmation text.
174
- - **Three cards stop losing their buttons on the way out.** `/load`
175
- (control/cmd-load.mjs), the held-turn notice (work/load-guard.mjs) and the
176
- sandbox notice (chat/handle-message.mjs) hand their markup over as
177
- `reply_markup`, and `sendWithMarkup()` read only `extra.keyboard` — so the
178
- `/load` card arrived without its refresh and guard buttons, and the sandbox
179
- notice told a person to open `/permissions` with a button that was never drawn.
180
- Both shapes now go through the same conversion, and a keyboard with nothing
181
- pressable is logged and sent without buttons instead of arriving empty.
182
-
183
- ## 1.38.3
184
-
185
- - **The `/model` endpoint tap now reaches the model list.** The report was always
186
- the same: tap an endpoint, nothing happens, the card stays on step one, and
187
- there is no way to test a turn on another model without asking an agent to do
188
- it by hand. The cause was one field name. `modelCard()` builds buttons as
189
- `{ text, data }` — this module's own shape — and the redraw sent
190
- `card.keyboard` straight to Telegram, which knows only `callback_data` and
191
- rejects a button that has text and no payload with `can't parse
192
- InlineKeyboardButton: Text buttons are not allowed in the inline keyboard`.
193
- That rejects the whole edit, so the second step was built, sent, and refused
194
- every time since the two-step card shipped. The redraw now converts with the
195
- same `inlineKeyboard()` every other keyboard uses, and the re-send fallback
196
- gets the converted rows too — a fallback carrying the bad shape fails for the
197
- same reason the edit did.
198
- - **The test asserts the wire shape, not the local one.** Twenty-five green tests
199
- covered this card and none of them caught it, because they checked that the
200
- keyboard had rows after building it in memory, where `data` is correct. The
201
- press test now walks every button of the edit and of the re-sent message and
202
- requires `callback_data`, at most 64 bytes, and no leftover `data` field — the
203
- three things Telegram checks before it will draw anything.
204
-
205
- ## 1.38.2
206
-
207
- - **A turn that ends without an answer asks once more instead of apologising.**
208
- Reported from a live topic, with the log to prove it: `turn ok … 994s
209
- tools=39`, then `reasoning echo suppressed … (3252 chars)`, then `sent …
210
- len=96`. The turn did the work; the CLI reported the model's own notes as the
211
- final text; the bridge refused to forward a page of thinking — correctly — and
212
- sent only the apology, so nearly seventeen minutes of work ended in a sentence
213
- that said nothing. The work was still in the session, so `chat/reply-guard.mjs`
214
- now asks once more in that same session with `REPLY_NUDGE` and sends the real
215
- answer when it arrives. The apology stays for the case where the second attempt
216
- also comes back as notes, because silence is worse than either.
217
- - **A leaked thinking block no longer reaches the chat.** Some routes stream
218
- reasoning into the text channel, so the reply arrives as
219
- `<thinkingAll done. Now the final answer. …` — a string the reasoning block
220
- does not contain, which is why the guard missed exactly its target case:
221
- `reasoning.includes(answer)` was false by one marker. `stripThinkingBlocks()`
222
- now runs before the comparison: a closed `<thinking>…</thinking>` block is
223
- dropped whole, a stray or unclosed marker is removed and the rest kept, and the
224
- final send strips it too, so a real reply with a leaked marker keeps its text
225
- without showing the marker.
226
- - **The `/model` endpoint step reaches its models even when Telegram refuses the
227
- edit.** Tapping an endpoint was handled — `model press md:!p:unorouter` in the
228
- log — and the screen still did not change, because `redraw()` ended in
229
- `.catch(() => {})`: the one failure that matters was the one failure that said
230
- nothing. The refusal is now logged, and the card is sent as a new message so
231
- step two is reachable either way. Both halves are pinned by tests: the router
232
- that a real tap goes through must translate, redraw and claim, and a refused
233
- redraw must still produce a keyboard.
234
- - **Command reading moved out of the message handler.** `handle-message.mjs` had
235
- grown past its 500-line ceiling, and the block it was carrying — mapping a
236
- collapsed head like `/apprestart.confirm` onto `/app restart confirm` — is
237
- command knowledge, not the business of one-message-becomes-one-turn. It is
238
- `commandParts()` in `chat/commands.mjs` now, with the reply guard in
239
- `chat/reply-guard.mjs`.
240
-
241
- ## 1.38.1
242
-
243
- - **Speech runs before the first `init`.** `chat/media.mjs` spawned the local
244
- engine with the live install (`~/.dsh/tg-bridge`) as its working directory. On
245
- a checkout that had never been initialised that directory does not exist, the
246
- spawn failed with `ENOENT`, and `transcribe` returned an empty transcript with
247
- no hint why. CI had been red on all three runners since 1.34.1 for exactly
248
- this reason, while the suite stayed green on the one machine that had an
249
- install — a test that only passes where the product is already installed
250
- proves nothing. The working directory now falls back to the temp directory
251
- when the install is absent, and `test/voice-providers.test.mjs` runs the engine
252
- in a child process with `DSH_TG_HOME` pointed at a path that does not exist,
253
- so the empty-install case stays covered.
254
-
255
- ## 1.38.0
256
-
257
- - **A provider's timeout page is no longer posted as the answer.** Reported from
258
- a live topic: `[req_e00194ab] [deepseek-v4.1-flash] **Request exceeded 570s
259
- limit** … **Recommended tools:** — these responses are optimized for
260
- opencode, [CC] and Codex`. The turn exited 0 — the provider delivered its
261
- error page through the normal channel and the CLI reported it as the model's
262
- final answer — so the bridge logged `turn ok`, sent the wall of text to the
263
- chat, and never walked the fallback chain: nothing had failed as far as the
264
- pipeline could tell. `turn/provider-banner.mjs` now recognises the shape (a
265
- request id or a `request exceeded Ns limit` line, plus the vendor's own
266
- "How to fix" / "Billing" / "Recommended tools" scaffolding) and `turnOutcome`
267
- turns it into `PROVIDER_TIMEOUT: 570` with no text, so the chain runs and the
268
- chat gets one line in its own language instead of an advertisement. A banner
269
- with real work behind it keeps the work. Detection is strict on purpose: an
270
- answer that merely QUOTES such an error is an answer. `timeout` is its own
271
- fallback family, claimed first — the vendor page also says "large context
272
- window" and "Billing", so a later rule would explain the switch with the
273
- wrong sentence — with a one-replay budget: the first attempt already spent
274
- the provider's whole clock.
275
- - **`/dsh` says which harness is installed, and updates it in two steps.** The
276
- bridge now checks the running [DSH] against `engines.dsh` (`core/dsh-version.mjs`:
277
- a real semver comparison, prerelease rules included) and offers one button
278
- when npm has a newer one. `/dsh update` shows the exact command, the button
279
- asks again, and `/dsh update confirm` installs and names the restart. `/doctor`
280
- gained the same row, so "is my harness the one this release was tested with"
281
- is answerable without leaving Telegram.
282
- - **`/status` no longer re-parses the whole session log on every press.** The
283
- stats are cached per file (`chat/thoughts.mjs`), four entries at most, and a
284
- file that only grew is resumed from its last frame instead of decompressed
285
- from the start.
286
- - **`/status` names the desktop profile only where it applies.** The UI row
287
- described the desktop's route inside a card about one topic.
288
- - **The pin switch could not be applied to every topic.** It read only the
289
- topic's own pin, so `/pin <value> all` looked accepted and changed nothing;
290
- the settings card now falls back to the global pin and has a second row that
291
- writes it.
292
- - **A turn could file a goal under any topic it named.** `goal.mjs` refuses a
293
- `--key` that disagrees with `DSH_TG_KEY` (exit 2) unless `--force`, so a turn
294
- in one topic cannot move another topic's goal.
295
- - **Commits are reviewed before they land.** `jev-gate.mjs` runs the Jev review
296
- over the staged diff in the pre-commit hook, skips cleanly without a key, and
297
- writes its verdict into the commit itself.
298
- - **`/compact` answers instead of denying it exists.** The engine's manual
299
- compaction is a command of the *app* chat: sent as plain text through the CLI
300
- it reaches the model as an ordinary prompt, is billed, and compacts nothing
301
- (measured: one extra turn, 13319 input tokens, no compaction). The bridge used
302
- to answer "Неизвестная команда", which was also wrong. `control/cmd-compact.mjs`
303
- now reads the live `thresholdRatio` out of the profile's `cordis.patch.yml`,
304
- names the tokens the last turn actually sent, says where manual compaction
305
- lives, and offers the one press that works here — `/new` — as a button. Three
306
- languages, and the threshold is read from the install, never assumed.
307
- - **The bot's menu is re-asserted on every start.** `bot-menu.mjs` claimed the
308
- bridge "re-asserts it on start" and had no caller outside `init`/`setup`;
309
- `setMyCommands` is global state any other plugin can overwrite, and one already
310
- had (31 Chinese rows this bridge cannot run). Startup now installs the
311
- registry's menu for `ru`/`en`/`zh` and logs the count it read back — three API
312
- calls and a log line, never fatal.
313
-
314
- ## 1.37.1
315
-
316
- - **Every `/model` button works again.** `control/model-card.mjs` passed `t` into
317
- the press handler without importing it, so `modelPressRouter` — the only caller
318
- that has to supply the translator itself — threw `ReferenceError: t is not
319
- defined` on every tap. The card always drew; nothing it offered ever acted.
320
- The picker's own tests missed it because each one calls `handleModelPress`
321
- directly and passes its own `t`, and the `unresolved-calls` guard missed it
322
- because it looks for calls (`t(`) and treats a parameter of any function in the
323
- file as visible module-wide. `test/model-picker.test.mjs` now drives
324
- `modelPressRouter` itself with a stubbed transport, so the path a real tap
325
- takes is covered; removing the import makes that test fail and only that test.
326
- - **`/model` can switch the whole install from the card.** The scope row
327
- (`🌍` / `💬`) had no test through the router either, so it shipped dead in the
328
- same way: the mode toggle is what makes "change every topic at once" reachable
329
- without typing `/model <route> global`. It now carries the endpoint it was
330
- pressed on, so switching the mode while choosing a model keeps that model list
331
- on screen instead of throwing the choice away.
332
- - **The route picker is two steps: the endpoint, then its model.** Every provider
333
- used to be drawn as a `— provider —` heading row, which is a button with no
334
- callback data, and `inlineKeyboard` deletes those (it must: Telegram rejects the
335
- whole message otherwise). The headings never reached the chat, so the card
336
- arrived as a flat list of model names — seventeen of them on this profile — in
337
- which `deepseek-v4.1-flash` from two different endpoints was two buttons with
338
- the same text and different actions. The card now opens on the endpoints, each
339
- with its route count and the tick on the endpoint answering, and a second screen
340
- lists that endpoint's models. The endpoint is on the header there, so a model
341
- name is unambiguous and nothing is drawn that the keyboard would drop. Choosing
342
- a model returns to the endpoint list with the tick moved; the back row is one
343
- tap; refresh keeps the step it was pressed on.
344
- - **A stream the provider cuts mid-call moves to the next route.** A 1134 s turn
345
- with 130 tool calls ended as `PI_AI_ERROR: OpenAI Responses stream completed
346
- with an unfinished tool call: pwsh (…)`. The stream closes between
347
- `output_item.added` and `output_item.done`, so the arguments never arrive: the
348
- pipe was cut, not the task. It matched no failure family, so the chain logged
349
- "not a route fault" and broke on its first entry, and the turn ended holding
350
- an error no other route had been asked about. It is now the `stream` family,
351
- the switch line calls it "the provider ended the answer mid-call", and it
352
- carries a budget of one — the replay costs a whole turn, so one other route
353
- answers "this proxy or this turn" and the chain stops instead of spending seven
354
- turns on the same question.
355
-
356
- ## 1.37.0
357
-
358
- - **`/every 09:00 text` runs that text every day at that time.** The schedule
359
- reuses `/remind`'s parser and clock instead of a second time implementation:
360
- `parseEvery` refuses `+15m`, `25:00` and a missing text with the same words a
361
- reminder uses, and `nextClock` turns the wall clock into the next local
362
- `09:00`. `/every list` numbers this chat's schedules with their next run and
363
- their text,
364
- `/every rm 2` removes one by that number, and a bare `/every` answers with the
365
- usage line — in the language of the topic, like every other command.
366
- - **A firing is a real turn, not a notification.** The tick builds a synthetic
367
- message for the row's own `(chatId, threadId)` and hands it to the same
368
- `redeliver` path an incoming message takes, so the agent reads the text and
369
- does the work; the firing path never calls `send()` itself. Because
370
- `redeliver` resolves only when the turn ends, the due rows are dispatched
371
- together rather than one after another.
372
- - **Catch-up fires once, and nothing fires twice.** A tick claims a due row by
373
- moving `at` to the next occurrence and persisting that in the same
374
- `saveState()` *before* delivery: a bridge that was down for four days fires
375
- the missed occurrence exactly once, a restart replays nothing it already
376
- claimed, and a delivery that fails is one log line rather than a retry every
377
- twenty seconds. The next occurrence always comes from `nextClock`, never from
378
- `at + 24h`, so a schedule follows the clock across a DST change instead of
379
- drifting an hour.
380
- - **A deleted topic is a log line, not a crash.** A row whose topic no longer
381
- exists (`sendChatAction` is rejected) is skipped under the tick's own
382
- `try/catch`, the skip is written to the log with the chat and thread, and the
383
- row still advances to its next occurrence. The cap is twenty schedules per
384
- chat, across topics, and the refusal names the number.
385
- - **The words live in `i18n/{en,ru,zh}/every.mjs`.** Thirteen strings pushed
386
- `ctrl.mjs` past the 500-line ceiling, and a table of its own is where the
387
- neighbours (`diff.mjs`, `endpoint.mjs`) already keep a command's surface.
388
- `every` is a documented control command, has a `/help every` page and a
389
- `Tuning` entry beside `remind`. `test/every.test.mjs` covers the parser, the
390
- claim function, a restart catch-up, double-fire, the cap, the three locales
391
- and the lost topic.
392
-
393
- ## 1.36.0
394
-
395
- - **The chain no longer dies on the first error it cannot name.** A prompt past a
396
- model's window comes back as `CONTEXT_WINDOW_EXCEEDED`, which matched no failure
397
- family, so the walk read it as "not a route fault" and stopped — six routes
398
- untried, and a turn that had been failing over correctly ended frozen on a raw
399
- provider string. Context is a family of its own now, the longest-window route is
400
- asked first when it hits, and the walk carries on. The same error is no longer
401
- replayed: `replaySafe` covers `refused` and `context` together, because those two
402
- are properties of the request, not of the route that happened to answer it.
403
- - **A spent balance behind a 403 is a balance, not a refused key.** `AUTH: …
404
- (403): Your subscription allowance for this period is used up and your wallet`
405
- was classified `auth`, which told the reader their key was rejected and sent them
406
- to the wrong fix. Money words now win over the status code, `explainFailure`
407
- splits `INSUFFICIENT_QUOTA` (a balance) from `INVALID_KEY` (a key), and
408
- `MISSING_CREDENTIAL` keeps its own sentence in front of both. The two failures
409
- read as what they are: "баланс провайдера пуст" versus "ключ не принят".
410
- - **`/model` can change the whole install, not only the topic it was opened in.**
411
- `/model <route> all` existed and the card never offered it, so the panel's only
412
- visible switch moved one topic while the profile — the default every other topic
413
- follows, and the thing a fallback chain is built from — stayed where it was. The
414
- card carries a scope row that names the mode that is on, route buttons carry the
415
- scope they will write, and the header stops claiming to describe this topic while
416
- the card is in the global mode. `@` marks a global press, which leaves a provider
417
- legitimately named `all` reachable.
418
- - **Advice stopped naming a command that does not exist here.** The
419
- context-overflow messages told the reader to run `/compact`. The desktop profile
420
- mounts `command-compact`; the headless profile that serves Telegram does not, so
421
- the one line meant to rescue a stuck turn answered "unknown command". They now
422
- point at `/new` and `/rewind 2`, both real. `test/commands.test.mjs` gains a
423
- guard: any `/command` in a user-facing string must be one the dispatcher accepts,
424
- matched in command position so `on/off` and a `~/…/cordis.patch.yml` path are not
425
- read as commands.
426
-
427
- ## 1.35.0
428
-
429
- - **The checkout has a shape.** Seventy-seven modules left the repository root for
430
- six folders named after the question they answer — `core/` (paths, state, keys,
431
- the dictionary), `chat/` (one message, arrival to card), `turn/` (queue,
432
- progress, steer, failures), `model/` (routing, prices, cost), `profile/` (the
433
- person, the agent, their settings), `work/` (diffs, forks, schedules, reports).
434
- The root keeps eleven entry points and nothing else. 566 import specifiers were
435
- rewritten across 153 files; no behaviour changed. `docs/LAYOUT.md` is the table.
436
- - **Entry points stayed put on purpose.** `README.md`, `QUICKSTART.md` and the
437
- progress protocol every agent turn uses say
438
- `node ~/.dsh/tg-bridge/say.mjs --thought "…"`. A library may move; a path a
439
- person types may not.
440
- - **Two path bugs the move made visible.** `control/cmd-bridge.mjs` built its
441
- `/restart confirm` target as `./bridge.mjs` next to itself — a file that has
442
- never existed — so a restart that reached that line spawned nothing and the chat
443
- went quiet; it now resolves `../bridge.mjs`. And `cli.mjs` derived its copy list
444
- by keeping the `files[]` entries that end in `.mjs`; now that `files[]` names
445
- folders, that filter would have mirrored eleven modules and none of the code they
446
- import, so `expand()` walks the folders first. `test/sync-runtime.test.mjs` runs
447
- the real script into a temp directory and boots the result.
448
- - **Coverage tests had to follow the files.** `test/bridge-wiring.test.mjs`,
449
- `test/engines.test.mjs` and `test/package-files.test.mjs` scanned the root with
450
- `readdirSync`; after the move that would have checked eleven files and passed.
451
- They now read `files[]` (which expands folders) or recurse the tree.
452
- `test/cli-sync.test.mjs` asks whether a module is *covered by* a listed folder
453
- instead of whether it is named literally.
454
- - **Two stray documents came in from the cold.** `INJECTION-AND-REPLIES.md` and
455
- `ONBOARDING-PLAN.md` moved under `docs/`, which already ships whole.
456
-
457
- ## 1.34.1
458
-
459
- - **The docs are in the package.** `docs/VOICE.md` was written for 1.34.0, linked
460
- from the README and quoted by the bot's own "voice is not set up" answer — and
461
- then left out of `files[]`, so every npm install got a dead pointer. Eight other
462
- pages were missing the same way: the list named five documents by hand and had
463
- drifted. `files[]` now ships the folder, and `test/package-files.test.mjs` fails
464
- if a page under `docs/` stops shipping.
465
-
466
- ## 1.34.0
467
-
468
- - **Speech is a choice, not a vendor.** `voice.provider` picks the backend, and the
469
- bridge stops assuming the model it happened to install: `script` runs a local
470
- Python transcriber, `command` runs any program that prints or writes the
471
- transcript, and `openai` posts to any OpenAI-compatible `/audio/transcriptions`
472
- endpoint — OpenAI, Groq, or a local server. A `command` engine may answer as
473
- plain text, as JSON (`{"text": …}` or Vosk's `{"result": […]}`), or into a file
474
- named by `{out}` in the argument template. The old keys still work: with no
475
- `provider` the shape is guessed from them, in that order. `docs/VOICE.md` has a
476
- ready-made block for each. `test/voice-providers.test.mjs` runs a real HTTP
477
- server and real child processes, because the request body and the three output
478
- shapes are the whole feature.
479
- - **A voice note with no backend is no longer silence.** The audio was dropped
480
- with a log line and nothing in the chat — the person was ignored and had no way
481
- to learn it was a setting. The bridge now answers once per batch with what is
482
- missing and the three ways to fill it in, in the topic's language.
483
- - **Both cards name the model that answered.** The settings card and `/model`
484
- describe the route a topic is *configured* with; after a fallback that is not
485
- the route that replied. A successful turn records `{ model, switched }` per
486
- topic and the card adds `Ответила deepseek-v3.2 (fallback)` — once the primary
487
- answers again the line goes back to naming it without the caveat.
488
- `test/answered-model.test.mjs`.
489
- - **Four ways a string reached outside the directory the bridge owns.** `/app
490
- restart` killed every `DeepSeek Harness.exe` by image name instead of the pids
491
- it had just listed; a session id from `/sessions <id>` was joined into a path
492
- unchecked; `/skills <name>` could be walked out of `skills/` with `../..`; and
493
- the voice backend accepted a relative interpreter (looked up on `PATH` *and* in
494
- the working directory) and any `cwd` at all. Each is closed at the point the
495
- string arrives, `test/guards.test.mjs` pins the first three, and the update
496
- root, `/soul` rewrite and derived-profile prune already had their containment
497
- checks — they are named in the same audit and stay.
498
-
499
- ## 1.33.3
500
-
501
- - **Comments are back to the characters they were written with.** Five dashes in
502
- `callbacks.mjs` had gone through a cp1251 round trip and shipped as `—`.
503
- Behaviour never changed — it was a comment — which is exactly why nothing
504
- caught it: no test reads the files. There is one now. `test/encoding.test.mjs`
505
- reads every shipped module and fails on the shapes a cp1251 round trip leaves
506
- behind, so the next edit that mangles text is caught before the release rather
507
- than by a reader.
508
-
509
- ## 1.33.2
510
-
511
- - **The tabs of the settings card now change the page.** `commandFor` answered a
512
- tab press with `{ tab: 'agent' }` and no page, so the press redrew the default
513
- page — `reply` — whatever tab was tapped. Telegram refused the edit as
514
- "message is not modified" and the press looked dead: the fourth tab of a card
515
- that had been "broken" for weeks was one missing field, and the log from 1.33.1
516
- named it in one line. A tab answer carries its own page now, and the invariant
517
- is a test: pressing `agent`, `updates` or `health` must produce a message that
518
- differs from the one on screen.
519
- - **Pressing the value already in force says so.** The redraw is refused in that
520
- case, which used to be silence; the toast is `Уже так и стоит` in the presser's
521
- language.
522
-
523
- ## 1.33.1
524
-
525
- - **A press always answers.** Three paths could leave a button with no reaction
526
- and no line in the log: a payload from an older card, a handler that threw
527
- before answering, and a card that redrew itself into an identical message. All
528
- three now answer — the stale one with an alert that stays on screen, the failed
529
- one with `/logs errors` pointed at — and every accepted press is named in the
530
- log the moment it arrives, so "the menu does nothing" can be told apart from
531
- "the press never reached the bridge".
532
- - **Silence has a deadline.** `quietGuard` watches the press and the command that
533
- follow it: if nothing visible is produced within 45 seconds the guard says so
534
- once, in the chat, whether the handler is still running or already returned.
535
- This is the case that had no answer before — not a crash, just a wait with no
536
- end visible from the phone.
537
- - **Card calls are fast now.** `tg` allows 60 seconds and three attempts, so a
538
- single tap on a card could sit on a spinner for three minutes while the flaky
539
- route retried underneath. `tgFast` gives every press-path call 8 seconds and two
540
- attempts; the fast path stays fast and the retry still covers the bad route.
541
- - `handleCardPress` and `boundSetOf` moved from `callbacks.mjs` into
542
- `settings-press.mjs`, and `/stop`'s inline turn kill now uses the `killTurn` it
543
- duplicated. The router stays a router, and both files fit the ceiling.
544
-
545
- ## 1.33.0
546
-
547
- - **A model per topic, and the profile is only the default.** One model for the
548
- whole install meant the choice that suits an engineering chat slowed down a chat
549
- for thinking out loud. `/model` now names the scope it changes — `This topic:`
550
- or `Profile default:` — and a press stores the route in that topic alone, with
551
- `↩ Follow the profile again` as the way back. The next turn boots a copy of the
552
- topic's profile with the `agent-default-model` row rewritten; every other key of
553
- that row survives, so a model switch cannot silently drop `reasoningEffort`, and
554
- the copy is rebuilt whenever the profile changes. `/model <route> all` writes the
555
- profile itself and says how many topics keep their own choice; `/model auto`
556
- deletes the topic's route and reports it when there was none. Commands edit the
557
- bound profile, never a generated copy, and `/profile` no longer lists those
558
- copies among the profiles a person made.
559
- - **The description was rewritten around what the bridge does.** The README opened
560
- with four lines of scene-setting and then twenty-four bullets of mixed weight;
561
- it now opens with what a topic is, puts the model-per-topic rule in the first
562
- bullet, and states the remaining features as claims with their scope attached
563
- instead of adjectives. The npm description says the same thing in one line.
564
- - `/help` and the `/menu` panel name the new scope in every language.
565
-
566
- ## 1.32.0
567
-
568
- - **`/model` is a picker, not a list of names.** The old card printed bare model
569
- ids, and the same id can be served by several providers — `deepseek-v4.1-flash`
570
- appeared twice with nothing to tell the rows apart, and `/model
571
- deepseek-v4.1-flash` quietly kept whichever provider the profile already had.
572
- A bare `/model` now draws every **route** — provider and model together,
573
- grouped under the provider, with `✓` on the one in force — and each route is a
574
- button. A press names the full route, so it cannot mean "the fourth model" if
575
- the profile changed between drawing and tapping; a route whose name will not
576
- fit in Telegram's 64-byte payload gets no button at all rather than a wrong one.
577
- - **`/endpoint` adds a provider from the chat, without a model turn.** Adding one
578
- is four facts typed once, so it is parsed and written directly:
579
- `/endpoint add <id> <https://url/v1> <KEY_ENV> [model,model]`, `/endpoint list`,
580
- `/endpoint rm <id>`. Only the *name* of the key variable is typed — a pasted
581
- `sk-…` is refused and the profile is not touched. The URL must be https (http
582
- only for localhost) because a key rides on every request. Re-adding an endpoint
583
- adds models and never reorders or drops the ones already there, and a new model
584
- shows up on `/model` as a button immediately.
585
- - **Working notes have two scopes.** `/reasoning` already followed the topic
586
- first and the install second, but the install default could only be set by
587
- editing `config.json`. `/reasoning off all` (or `card`/`chat`) now sets the
588
- default every other topic reads, while a bare `/reasoning off` still changes
589
- this topic only. The settings card shows both rows side by side. A topic with
590
- its own choice keeps it, and the answer says so instead of claiming every topic
591
- changed.
592
- - The `/help` models row and the `/menu` panel now name `/endpoint`.
593
-
594
- ## 1.31.1
595
-
596
- - **`/version` and `/update` can no longer disagree.** They are one card, but
597
- each asked npm separately, and on a slow runner one `npm view` answered while
598
- the other timed out — so the same question, asked twice, gave "1.31.0" and
599
- "offline". The answer is now memoised for a minute. A minute of staleness means
600
- nothing to a release check; two answers to one question is a bug a person can
601
- see. It also stops `/update` twice in a row from blocking the bot for 45
602
- seconds each time.
603
-
604
- ## 1.31.0
605
-
606
- - **`/diff`: the review loop, from a phone.** A turn that changes files used to end
607
- with "done" and a `git diff` a person had to open on a desktop. `/diff` parses
608
- the working tree into files and hunks and draws one card: the file list with
609
- `+n -m` per file, the hunks that fit, and two buttons per hunk — **explain this
610
- hunk** (which asks the agent about exactly that patch, not about "the diff") and
611
- **revert this hunk**. Reverting one hunk is the case that matters: the change was
612
- right except one piece, and undoing the whole turn to fix one piece is not an
613
- option. `/diff stat` draws the file list alone, because on a phone that is often
614
- the whole answer.
615
- - **A button is a hash of the hunk it was drawn from.** The id under each button is
616
- a SHA-1 of the path, the hunk header and the hunk body. A press that arrives
617
- after the file moved on — reverted, edited, committed — matches nothing and is
618
- refused with "that hunk is not in the diff any more", instead of reverting
619
- whatever now sits at that line number. This is the whole reason the feature is
620
- safe to expose as a tap: a stale button cannot act.
621
- - **A revert is one patch, not a checkout.** `git apply -R --recount` replays the
622
- single hunk with its own header, so the rest of the file keeps what the turn did.
623
- The `index` line is dropped — it pins blob hashes that make a single-hunk revert
624
- fail for a reason nobody can act on — and a hunk that no longer applies changes
625
- nothing and says why.
626
- - **The card says what it left out.** A character budget, not a hunk count: one
627
- lockfile hunk is bigger than twenty hunks of source. Whatever does not fit is
628
- counted in the text ("…N more hunks", "…N more files"), and the keyboard is capped
629
- at twelve rows for the same reason — a button that was not drawn is a button
630
- nobody presses, and a card Telegram refuses is worse than a card that admits it
631
- is partial.
632
- - **`/diff` is on the panel and in `/help`.** One row in the Work section, one line
633
- in the help body, one sentence in `ctrl.help.about.diff`, in `en`, `ru` and `zh`
634
- — the same day, in all three, as everything else here.
635
-
636
- ## 1.30.2
637
-
638
- - **1.30.1 was published and immediately superseded.** The first upload left the
639
- version staged and the retry could not overwrite it, so the same code went out
640
- again as 1.30.2. The two are identical apart from the version string; 1.30.1 is
641
- deprecated and points here. Nothing to do if you installed either.
642
-
643
- - **A version earns its place by answering a turn, and a version that only ever
644
- throws is replaced by the last one that did.** 1.30.0 shipped a call to a
645
- function that did not exist. Every import resolved, every file parsed, the
646
- whole suite was green — and the first real message threw, so the person was
647
- left on a release that answered nothing. Nothing in the update path can catch
648
- that: a name that is never defined inside a function body is invisible to a
649
- static check, and only a turn that runs can prove otherwise. So the install now
650
- keeps a record per version: it is *proven* once it has answered, *faulted* when
651
- it throws a code fault, and *unknown* until then. Two code faults on a version
652
- that has never answered, while a proven version is still on record, put the
653
- proven one back — from npm, or from the copy the last update saved when the
654
- registry cannot be reached — announce it in the chat, and ask the supervisor
655
- for a restart instead of exiting under a half-finished turn. The record is
656
- narrow on purpose: a 402, a 429, a timeout and "all providers are busy" all
657
- reach a turn as errors, and none of them is a verdict on the release. Rolling a
658
- working install back because someone's balance ran out would be a worse bug
659
- than the one this fixes.
660
- - **The supervisor catches the failure the bridge cannot report.** A release that
661
- throws while it loads never runs a turn, so nothing above ever sees it: the
662
- bridge dies, the minute tick starts it, it dies again, forever. The tick now
663
- keeps its own evidence — two starts in a row that never became healthy — and
664
- applies the same rule before it starts the bridge again. It also refuses to
665
- repeat a restore it just performed, and resets the count the moment a bridge is
666
- alive, so a laptop that reboots twice is not mistaken for a broken release.
667
- - **`/update rollback` is the manual way back.** The automatic rule needs two
668
- faults before it acts, which is right for a machine deciding alone and wrong
669
- for a person who has already seen one. The command returns to the last proven
670
- release immediately, and says so when there is nothing to return to.
671
- - **`/update` says what is proven about the version it is running.** The card
672
- used to list a version number and leave the reader to guess whether it worked.
673
- It now says "proven, N turns answered", "faulted, N code faults", or
674
- "installed, not yet answered", and names the release a rollback would return
675
- to. An install that has just updated is marked unproven rather than inheriting
676
- the old version's record — a rollback to nothing is not a rollback.
677
- - **A 💭 line is no longer cut mid-word.** The thought stream clipped each line at
678
- 140 characters with no ellipsis, so the chat showed sentences that stopped in
679
- the middle of a word ("…при провале — от", "…откатывается на по") and read as
680
- broken output rather than as a decision. Lines are now clipped at a word
681
- boundary with a trailing `…`, at a budget that keeps a real sentence readable,
682
- and the card and the chat show exactly the same text because both read it from
683
- one function.
684
-
685
- ## 1.30.0
686
-
687
- - **A sandbox refusal no longer reads as a breakdown.** The CLI marks three
688
- different things with a `[sandbox: …]` line in a failed tool result: the policy
689
- denied a write, an escalation is available, or the sandbox runner itself broke.
690
- All three arrived in the chat as an ordinary failed turn, and the turn then
691
- ended with "сбой хода" — a word that sends someone to the logs for a decision
692
- they made themselves. The refusal is now its own line, after the answer, saying
693
- which mode refused, that nothing broke, and — for a broken runner — that this is
694
- a sandbox problem rather than a task one. One button leads to `/permissions`,
695
- because someone who has just been refused should not have to remember a command
696
- name. Repeated refusals in one turn are counted once per wall, not per attempt.
697
- - **A release that cannot load no longer replaces one that works.** `/update`
698
- copied the fetched files over the running install and then asked for
699
- `/restart`; if the new code could not load, the restart killed a working bridge
700
- and started nothing, leaving the person in a terminal on a machine they
701
- installed a bot to avoid touching. The candidate for 1.29.0 did exactly that: a
702
- new module imported a name that did not exist, and 557 green tests said nothing
703
- because none of them loaded the file. The install is now checked before it is
704
- trusted — every relative import must resolve to a file that exports the name,
705
- and the entry points must parse — and a failed check puts the previous files
706
- back and says what is wrong with the release.
707
- - **An update refuses to write into a filesystem root or the home directory.**
708
- The target comes from `DSH_BRIDGE_ROOT`, and a directory that merely contains a
709
- `bridge.mjs` — a checkout, a copy, a nested install — used to pass the only
710
- check there was. "Does it look like a bridge" is now backed by "is it a place
711
- where writing the whole package would be a catastrophe".
712
- - **`/soul` stops deleting the rest of `AGENTS.md`.** The persona lives in the
713
- person's own global instructions file, and the old code replaced everything
714
- from the persona heading to the end of the file: a section below it, or a
715
- second persona heading, was silently lost by a `/soul` call, with no backup.
716
- Only the persona section is replaced now, the file is copied aside first, and
717
- whatever followed the section stays where it was.
718
- - **A recursive profile sweep proves where it is sweeping.** `pruneDerived`
719
- deleted every `aset-*` directory under `DSH_HOME/profiles`, trusting the name
720
- pattern and the environment variable. It now refuses a target that resolves
721
- outside the directory it was given, so a `DSH_HOME` pointing somewhere real
722
- cannot turn a cleanup into a deletion.
723
- - **Two tests that would have caught the release fault.** One walks every shipped
724
- module and asserts each named import exists in the module it comes from; the
725
- other asserts every relative import points at a file on disk. Both are static,
726
- because importing the bridge starts a poller.
727
-
728
- ## 1.29.0
729
-
730
- - **The progress card says how full the context is.** A turn that runs into its
731
- model's context window dies expensively: the prompt is re-sent, billed, and
732
- rejected. The card now carries `📊 контекст 812k / 1M (81%)`, built from the
733
- provider's own `usage` and the window the profile declares. A live card shows
734
- it only from 75 % — a percentage that is always there is read once and then
735
- ignored — and the final card always shows it. When either side of the fraction
736
- is unknown the row is absent, not guessed: a percentage of an unknown
737
- denominator reads as a measurement and is not one.
738
- - **`/cost`: what this session has spent.** Input, output and cache-read tokens
739
- are billed at three different rates, and the old single total could say "how
740
- big" but never "how much". `/cost` shows the three counts, the total, the
741
- per-turn average and the rates it used, and names its source: OpenRouter's
742
- published price for the same model, a market reference rather than the
743
- provider's invoice. Prices are cached for a week and filled by `/prices`; a
744
- turn never waits on the network for a number. The final card adds
745
- `💰 этот ход: $0.0042` when the cache knows the model, and says nothing when
746
- it does not — an invented invoice is worse than none.
747
- - **Every "unknown" on the bill is named.** No usage in the log, no catalog on
748
- disk, no published price for this model, and a rate missing for one of the
749
- three kinds are four different sentences, and a partial total announces itself
750
- as a lower bound. The failure this replaces is a confident `$0.00` on a paid
751
- session.
752
-
753
- ## 1.28.1
754
-
755
- - **`/profile` no longer throws on a fresh install.** It listed
756
- `~/.dsh/profiles` without asking whether the directory exists, and on a machine
757
- where DSH has not written one yet `readdirSync` is ENOENT: the first command a
758
- new user tries answered with an exception. Found by asking the suite a
759
- different question — "does every documented command answer?" — instead of "do
760
- the tests pass?".
761
- - **Every documented command is now covered in every language.** Seven tests walk
762
- all 38 commands in en/ru/zh and assert three things a translation can break: the
763
- command claims its message, the answer is not empty, and no `{placeholder}`
764
- survives. `/soul`, `/skills`, `/seed`, `/send` and `/crew` had no test at all
765
- before — reachable, listed in `/help`, and nothing had ever proved they answer.
766
- ## 1.28.0
767
-
768
- - **A turn starts on macOS and Linux too.** The turn runner spawned the Electron
769
- app by an absolute Windows path, and that was the only path in the code: on a
770
- Mac or a Linux box every turn failed with ENOENT on a file that cannot exist
771
- there, while the README promised three platforms. Which binary runs a turn is
772
- now one decision in one place (`dsh-launch.mjs`): the app with
773
- `--expose-internals <cli.js>` where the app is installed, the `dsh` command from
774
- PATH everywhere else, and `DSH_BIN` / `DSH_CLI_JS` / `DSH_APP_DIR` when the
775
- answer is neither. The plugin commands had already learned the PATH form; they
776
- ask the same question now, so there is no second copy of the answer.
777
- - **App paths are computed per platform.** `LOCALAPPDATA` is empty on macOS and
778
- Linux, so the app directory used to collapse into the relative
779
- `Programs/…` — a path that means "somewhere under the current directory".
780
- Windows installs are unchanged, byte for byte; macOS gets the bundle's
781
- `Contents/MacOS` and `Contents/Resources` split, Linux gets the usual share
782
- directory.
783
- - **`/doctor` answers on every platform.** Its disk row shelled out to
784
- `(Get-PSDrive C)` and was labelled "Disk C", so on a Mac the row silently
785
- disappeared — a diagnostic that is quiet on the platform you are debugging is
786
- worse than none. The reading comes from `statfs` and the label names the disk
787
- it measured. The report also gained a **Turn command** row: the exact binary a
788
- turn would start, which is the one fact that explains an ENOENT.
789
- - **The error message stopped naming a key that does not exist.** "point
790
- `dshApp` in config.json at it" was never a setting; the sentence now names
791
- `DSH_BIN` / `DSH_APP_DIR`, which are real.
792
- - **CI runs on macOS.** The matrix tested Ubuntu and Windows, which is why a
793
- Windows-only turn runner stayed green for a release.
794
- - **Tests are platform-neutral.** `/cd` path expectations and the disk-drive
795
- probe were written against Windows separators, so the same suite failed on
796
- Linux for reasons that had nothing to do with the code. Both now describe a
797
- platform instead of assuming one: 520 tests, green on Windows and Linux.
798
-
799
- ## 1.27.0
800
-
801
- - **A restart no longer leaves other topics guessing.** `/restart confirm` now
802
- records which turns it is about to kill, and the new process posts one line in
803
- each of those topics: the turn was stopped, the session is intact, send the
804
- message again. Before, the card there stayed on ⏳ forever and nothing said why.
805
- The note itself had been written to the wrong directory since it was introduced
806
- (`control/` instead of the bridge root), so even the "back online" confirmation
807
- after a restart was silently lost — that is fixed too.
808
- - **`/fallback test` measures the wait, not just the verdict.** Each live route
809
- now reports milliseconds to the first token and the fastest one is named once.
810
- Two routes that both answer are not equally good, and the head of the chain is
811
- chosen on that number. A route that did not answer prints no time, so
812
- `no balance · 120 ms` can never read as "works, just slow". The probe streams
813
- and stops at the first chunk; a provider that ignores `stream` is still read as
814
- the plain JSON answer it is.
815
- - **`/fallback first <provider>/<model>`** puts a route at the head of the chain,
816
- or moves it there if it is already in the list. `add` appends, which is right
817
- for a spare and wrong for the route that should answer before the primary:
818
- moving it up eight times was eight presses and a guess about where the head is.
819
- - **`/model provider/model` moves the route as well as the model.** Asking for
820
- the same model on a different provider used to rewrite only the model name and
821
- silently keep the old host — the one case where "I changed the model" and "the
822
- answers come from somewhere else now" are different claims. The reply now names
823
- the route the patch actually carries, and a provider the profile does not
824
- declare is refused before the file is touched.
825
- - **A flaky album test is no longer flaky.** Its quiet window was 60 ms against
826
- 10 ms gaps, so a busy machine failed a test about ordering because of the clock.
827
- - **`/stop` stops looking like a crash.** A turn killed on purpose was reported as
828
- a failure, twice over: the card said «сбой хода», and the sentence underneath
829
- read `CLI завершился с кодом {code} без вывода` — with the placeholder still in
830
- it, because a killed child reports `code === null` and the formatter only fills
831
- the variables it is given a value for. A deliberate stop is now its own outcome
832
- (`turn-outcome.mjs`), the card says the turn stopped and the session is intact,
833
- and an unknown exit code prints as `?` rather than as `{code}`.
834
- - **`/load`: the machine's own numbers, and a limit that holds a turn.** This
835
- bridge runs on somebody's desktop, next to whatever else that desktop is for. The
836
- card shows free space on the disk the topic writes to, free RAM, average CPU
837
- since the last reading, how many turn slots are busy and how many prompts are
838
- waiting — the one row Task Manager cannot answer, because it sees Electron
839
- children and not Telegram topics. `/load on` makes a prompt that arrives while
840
- the machine is over a limit wait instead of starting: the message is kept, not
841
- refused, and one press sends it anyway. Limits are `/load limit cpu 80`,
842
- `limit ram 10`, `limit disk 20`; the guard ships off, so an upgrade never holds
843
- a turn nobody asked it to hold.
844
-
845
- ## 1.26.1
846
-
847
- - **The card's buttons work again.** 1.26.0 taught a switch press which page to
848
- redraw, and the caller read "has a page" as "show me that page": every switch
849
- redrew an identical card, Telegram refused the no-op edit, and the tap changed
850
- nothing at all. No error in the chat, no reply — a dead button. The two actions
851
- are now named apart (`tab` for the view, `command` for the setting), and a test
852
- fails if a switch ever looks like a tab again.
853
- - **Tapping the tab you are on is quiet.** Telegram refuses an edit that changes
854
- nothing; that refusal was logged as a failure and looked like a broken button.
855
- - **A topic without a name says its id.** The head read "Тема: тема {n}" whenever
856
- the name was not cached yet — the first turn after a restart always raced the
857
- cache, and the literal `{n}` looked like a template that forgot to render. It
858
- now says `Тема: id 337382`, in all three languages.
859
-
860
- ## 1.26.0
861
-
862
- - **The settings card stays.** A tap used to turn the whole card into one line
863
- naming the change, which answered "what did I just do" and took away "what can
864
- I do next": the menu vanished the moment it was used, and the answer to a door
865
- like `/jobs` landed as a separate message while the line above it claimed the
866
- press had only been recorded. A press now edits the card in place — same
867
- message, same buttons — with the new value marked and one `✓ row: value` line
868
- above the rows. A door's answer arrives under the card, which is where it
869
- belonged all along.
870
- - **A way out is a button, not a chore.** The card gained a full-width `✓ Done`
871
- row that deletes the message. Before, "close it" meant deleting a chat message
872
- by hand, and a card that cannot be put away is a card people learn to fear.
873
- - **Only the value in force is marked.** Both the text row and the button now
874
- carry `●` on the end that is on, and nothing at all on the ends that are not.
875
- The old `○`/`●` pair marked every option, which said nothing about which one a
876
- tap had left in place.
877
- - **`/pin on|off` — the progress card in the pinned slot.** Telegram gives a chat
878
- one pinned message, so the running card takes it and each turn's card replaces
879
- the last: the clock, the speed and the steps are one tap away instead of a
880
- scroll back. Off by default — pinning someone's chat uninvited is not a favour,
881
- and a group needs the right to pin at all. The pin is silent, a refusal is
882
- logged rather than shown, and `state.pin` reads `true`/`false` from an older
883
- file the way the notes switch does.
884
- - **A failed press says so on the card.** The redraw alone looks exactly like
885
- success, so an error from the command behind the button is shown as `⚠️` in the
886
- card's note line and is not repeated underneath it.
887
- - **Two more doors on the agent tab**: `/cd` (which folder the topic works in) and
888
- `/fallback` (who answers when a provider refuses), because both were reachable
889
- only by remembering their names.
890
- - Dead code out: the `reasoningOf` reader had no callers since the notes switch
891
- moved to `notes.mjs`; the paths it was threaded through are gone.
892
-
893
- ## 1.25.3
894
-
895
- - **The decision trail can reach the chat itself.** `/reasoning` had two ends,
896
- on and off, and "on" meant the last two 💭 lines inside the progress message —
897
- which a person only sees if they are looking at that one message. It now has
898
- three: `card` (the default, unchanged), `chat` (every line also arrives as its
899
- own message, so a twenty-minute turn is read while it runs instead of scrolled
900
- back to afterwards) and `off`. One switch, one name: a separate `/notify` would
901
- have been the second name for one job that this surface spent a release
902
- removing.
903
- - **The prompt knows which end is on.** In `chat` mode every turn says so, so a
904
- line is written to stand alone — and says what must never be in one: a token, a
905
- key, a private path. The line reaches a chat, not a grey card.
906
- - **A switch mid-turn does not replay the card.** Turning `chat` on while a turn
907
- runs forwards from the next line written, not the ten already on screen; a turn
908
- that starts in `chat` forwards from its first line. The forwarder keeps a set of
909
- what went out, so an edit of the card never repeats a step, and a failed send
910
- leaves the note in the card where it always lived.
911
- - **The old value still reads.** `state.json` written by an earlier release holds
912
- `true`/`false` for this switch; they now mean `card`/`off`, and `/reasoning on`
913
- is still accepted as the old spelling of the card. A settings file must not need
914
- editing by hand after an update.
915
- - The settings card offers the three ends as buttons and marks the current one,
916
- `/status` names the mode in words, and `test/notes.test.mjs` pins the mode
917
- migration and the "every line of the turn, not just the two the card shows".
918
-
919
- ## 1.25.2
920
-
921
- - **A throttled route is no longer called a refused key.** The first live
922
- `/fallback test` on a free route came back `key refused` while the provider's
923
- own sentence said "This model is at its provider's per minute limit right
924
- now" — the probe read the HTTP status before the words, and one router answers
925
- a rate limit with a 403. That verdict sends a person to re-enter a key that
926
- works. The words about a limit now win over the status; a bare 401/403 is
927
- still a refused key, an empty balance still outranks both, and a 5xx with no
928
- words of its own is `busy` instead of `unknown`.
929
- - **`/fallback test` asks the routes at once.** Seven routes at a 15-second
930
- timeout each is nearly two minutes of a command that looks frozen, with the
931
- poller waiting behind it. One round of requests answers in the time of the
932
- slowest route — and a rate limit on the router is itself a verdict, so a burst
933
- of probes was the wrong way to learn about throttling.
934
- - `test/probe-verdict.test.mjs` pins the four answers that used to be confused:
935
- a limit behind a 403, a bare 403, an empty balance behind a 429, a 5xx with
936
- no body.
937
-
938
- ## 1.25.1
939
-
940
- - **The failover chain fires on a refusal.** A turn that ended with
941
- `dsh: INVALID_REQUEST: wikivibe API error (400)` stopped the walk on its first
942
- iteration while six configured routes sat unused, and the log said nothing —
943
- the trigger list knew 5xx, quota words, `AUTH` and an empty answer, and a 400
944
- from a vendor's own validator matched none of them. Failures are now grouped
945
- into named families (`refused`, `quota`, `auth`, `busy`, `rate`, `transport`,
946
- `model`, `empty`), every family starts the chain, and every decision writes one
947
- `fallback …` line, so "no route was left" can no longer look like "no route was
948
- ever tried". The negative list stays explicit: the turn time cap, `/stop`, a
949
- session or directory error and a missing `dsh` are not a route's fault and are
950
- not replayed on six vendors.
951
- - **A refusal costs one route, not the whole chain.** A 400 is replayed in full —
952
- the same long conversation, the same tools — so one other vendor answers the
953
- only useful question, "is it this route or this prompt". If the second refuses
954
- identically the request is what is wrong, and the reply now says so and points
955
- at `/new` instead of suggesting a top-up. Busy, quota, rate and transport
956
- failures keep walking the whole chain: those are per-route facts.
957
- - **`/fallback`: the chain as a card.** The list was invisible from the chat, so
958
- the honest answer to "why did it not switch" was often "nothing was configured
959
- to switch to". The card shows the route this topic answers on, the numbered
960
- chain, how many routes a turn would really try (a switched-off route and one
961
- whose overlay file is missing are counted separately, not silently), what
962
- starts a switch and what does not. Every line has a button: `● n` switches a
963
- route off or on, `↑ n` / `↓ n` move it, `test` asks each route with a 1-token
964
- request, `add <provider>/<model>` writes the overlay and appends the route,
965
- `remove` asks for a second named press. A press and a typed line run the same
966
- verb, so the two cannot disagree.
967
- - **`/fallback test` is honest about what it proves.** A probe shows the key and
968
- the channel are alive; it does not show the provider accepts this conversation,
969
- and the card says exactly that — a route that answers `ping` can still refuse a
970
- long prompt with a 400.
971
- - **`fallbackEnabled`** switches the whole chain off without editing the list,
972
- and `runFallbackChain` reads it before sending anything, so a person who turned
973
- the chain off never sees a "running on another model" line. `off: true` does the
974
- same for one entry; both keep the route in `config.json` with its overlay.
975
- - **`/report` prints the chain the card shows**, from the same renderer: a report
976
- that counted routes a turn would skip is the report that hides the bug it was
977
- opened for.
978
- - `ctrl.fallback.*` moved into its own locale table (`i18n/<lang>/fallback.mjs`)
979
- when `ctrl.mjs` reached the 500-line ceiling; `/help` documents the command and
980
- the panel carries it under "Talk".
981
-
982
- ## 1.25.0
983
-
984
- - **A bound topic no longer writes the whole home directory.** `/cd my-app` used
985
- to change only the turn's working directory: the sandbox still pointed at the
986
- profile's own root, so a model that wandered into a sibling project was allowed
987
- to write there. On a permission-enabled profile `/cd` now writes
988
- `sandbox-policy.workspaceRoot` with the same directory, which makes the
989
- boundary real — measured, not assumed: a write outside the root comes back as
990
- `[sandbox: file access denied under workspace-write mode]`, and switching the
991
- turn's own `working-directory` does not move the boundary. `danger-full-access`
992
- is now an explicit per-topic choice (`/cd <dir> wide`, or `/permissions
993
- danger-full-access`) instead of the quiet default. A profile with no permission
994
- table keeps the old behaviour, and `/cd` says which of the two it is doing.
995
- - **One row is not a setting.** The `sandbox-policy` row alone is ignored when the
996
- profile also has a permission table: `mode: read-only` next to `defaultPreset:
997
- danger-full-access` still wrote outside the root. Both rows are now written by
998
- one function (`permission-rows.mjs`) from one preset, so a file cannot end up
999
- disagreeing with itself, and `/permissions` reads the *effective* preset rather
1000
- than the table's current value. A preset with `approval: ask` is listed with the
1001
- reason it cannot be used from a chat — a headless turn has no approval channel,
1002
- and picking it used to mean a turn that failed closed.
1003
- - **Per-topic permissions.** A topic bound to an agent set gets that set's preset
1004
- on its own derived profile, so two topics can hold two presets without reading
1005
- each other's row. `/permissions` writes the set when the topic is bound and the
1006
- profile when it is not, and says which. `/settings` shows the topic's effective
1007
- preset, not the install's.
1008
- - **`/cd` survives a real filesystem.** Resolution moved into `control/cd-path.mjs`
1009
- as a pure function: `~`, a drive letter, a UNC path, a POSIX absolute path, a
1010
- bare project name under `projectsDir`, a relative path, `reset` — and the three
1011
- failures a chat actually hits (empty, missing, exists-but-is-a-file) each get
1012
- their own sentence. A bound directory that disappeared is reported as such
1013
- instead of silently falling back to `config.cwd`.
1014
- - **`/report` turns "it broke" into data.** One command collects version, node,
1015
- platform, profile, preset, model, fallback chain, cwd, the turn's tool names,
1016
- the topic's last failure and the last 120 log lines — then removes tokens, bot
1017
- tokens, `Bearer` headers, private keys, home paths, chat ids, machine ids and
1018
- email addresses before writing the file. In a direct chat it arrives as a
1019
- document; in a group the answer is the path only. `test/report.test.mjs` runs
1020
- the repo's own `scan-secrets.mjs` rules over a fixture that looks like a real
1021
- log tail and fails if a single rule matches. `docs/SUPPORT.md` says what to
1022
- send, what never to send, and how to tell the three kinds of silence apart.
1023
- - **The docs say what is true.** README gained the three sandbox modes with what
1024
- each one actually allows, the measured note that the sandbox row alone changes
1025
- nothing, and an attachment table that names the one hidden prerequisite: voice
1026
- needs `faster-whisper` and is off by default.
1027
-
1028
- ## 1.24.0
1029
-
1030
- - **The fallback chain could not cross providers.** `model-probe.mjs` read the
1031
- *first* provider block of the profile and asked that host about every model in
1032
- the chain. With one router that was right; the moment the chain mixed
1033
- companies it became the bug: a 503 from the first router was reported as the
1034
- verdict for a model that lives on a different company's host, and
1035
- `handle-message.mjs` stopped the chain after one probe. The log of a live turn
1036
- says it plainly — `channel down after 2 model(s): probe says ok; not trying
1037
- kimi-k3:free`, then `all fallbacks exhausted … : 3 probe=n/a`, while a working
1038
- provider sat right behind it. `providerFor(id)` now returns the named
1039
- provider's row, `probeModel(model, { provider })` asks that company, and each
1040
- entry is probed on its own route, so a dead pool skips only its own models.
1041
- - **A chain that mixes companies is a documented shape.** Each `fallbackModels`
1042
- entry may carry `provider`, and the switch notice names the route as
1043
- `provider/model`, because the same model id on two routers is two different
1044
- attempts. README explains the overlay file, the ordering rule (different
1045
- companies next to each other, `:free` last) and why one vendor twice in a row
1046
- is one outage rather than two chances.
1047
- - **The walk lives in `fallback.mjs`.** `handle-message.mjs` was at the 500-line
1048
- ceiling and the chain is a decision of its own — which model, on whose route,
1049
- and when to stop asking. Its three regexes and the give-up condition are now
1050
- exported and tested as data (`test/fallback-chain.test.mjs`), including the
1051
- case that used to be silent: a short chain with no verdict must not claim
1052
- "all models are unavailable".
1053
-
1054
- ## 1.23.0
1055
-
1056
- - **Buttons were never sent.** Every card built its keyboard as `{ text, data }`
1057
- — a payload, not a Telegram field. Telegram wants `callback_data` and rejects
1058
- the *entire message* when it sees `data`, and every send wrapped its API call
1059
- in `.catch(() => {})`, so `/menu`, `/settings` and the task card drew nothing
1060
- for four releases and said nothing about it. One conversion now happens at the
1061
- transport edge (`inlineKeyboard`), a button with no payload is dropped instead
1062
- of sinking the message, and a keyboard Telegram refuses is logged and retried
1063
- as text without buttons. Verified against the live API, not only in a test.
1064
- - **One typed command, one answer — across restarts.** `/update confirm` on
1065
- 1.22.0 installed the release and then threw on an undefined name. It was never
1066
- acked, so it stayed in the journal; each restart replayed it, it threw again,
1067
- and one command produced "already on 1.22.0" three times. A command that
1068
- throws is now answered in one line and acked, a replayed turn gets exactly one
1069
- retry, and a journal entry older than the replay window is dropped instead of
1070
- being re-run as a fresh turn.
1071
- - **The parallel ceiling is reachable from the chat.** It was a config-file key
1072
- (`maxParallel`, 1–8) nobody could find; a fourth topic simply said "waiting for
1073
- a free slot" with no way to widen it. `/jobs 5` sets it, the `/jobs` card
1074
- carries a row of buttons for 1–8, and both go through one function, so a tap
1075
- cannot store a value the command would refuse. Written to `config.json`; a
1076
- failed write still applies to the running process and says so.
1077
- - **Three refactor casualties that `node --check` cannot see.** `saveState` was
1078
- called but never destructured in `cmd-bridge.mjs` and `cmd-plugin.mjs`, `tg`
1079
- was used but not imported in `steer.mjs`, and `deliverTurn` had been renamed to
1080
- `redeliver` while two call sites kept the old name. A new guard test
1081
- (`test/unresolved-calls.test.mjs`) scans every shipped module for a call to a
1082
- helper it neither declares nor imports.
1083
-
1084
- ## 1.22.0
1085
-
1086
- - **💭 notes actually reach the progress card.** Two files exist for one topic:
1087
- the turn's own (`DSH_TG_THOUGHT`) and the stable per-topic one that `say.mjs`
1088
- writes whenever the tool shell lost the bridge's environment. The card read
1089
- only the first, so the block stayed empty while the file on disk kept growing.
1090
- Both are read now, filtered by the turn's start time, deduplicated, and a
1091
- previous turn's line can no longer surface as this turn's decision.
1092
- - **A turn that waits for a slot says so.** The parallel cap was a hard 3 and a
1093
- fourth topic waited in total silence — not even "queued", which reads exactly
1094
- like a dead bot. The cap is `config.maxParallel` (1–8, default 3) and a waiting
1095
- turn posts one line in its own topic, removed the moment it starts.
1096
- - **The notes instruction is not optional any more.** The per-turn prompt used
1097
- to offer "skip it for one-step work", which turned into skipping it always.
1098
- Now: a 💭 line at each decision point, and a `--note` line for the four things
1099
- a person must not have to ask about — a release, a root cause, a blocker, and
1100
- a turn running longer than a couple of minutes.
1101
-
1102
- ## 1.21.1
1103
-
1104
- - **The task list no longer freezes at 30.** The cap counted finished tasks as
1105
- well as open ones, so once a goal ran long every new task was rejected in
1106
- silence and the checklist stopped matching the work — the agent kept working
1107
- while the list stood still. The cap is now on open work; ticked entries stay
1108
- as history, and a goal that runs for months trims its oldest closed lines
1109
- instead of refusing new ones. A rejected add says why in the log
1110
- (`task rejected: 30 open`) instead of looking like a lost file.
1111
-
1112
- ## 1.21.0
1113
-
1114
- - **Four commands became two, and the argument picks the variant.** Going back
1115
- was `/rewind` + `/fork` + `/branches` — three names for one job, and the
1116
- desktop app calls all of it branching. It is now `/rewind 2` (cut),
1117
- `/rewind fork [n]` (copy), `/rewind branches` (list). Switching a session is
1118
- `/sessions <id>` instead of a separate `/resume`, and "am I current?" is
1119
- `/update`, which now opens with the version card instead of needing
1120
- `/version` first.
1121
- - **The old spellings still work and are never advertised.** `control.mjs`
1122
- rewrites them into the verb and its argument, and logs the rewrite, so an
1123
- instruction written down months ago does not turn into an AI turn. `/help`
1124
- and the panel list the two names; `menu-card.mjs` lost three buttons and no
1125
- section fell below a usable size.
1126
- - **`/help <command>` answers for the merged name too**: asking about `/fork`
1127
- explains `/rewind`, because the sentence belongs to the job, not the spelling.
1128
- - **One card for versions.** `/update` prints the bridge version, what npm has,
1129
- the install directory and the update mode in a single message; the second
1130
- half of that answer used to require a second command.
1131
-
1132
- ## 1.20.6
1133
-
1134
- - **All three locales checked, string by string.** 663 keys in each of `en`,
1135
- `ru`, `zh`: the same keys, the same placeholders, nothing empty, no mojibake.
1136
- Two real defects came out of it.
1137
- - **`/help tasks` printed literal double quotes** around its sentence in every
1138
- language — the string was written as a JS literal that already contained
1139
- quotes, and nothing looked at the shape of a translated string, only at
1140
- whether the key existed.
1141
- - **The Russian plugin list said "(disabled)" in English.** Now "(отключён)".
1142
- - A new test guards the shape rather than the key set: no string may be wrapped
1143
- in ASCII quotes, none may leak `undefined`/`NaN` or an unsubstituted `${…}`,
1144
- and a Russian or Chinese string may not be the English one unless it is pure
1145
- formatting, a product name, or a model id.
1146
-
1147
- ## 1.20.5
1148
-
1149
- - **`/prices` has one source: OpenRouter.** The card used to mix models.dev with
1150
- a scraped provider page, and could print `$0.0000` for the model the install
1151
- actually runs — a free mirror standing in for a real price. A price that is
1152
- wrong is worse than no price, because it gets believed.
1153
- - **The number is labelled as a reference.** A private route (unorouter,
1154
- wikivibe, any reseller) does not publish its own tariff, so the card shows
1155
- OpenRouter's rate for the same model id and says in words that this is the
1156
- market rate, not the invoice: `deepseek/deepseek-v4.1-flash — reference:
1157
- OpenRouter price for the same model, not your route`. The id stays visible so
1158
- the number can be checked in one click.
1159
- - `pricesUrl` is retired: a second catalog only reintroduced the bug it was
1160
- meant to fix — two numbers for one model, and a guess about which is yours.
1161
-
1162
- ## 1.20.4
1163
-
1164
- - **A prompt written in General ("Все") now starts its own topic.** The old
1165
- lobby rule moved such a message into the most recently active topic — so text
1166
- typed into the main stream ran in whatever project happened to be touched
1167
- last, and the answer appeared in a conversation the person was not looking at.
1168
- The owner hit this twice, once with a voice message.
1169
- - **The topic is named from the first words of the message.** Six words or forty
1170
- characters, whichever comes first, cut with an ellipsis; media without a
1171
- caption gets a neutral name. A title is a handle in a sidebar, not a summary.
1172
- - **The message itself becomes the first message of the topic.** It is copied
1173
- with `copyMessage` — media included, no "forwarded from" header — and pinned,
1174
- which also pins the topic to the top of the list. The copy is recorded as the
1175
- topic seed, so the duplicate guard does not answer the same text twice.
1176
- - **Commands are not prompts.** `/status` typed in General still answers where it
1177
- was typed; a state-changing command is still refused with the name of the
1178
- topic it would have changed. Only text without a leading slash opens a topic.
1179
- - If Telegram refuses to create the topic (no topic permission, a rate limit),
1180
- the old recovery runs instead, so the message is not lost.
1181
-
1182
- ## 1.20.3
1183
-
1184
- - **The Telegram menu is thirteen rows, and it is built from the registry.**
1185
- It had thirty-six, written by hand inside `bot-menu.mjs` — a second list next
1186
- to the one `commands-registry.mjs` already kept. That is how `/task` survived
1187
- in the menu for a release after it had become an alias: two lists, one truth,
1188
- and neither knew about the other. `MENU_COMMANDS` now lives beside the
1189
- registry, `bot-menu.mjs` renders it with the `menu.cmd.*` strings, and a test
1190
- fails if a row is an alias, a duplicate, one letter away from another row
1191
- (`task`/`tasks`, `sessions`/`resume`), or written by hand again.
1192
- - **Nothing was removed, only unadvertised.** Every command still works and
1193
- `/help <name>` still explains it; the menu is what a person presses, not what
1194
- exists. `/menu` draws the whole surface as sections.
1195
- - The menu had also been replaced at some point by the 31-command list of
1196
- `@xmanrui/dsh-im`; the bridge re-asserts its own list on start, and this is the
1197
- list it now asserts.
1198
-
1199
- ## 1.20.2
1200
-
1201
- - **`/task` and `/tasks` are one command again, and the menu shows it once.**
1202
- They had been split because `/tasks`, as an alias, swallowed the argument:
1203
- `/tasks 1` added a task whose text was "1". Splitting fixed that and doubled
1204
- the list — two nearly identical names, one of which did nothing the other could
1205
- not. `/tasks` now takes the argument itself: a bare number ticks that task,
1206
- `done|rm|edit <n>` say it out loud, any other text adds, and no argument shows
1207
- the card. `/task` still works and is never advertised, the way `models` and
1208
- `plugin` already work. `ctrl.help.about.task` folded into
1209
- `ctrl.help.about.tasks`; `/help`, the panel, the README and the start guide
1210
- teach one name.
1211
-
1212
- ## 1.20.1
1213
-
1214
- - **A voice note now arrives as a transcript, and says so.** The turn used to get
1215
- the recognised words with nothing marking where they came from, so a misheard
1216
- word was read as a deliberate one: "dodge" recognised as "дождь" turned a car
1217
- into weather, and the answer was about the wrong subject. The prompt now opens
1218
- with a line saying the text was produced by speech recognition, that names,
1219
- Latin words and rare terms may be misheard, and that the model should ask what
1220
- was meant instead of guessing. The echo in the chat is unchanged — the person
1221
- still sees what was heard before the reply. `test/voice-marker.test.mjs`.
1222
- - **The published package no longer names a provider.** `model-probe.mjs` fell
1223
- back to a hard-coded provider environment variable while its own comment
1224
- promised that nothing was hardcoded; the probe now reads the first provider row
1225
- of the profile, with `DSH_PROBE_BASE_URL` and `DSH_PROBE_KEY_ENV` as the generic
1226
- overrides.
1227
-
1228
- ## 1.20.0
1229
-
1230
- - **A turn shows its answer, not its reasoning.** When a turn ended without a
1231
- final answer, the CLI's `final` event reported the last assistant text it had
1232
- — the reasoning — and the bridge sent that as the reply. The chat then held a
1233
- page of thinking with no answer under it. The answer is now compared with the
1234
- reasoning block the panel already holds (whitespace-normalised, and only when
1235
- it is at least 120 characters, so "ok" cannot be swallowed); an echo becomes
1236
- one line saying the turn ended without an answer. `test/reasoning-echo.test.mjs`.
1237
- - **Every shipped module fits in one screen.** `bridge.mjs` 3116 → 411 lines,
1238
- `control.mjs` 2734 → 97, each dictionary 2024 → an 8-line header over
1239
- `core.mjs` (214 keys) and `ctrl.mjs` (421). The ceiling is a test, not a
1240
- promise: `test/module-size.test.mjs` fails above 500 lines and its `MIGRATION`
1241
- set — which once carried the files still waiting — is empty, so there is no
1242
- file left to exempt. The moves themselves change no behaviour; the process is
1243
- in `docs/REFACTORING.md` and the archived change is
1244
- `openspec/changes/archive/2026-10-28-split-giant-files/`.
1245
- - **The pre-push scanner stopped flagging merged pull requests.** GitHub writes
1246
- its own merge commits as `Committer: GitHub <noreply@github.com>`, and the
1247
- exemption in `scan-secrets.mjs` was written where it could never match, so the
1248
- first merged PR made every later push fail the check. The rule now reads the
1249
- address from its `@` and allows the whole `github.com` domain; a personal
1250
- domain is still a finding, and both cases are tested.
1251
-
1252
- ## 1.19.12
1253
-
1254
- - **The speed number added in 1.19.11 was wrong.** The harness reports
1255
- `outputTokens` per step, not for the turn, so dividing the last step by the
1256
- whole clock claimed 0.6 tok/s for a turn that was running at eighty. The panel
1257
- now sums the per-step numbers and divides that, and the test asserts the sum
1258
- rather than the assignment.
1259
- - **The bot answers again.** 1.19.11 moved the allowlist check to the very front
1260
- of every update and called `allowedSender(msg)` without the config, so the
1261
- list of allowed users was read from `undefined` and came back empty: every
1262
- message, the owner's own included, was logged as `ignored update` and dropped
1263
- silently. One argument restores it, and the wiring test now asserts
1264
- `allowedSender(msg, config)` rather than a bare call name, which is exactly
1265
- how the regression got through.
1266
-
1267
- ## 1.19.11
1268
-
1269
- - **The turn panel shows how fast it is generating**, in tokens per second, next
1270
- to the clock: `⏳ работаю… 412 с · 37 т/с`. The clock alone could not answer
1271
- "почему так долго" — a slow provider and a turn that spends its minutes in a
1272
- test run look identical. The number is the turn's average, output tokens over
1273
- wall time, and it is absent below three seconds rather than wrong.
1274
- - **A steer is confirmed the moment it is queued.** It used to produce nothing
1275
- at all: the `steer-inbox` plugin hands the addition to the running agent at its
1276
- next step, and a step can be a six-minute test run, so the addition looked
1277
- lost. There is now one short line at queue time; the 90-second notice is kept
1278
- for a job the plugin really has not picked up.
1279
-
1280
- ## 1.19.10
1281
-
1282
- - **A command typed in the General topic no longer changes another topic.**
1283
- General ("Все") is the lobby: a message written there is moved into the most
1284
- recently active topic so one project stays in one place, and the answer appears
1285
- there. That is right for a prompt and for reading — but `/new` typed in General
1286
- wiped the session of a topic the person was not looking at, and `/rewind` rolled
1287
- one back. Reading commands and `/stop` still follow the work; everything that
1288
- changes state is answered in General with the name of the topic it would have
1289
- changed. A command never creates a topic.
1290
-
1291
- ## 1.19.9
1292
-
1293
- - **`/tasks` is a command of its own again.** It had been an alias of `/task`,
1294
- which made the tappable checklist — the thing the README advertises —
1295
- unreachable, and made `/tasks 1`, the obvious way to mean "task 1", add a task
1296
- whose text was "1". The card also refused to draw for goals with fewer than
1297
- three tasks, which is most goals.
1298
- - **`/plugin add` installs into the topic's profile.** It wrote to the literal
1299
- `desktop` whatever profile the topic ran on, so on a fresh machine the only
1300
- in-chat install landed in a profile that does not exist. The `headless` /
1301
- `desktop` word is now read at either end of the line, as the help text always
1302
- said.
1303
- - **`setup` refuses on macOS and Linux instead of failing obscurely.** It stops
1304
- the old bridge with `taskkill` and registers autostart through `schtasks`, yet
1305
- the README promised "any platform" and `launchd`/`systemd` from that command.
1306
- It now names `install.sh` and exits 2; `--check` still runs everywhere.
1307
- - **`init` calls a missing headless profile a blocker**, because with no profile
1308
- the bot answers every message with an error. It names the one command that
1309
- fixes it.
1310
-
1311
- ## 1.19.8
1312
-
1313
- - **Fixed: sync-runtime copied only the root .mjs files, so the dictionary
1314
- split in 1.19.7 left the runtime directory with an import that could not
1315
- resolve — the bridge would refuse to start after the next /restart confirm.**
1316
- It now copies exactly what package.json says the package is made of,
1317
- including subdirectories, and test/sync-runtime.test.mjs runs the real script
1318
- into a temp directory and boots the result. Caught minutes after publishing
1319
- 1.19.7, before anyone restarted into it.
1320
-
1321
- ## 1.19.7
1322
-
1323
- - **Fixed: three files promised Node 20 (and one promised 18) while the package
1324
- requires 24.** `install.sh`, `install.ps1`, `QUICKSTART.md` and the sanity check
1325
- inside `setup.mjs` each had their own idea of the floor, so a person on Node 22
1326
- passed every check and then died on the first session read — the failure looked
1327
- like a broken plugin, not a version requirement. All four now say 24, and
1328
- `test/node-floor.test.mjs` fails the build if any of them drifts again.
1329
- - **Changed: the dictionary is one file per locale.** `i18n.mjs` was 2024 lines
1330
- and every translation change meant scrolling a wall; it is 94 lines plus
1331
- `i18n/{en,ru,zh}.mjs` at ~640 each. No behaviour change — the existing parity
1332
- test compares the three tables key by key, and `sync-runtime` learned to create
1333
- the directory a nested `files[]` entry needs.
1334
- - **New: `docs/REFACTORING.md`.** The order in which the two remaining big modules
1335
- get split, what breaks during a move, and the rule that a refactor never shares
1336
- a commit — or a release — with a behaviour change.
1337
-
1338
- ## 1.19.6
1339
-
1340
- - **Security: a stranger the bot can see could steer the owner's live turn.**
1341
- `allowedUserIds` was checked inside `handleMessage`, but the mid-turn addition
1342
- path (`steerRunningTurn`) runs one step earlier in the update loop and never
1343
- reaches that check — so any Telegram user who could message the bot could put
1344
- text inside a turn that already has shell and file tools. The allowlist is now
1345
- the first thing every update meets, in `accept`, before any branch; the rule
1346
- lives in `allowlist.mjs` so it can be tested without booting the bot.
1347
- - **Fixed: `/update confirm` never worked, for anyone.** It read
1348
- `<tmp>/package`, a layout npm stopped producing years before this project
1349
- existed (the package goes to `node_modules/`), and copied every entry with
1350
- `copyFileSync`, which throws on the first directory (`plugin/`, `skills/`).
1351
- The copy is now `cpSync` over the real path, split into `copyRelease()` so the
1352
- two faults are covered by tests instead of by hope.
1353
- - **Fixed: a missing DSH app killed the bridge on every turn, silently.**
1354
- `runTurn` spawned the desktop executable with no `error` listener; an
1355
- unhandled `EmitError` terminates the process, so a moved install looked like a
1356
- bot that answers nothing. The turn now fails with one line naming the exact
1357
- path and the config key that points elsewhere.
1358
- - **Fixed: `/task` and `/goal` printed the same card.** `/goal` is the plan
1359
- (objective, checklist, progress) and `/task` is the list you tick — it now
1360
- answers with the numbered checklist only, so typing either one tells you which
1361
- command owns what.
1362
-
1363
- ## 1.19.5
1364
-
1365
- - **New: `/logs file` test no longer needs a machine that has run the bridge.**
1366
- The test stat'ed the real `bridge.log`; on a laptop it exists, so the branch
1367
- that answers when it does not was never exercised. It writes its own log into
1368
- the sandbox home now.
1369
- - **Fixed: `/thoughts` promised a disappearing message and sent a permanent one.**
1370
- The title said the block would be gone in a few minutes while the send was an
1371
- ordinary reply — the one thing a person cannot check until they scroll back a
1372
- day later. The report now goes through the bridge's self-deleting send, the
1373
- promise names the interval (three minutes), and a test asserts the block never
1374
- leaves as a permanent message.
1375
- - **Fixed: CI was red for the whole 1.19.x line.** Two faults, both invisible on a
1376
- developer machine: the Node 20 leg died on the zstd import, and one test matched
1377
- a whole statement against `\n` only, which a Windows checkout turns into CRLF.
1378
- Both are fixed and the suite runs green on the real matrix.
1379
-
1380
- ## 1.19.4
1381
-
1382
- - **Fixed: the package claimed Node 20 and died on it.** Every command that touches
1383
- a session reads zstd frames, and `node:zlib` only grew the zstd codec in Node 24 —
1384
- the version DeepSeek Harness ships in its own runtime. The suite went red on the
1385
- Node 20 leg of CI for a month of releases, which nobody saw because the badge was
1386
- not part of the release gate. `engines.node` now says `>=24`, CI runs 24, and a
1387
- test fails the build if the declared floor and the CI matrix ever drift apart
1388
- again.
1389
- - **Fixed: the failure is now readable.** Importing a missing export is a syntax
1390
- error thrown before any code runs, so an old Node got
1391
- `does not provide an export named 'zstdDecompressSync'` and nothing else. The
1392
- zstd import is guarded: the message names the requirement.
1393
- - **Fixed: a test only passed on one line ending.** `cli-sync` matched
1394
- `const RUNTIME_FILES = ...;\n`, which is false on a Windows checkout that hands
1395
- the test CRLF — so the test was green locally and red in CI. It matches either
1396
- ending now.
1397
-
1398
- ## 1.19.3
1399
-
1400
- - **New: `/plugins info <name>` — what a package is before it gets in.** The card
1401
- shows the version, what the package does, its licence, its repository, and the
1402
- line that decides the outcome: whether the manifest declares `dsh.bundle`. A
1403
- package that does not declare it is an ordinary npm package and DSH will not
1404
- load it — the chat now says that instead of installing it hopefully.
1405
- - **New: `/plugins update` — a report first, installs one at a time.** A wordless
1406
- call compares every installed bundle with the registry and answers with a list
1407
- plus one up-arrow button per package; the button runs
1408
- `/plugins update <name>`, which is the only thing that starts pnpm. Saying one
1409
- word must not start twenty installs.
1410
- - **Fixed: a closed goal stayed closed only until someone fixed a typo.**
1411
- `/goal <text>` reset the `done` flag, so editing the wording silently reopened
1412
- the work. The mark now survives a re-wording, the card says the goal is still
1413
- closed, and `/goal reopen` is the explicit way back.
1414
- - **Fixed: the plugin tests could install into the desktop profile.** One test
1415
- walked the real profile and ran pnpm for every bundle it found — while this
1416
- release was being prepared it upgraded 14 packages on the development machine.
1417
- Every test that imports `control.mjs` now gets a throwaway `DSH_HOME` from
1418
- `test/sandbox-home.mjs`, and a guard test fails the suite if a new one forgets.
1419
-
1420
- ## 1.19.2
1421
-
1422
- - **Fixed: system commands answered a stranger in Russian.** `/restart`,
1423
- `/stop`, `/cd`, `/new`, `/help`, the start greeting and reminders each
1424
- carried their own `|| 'ru'` fallback, so an install whose owner never ran
1425
- `/lang` — and whose config had no default — spoke Russian to everyone, while
1426
- `resolveLang` promised English for an unknown reader. One rule now:
1427
- topic language, then `config.lang`, then English. A topic that chose Russian
1428
- still gets Russian; the difference is only what happens when nobody chose.
1429
- - **New: `/task edit <n> <text>` rewrites a checklist line in place.** The
1430
- desktop lets you edit a task; the chat could only delete it and add it again,
1431
- which renumbered every line below and broke whatever the conversation had been
1432
- quoting. An edit keeps the number, the position and the done mark;
1433
- `/task set` is the same action, and an impossible number is refused instead of
1434
- appending a line.
1435
- - **Docs: the changelog no longer names anyone's providers.** The published
1436
- changelog recorded the provider accounts and private channels of one install.
1437
- The portability grep used to skip that file, which hid the one place a public
1438
- reader could see them; both are fixed, and the grep now covers every file.
1439
- - `package.json` gained the repository's homepage and issue tracker, and npm's
1440
- own `pkg fix` shortened the `bin` path.
1441
-
1442
- ## 1.19.1
1443
-
1444
- - **Fixed: a tap in the panel ran an explanation instead of the command.** Every
1445
- command that takes an argument opened its help page, so most of the panel
1446
- answered with a paragraph — the buttons looked like text, not like commands.
1447
- A press now runs the command bare, exactly as typing it would, and the command
1448
- answers with its own usage line or its own card. Only `/new` and `/stop`
1449
- still stop at their explanation: a stray tap must not start a session or kill a
1450
- turn.
1451
- - **Fixed: the English progress header was Russian.** `bridge.progress.topic`
1452
- was left in the Russian block's spelling, so an English chat read
1453
- "Тема: main (id 42)" above every tool line. Three new tests now check that each
1454
- dictionary stays in its own language: no Cyrillic in the English or Chinese
1455
- values, and no untranslated English sentence in the Chinese one.
1456
- - **The panel leads with what is used daily.** `/menu` opens with four buttons —
1457
- status, model, new session, stop — above the six sections, so the common case
1458
- costs one tap instead of three. Nothing is listed twice.
1459
- - **The Telegram command menu no longer advertises aliases.** `/tasks`,
1460
- `/models`, `/plugin` and `/agentset` are still accepted, but they are gone
1461
- from `setMyCommands` (and their two Russian descriptions with them), matching
1462
- what the panel already did.
1463
- - **New: `/plugins search <word>` — the marketplace, from the chat.** It asks the
1464
- npm registry for the `dsh-plugin` keyword and answers with name, version and a
1465
- line of description; each result carries a plus button that runs
1466
- `/plugins add <name>`. A wordless search lists what exists at all. A refused
1467
- registry is reported as a failure with its status, never as "nothing found" —
1468
- the two send a person in opposite directions.
1469
- - **Fixed: the failure rules live in `failures.mjs`.** Extracting them from
1470
- `bridge.mjs` is what lets `TURN_TIME_CAP` be tested without starting a bot;
1471
- the module is published with the rest.
1472
-
1473
- ## 1.19.0
1474
-
1475
- - **Fixed: a turn stopped by its own time ceiling no longer reads as a
1476
- failure.** The bridge's clock reported `turn exceeded 75 min` as an unknown
1477
- error and told the person to repeat the request — which throws away a finished
1478
- hour of work that is, in fact, safely on disk. It is now its own cause,
1479
- `TURN_TIME_CAP`, saying that nothing is lost and that Continue picks up where
1480
- it stopped. The failure rules moved to `failures.mjs` so they can be tested
1481
- without starting a bot.
1482
- - **New: `/fork` and `/branches` — branches, as on the desktop.** `/fork`
1483
- copies this topic's session as a session of its own and moves the topic onto
1484
- the copy; `/fork 2` copies it as it stood two turns back. Nothing is cut: the
1485
- session you were in stays byte for byte as it was, and `/branches` lists the
1486
- branches with a button each, so going back is a tap and not a guess. The copy
1487
- gets a new id in its header — a copy that kept the old one would be two
1488
- sessions with one name. Same refusals as `/rewind`: a session being written,
1489
- or one whose tail is half-written, is not copied.
1490
- - **New: `/menu` is a real menu — six sections, pages, and a keyboard you can
1491
- keep.** The old panel was one card of sixteen buttons that vanished on the
1492
- first press. It is now a hub and six pages (work, sessions, goals, model,
1493
- extensions, service), each page one card that edits itself as you move, with
1494
- its commands as buttons, a way back and a way onward. Every documented command
1495
- is reachable from it and nothing else is: a test fails if the panel hides one.
1496
- - **New: `/menu on` puts four keys under the message field** — status, menu,
1497
- stop, new — and `/menu off` takes them away, remembered per topic. A tap sends
1498
- the key's own word, so the bridge maps those four words back to their commands
1499
- in all three languages; any other word stays a prompt, exactly as before.
1500
- - **Fixed: the `/help` body ran two lines together.** `/subscribe on|off` and
1501
- `Other:` were printed as `on|offOther:` in all three languages — a missing
1502
- newline from an earlier edit, which also made the whole body unparseable as a
1503
- single line.
1504
- - **The panel no longer advertises old spellings.** Buttons carry the command
1505
- they run (`/model <id>`, `/rewind [n]`), which is also how the panel teaches
1506
- the names — and a test walks every button of every page for a stale name.
1507
-
1508
- ## 1.18.0
1509
-
1510
- - **Fixed: "all models are unavailable" gave no reason.** After the probe found
1511
- out *why* nothing answered, the hint was built by gluing the verdict onto a raw
1512
- provider string, and the first thing in the message was the tail of an English
1513
- error (the chat showed `in`, from `insufficient …`). The hint lives in
1514
- `model-probe.mjs` now, is a sentence in the reader's language, and says which of
1515
- four things is wrong: empty balance, overloaded provider, rejected key, dead
1516
- network.
1517
- - **Faster: a dead channel pool no longer costs a turn per model.** A
1518
- `get_channel_failed` / `all providers are busy` 503 is the provider's own pool,
1519
- not the model — it is down for every model in the chain. One probe after the
1520
- first refusal now decides in seconds instead of four full turns: a real outage
1521
- that took 741 seconds reports in under two minutes, and a pool that answers
1522
- again lets the chain continue as before.
1523
- - **Fixed: a chain that stopped early went silent.** The "all models are
1524
- unavailable" message only fired when every model had been tried, so the new
1525
- early stop would have ended the turn with nothing. A verdict now counts as the
1526
- report, and a test pins the rule: no verdict and a short chain is not proof.
1527
-
1528
- ## 1.17.0
1529
-
1530
- - **Fixed: `/rewind` could cut a session the desktop app had open.** The first
1531
- 1.16.0 rule only refused while a *bridge* turn was running, but the app keeps a
1532
- write handle on a session it has open, and DSH then throws "stored log shrank
1533
- below a previously observed prefix" at the next message. A session written to
1534
- in the last half minute is now refused with a sentence that says to wait. The
1535
- projection cache needs nothing: rows past the new end are discarded and the
1536
- title is refolded from what remains.
1537
- - **Fixed: two refusals were a key name or a sentence that said nothing.** Every
1538
- refusal the planner can return now has words in all three languages, and a test
1539
- holds the planner's own list to the translations, so a new refusal cannot ship
1540
- wordless. Two Chinese messages were rewritten: they were correct but so short
1541
- they did not say what to do.
1542
-
1543
- ## 1.16.0
1544
-
1545
- - **New: `/rewind [n]` — go back a turn and say it differently.** The desktop
1546
- app can branch from an earlier turn; the bridge now can too, from Telegram.
1547
- `/rewind 2` shows a card naming every turn that will go and the turn the
1548
- session will continue from, with one button to confirm and one to cancel.
1549
- Nothing is cut until the button is pressed, the file is never edited in place
1550
- (a copy is written first, and `/rewind undo` puts it back), and a turn that is
1551
- running refuses the whole thing — a session being written is the one file this
1552
- must never touch. Every ambiguous case refuses with a reason instead of
1553
- guessing: no session, too few turns, a half-written tail, a button from
1554
- another session, a button pressed twice.
1555
- - **New: `/menu` — the panel.** Four short screens of buttons (work, answers,
1556
- session, service). A press runs the command a person would have typed, and the
1557
- card is replaced by that command's answer, so it never lingers. A button that
1558
- needs an argument opens its explanation instead of guessing.
1559
- - **New: `/help <command>`.** One sentence per command, and the lookalikes
1560
- explain each other: `/task` adds, `/tasks` is the list; `/model` switches,
1561
- `/models` is the catalogue; `/plugins` is the command, `/plugin` its old
1562
- spelling. The full list is still `/help`.
1563
- - **Fixed: two crashes in unreleased work, found by an audit before release.**
1564
- `/help <anything>` and `/rewind` both threw a `ReferenceError` — one on a
1565
- function that was called and never written, one on a variable read outside its
1566
- scope. `node --check` cannot see either. A test now calls the real dispatcher
1567
- with every command and asserts that none of them throws.
1568
- - **Fixed: the commit history carried a personal email address.** Two commits,
1569
- one of them reachable from every release since v1.10.0, were authored with the
1570
- maintainer's private address. The whole history was rewritten to the project
1571
- identity and every tag moved with it; nothing in the published package changed.
1572
- The secrets scan now fails on a commit author, not only on file contents.
1573
-
1574
- ## 1.15.1
1575
-
1576
- - **Fixed: `/settings` answered "Неизвестная команда".** It was in `/help`, in
1577
- the Telegram menu and in the code that draws the card, but not in the list the
1578
- bot checks before handling a command — the one list nothing compared against
1579
- the other two. Now one test reads all three: a command in help or in the menu
1580
- that the dispatcher does not know fails the build, and so does a command the
1581
- dispatcher knows that nothing documents. The test was run against the broken
1582
- code first, so it fails for the right reason.
1583
-
1584
- ## 1.15.0
1585
-
1586
- - **New: `/settings` is one card with four tabs.** What the bot says (reasoning,
1587
- language, thinking), who answers and how hard it works (model, effort,
1588
- permissions, preset, agent set, agents), new releases, and the health checks.
1589
- Each row shows what the value is now and what a tap would change it to, and a
1590
- tap runs the command a person would have typed — the card cannot drift from
1591
- the commands because it is a view of them. After a change it collapses into one
1592
- plain line that can be deleted.
1593
- - **Fixed, and it was the worst kind: `/prices` printed a wrong number.** The
1594
- catalog holds the same model on about a hundred gateways, 567 entries at cost 0,
1595
- and the matcher took the shortest substring hit — a free mirror of DeepSeek. The
1596
- install's own model was reported as `$0.0000 / $0.0000`. A price is now chosen
1597
- in a fixed order (published and yours, published, yours at zero, nothing), every
1598
- line says whose price it is, and a route nobody publishes says
1599
- "no public price" and names gateways that do.
1600
- - **Fixed: a Chinese question in an English client got an English answer.** The
1601
- reply language now comes from the message itself before the Telegram locale:
1602
- Cyrillic switches the topic to Russian, Han characters to Chinese. Three letters
1603
- minimum, so a model name or a path does not flip it.
1604
- - **Fixed: the first command a new reader runs was a 404.** QUICKSTART said
1605
- `npx dsh-tg@latest` eight times; the package is `dsh-tg-bridge`. Every copy-paste
1606
- line now works as written, and the `ERR_MODULE_NOT_FOUND` row says what a global
1607
- install does and does not update.
1608
- - **Fixed: `/status` said the context window was unknown.** It looked for
1609
- `contextWindow` in the wrong block of `cordis.patch.yml`, and the advice it gave
1610
- pointed at a file that never holds the setting. It now reads the model's row,
1611
- then the provider's default, and says which one is in force.
1612
- - **Fixed: every progress card was one more message in a chat that is already
1613
- busy.** One card per turn, edited in place, now carrying the topic it belongs to
1614
- — a card that lands in the wrong place says so instead of raising the question.
1615
- - **`/agents` explains itself.** Who a subagent is, what depth and the tool filter
1616
- change, whose model list the "routes" are, and the one command for each. The
1617
- numbers are still there; the sentence above them is new.
1618
- - **The release notice goes to the last topic that ran a turn**, not to whichever
1619
- topic happened to be open when the check ran.
1620
- - `scan-secrets` reads commit identities too (`--all`): an address in an
1621
- `Author:` line is personal data that no file in the tree shows, and it used to
1622
- pass every check. Docs corrected where they described behaviour that had
1623
- changed: `/logs file`, `/profile` in `/help`, the module count in the release
1624
- criteria, the menu-language fallback.
1625
-
1626
- ## 1.14.0
1627
-
1628
- - **New: updates have a policy.** The npm tag `latest` is a label, not an
1629
- updater — installing pins a version on disk and nothing moves until something
1630
- moves it. Now `/update` answers where the install stands, and takes a mode:
1631
- `check` (the default: one message per new release), `auto` (the release installs
1632
- by itself), `off` (no checks, nothing installs), and `confirm` (install now).
1633
- The mode is per install, not per topic, because it is the install that updates.
1634
- - In every mode the running process keeps its modules until `/restart confirm`,
1635
- so a bad release never arrives in the middle of a chat. `confirm` and `auto`
1636
- leave the replaced files in `update-backup-<date>`, and `/update` prints that
1637
- path: one folder is the way back.
1638
- - `/update off` pins the version it runs; `/update auto` refuses to be switched on
1639
- top of a pending update, since that would mean two updates at once, one of them
1640
- unattended.
1641
- - `/subscribe on|off` is the same switch said plainly, for people who do not want
1642
- to read `/update` first. It is not in the Telegram menu: a person who turned it
1643
- off should not have to look for it there again.
1644
- - The check rides the poll loop's idle and asks npm at most once a day (`check`)
1645
- or once an hour (`auto`). The first check runs three minutes after a start so a
1646
- restarting machine does not hit the registry on every boot.
1647
- - Docs brought back in line with the code: `/models`, `/plugin`, `/tasks`,
1648
- `/subscribe` and the whole `Sets:` and `Updates:` groups are in the README, in
1649
- `/help` in all three languages, and in the Telegram menu; `/models` and
1650
- `/plugin` were missing from the menu entirely.
1651
-
1652
- ## 1.13.2
1653
-
1654
- - `QUICKSTART.md`: from no Telegram account to an answering bot in twelve steps,
1655
- with a table of what actually goes wrong and what each symptom means. It ships
1656
- in the package and is linked from the top of the README.
1657
- - `skills/dsh-tg-bridge-onboarding/SKILL.md`: the same path as a skill, so an
1658
- agent next to a newcomer can ask three questions, run the install and verify it
1659
- by asking the person to send `hi` — not by reading logs.
1660
-
1661
- ## 1.13.1
1662
-
1663
- - **Fix: the npm package could not start.** `format.mjs` was imported by
1664
- `bridge.mjs` but missing from `files[]`, so `npm i -g dsh-tg-bridge` installed a
1665
- package whose entry point fails on its first import. The check that would have
1666
- caught it (does every shipped `.mjs` exist and does every relative import
1667
- resolve?) now runs in the test suite.
1668
- - `npm run secrets` and `npm run hooks` expose the scanner and the git hook
1669
- installer from a published install.
1670
- - Fix: a step note could land in another topic. Two turns running at once shared
1671
- one note file per topic, and `say.mjs` learned the topic by picking the newest
1672
- file on disk. Every turn now gets its own file, its path travels to the tools
1673
- as `DSH_TG_THOUGHT`, and with no target `say.mjs` exits (7) instead of guessing.
1674
- - **New: `/tasks` — the task list as buttons.** One tap closes a task, a second
1675
- tap reopens it, and the card is redrawn from state, so a double tap cannot
1676
- stack ✅ marks. The list is in the menu in all three languages.
1677
- - Fix: `goal.mjs` took the topic from `--key`, which was easy to forget, so a
1678
- task update could be written to the wrong topic or refused. It now takes
1679
- `DSH_TG_KEY`, which the bridge passes to every turn.
1680
- - A turn with no goal is told to set one before starting multi-step work, so the
1681
- plan the person can see and the plan the agent follows are the same list.
1682
- - **Security: a local push guard.** `scan-secrets.mjs` refuses tokens, private
1683
- keys, paths that carry a user name and personal ids kept outside the repo;
1684
- `.githooks/pre-commit` and `pre-push` run it, `install-hooks.mjs` installs them.
1685
- `jev-gate` asked a remote model about secrets and only when run by hand, which
1686
- is why an identifier reached a push earlier.
1687
-
1688
- ## 1.13.0
1689
-
1690
- - **New: `/agentset` — named settings for a topic.** A set holds a model, an
1691
- effort, a permission preset, a DSH agent preset and a language; every field is
1692
- a delta, so an empty one inherits the profile. `/agentset use <id>` binds it to
1693
- the current topic, `/agentset off` returns to the profile, `/agentset new`,
1694
- `copy`, `rm` and `/agentset model <value> [id]` edit it without a text editor.
1695
- Four builtins ship read-only — `normal`, `careful`, `fast`, `reviewer`; copy one
1696
- to change it. Two topics can now run two models on one profile, which was
1697
- impossible before: each of those switches wrote the shared profile patch.
1698
- - Sets live in `agentsets.json` next to `state.json`, with their own revision and
1699
- one silent rebase when two processes write at once, so a set saved by a second
1700
- bridge is not lost by the first.
1701
- - The progress message says which set a turn runs on (`On it: … · 9 s ·
1702
- Reviewer · glm-5.3/high`), and nothing when no set is bound.
1703
- - **Security: every inline button now checks the allowlist.** A callback used to
1704
- be accepted from any user in any chat the bot was in; the message path was
1705
- guarded, the button path was not. A press from outside `allowedUserIds` (and
1706
- outside an allowed chat) is answered with the same "unknown button" text and
1707
- changes nothing.
1708
- - Fix: `agentsets.json` is refused, not overwritten, when it cannot be parsed.
1709
-
1710
- ## 1.12.1
1711
-
1712
- - Fix: `bridge.mjs` spelled out one machine's secret name
1713
- (`DSH_TELEGRAM_BOT_TOKEN_<hex>`, a per-install id), so a clone carried the
1714
- original author's machine fingerprint. The suffix is now discovered from
1715
- `~/.dsh/.credentials.yaml` instead of being written into the code.
1716
-
1717
- ## 1.12.0
1718
-
1719
- - Fix: a restart went silent. Extracting the formatting helpers into `format.mjs`
1720
- took `langFor` with them while two call sites stayed behind, so `send()` threw
1721
- on its first line and the restart confirmation was logged and swallowed. The
1722
- bridge now sends `✅ Мост поднялся` again after `/restart confirm`.
1723
- - Fix: the npm README linked to `docs/*` files that the tarball does not ship, so
1724
- every such link opened a 404 right after install. The links now point at the
1725
- GitHub sources, and the install scripts and SECURITY.md are published too.
1726
- - New: `test/bridge-wiring.test.mjs` reads `bridge.mjs` and fails when a called
1727
- name is neither defined nor imported, and checks that every i18n key used by
1728
- the bridge exists in all three languages.
1729
-
1730
- ## 1.11.0 — 2026-10-25
1731
-
1732
- - The progress message opens with the request echoed back — `⏳ Принял: «…» · 3 с` — instead
1733
- of a bare spinner. It is the first thing sent after a message arrives, so the person sees
1734
- their own task named within a second, before the model has produced anything.
1735
- - `say.mjs --note "…"` sends a real short chat message, for decisions that change what the
1736
- person should expect: a release shipped, a cause found, a blocker. `--thought` stays the
1737
- decision trail inside the panel, so the chat does not get one message per step.
1738
- - The per-turn instruction now names both channels: 💭 for every significant step, `--note`
1739
- only for what must be known now.
1740
- - Two more panel tests (122 total).
1741
-
1742
- ## 1.10.1 — 2026-10-25
1743
-
1744
- - Long answers no longer arrive as literal `<b>` and `<code>`. The reply was turned
1745
- into Telegram HTML first and then cut at 3800 characters, so a cut inside a
1746
- `<pre><code>` block invalidated every part; Telegram rejected them and the fallback
1747
- resent the same markup as plain text — which is what the chat showed.
1748
- - The reply is now split as markdown: never inside a fence, with the fence re-opened
1749
- and its language tag kept, and each part converted on its own.
1750
- - The plain fallback strips tags and entities, so even a rejected formatted message
1751
- arrives as readable text instead of markup.
1752
- - `format.mjs` holds the conversion and the splitting, with seven tests that pin the
1753
- old failure (120 in total).
1754
-
1755
- ## 1.10.0 — 2026-10-25
1756
-
1757
- - `/thoughts file` sends the **whole** reasoning of the last turn as a Markdown
1758
- document (`reasoning-<date>-file.md`), and `/thoughts all` does the same for every
1759
- turn of the session. Measured on a real session: the last turn was 15 steps /
1760
- 30 317 characters, the whole session 164 turns / 1 559 steps / 2.2 MB — fine for a
1761
- document, impossible for a message.
1762
- - `/thoughts off` keeps the reasoning block out of the turn panel: it shows
1763
- `🧠 Размышления · N · /thoughts file` instead, and `/thoughts on` brings the block
1764
- back. The switch is per topic and lives in `state.json`.
1765
- - A cut block now points at `/thoughts file`, and the plain `/thoughts` reply ends
1766
- with the hint that lists the three modes.
1767
- - Logs are built from the session file on demand and pruned after a week.
1768
-
1769
- ## 1.9.3 — 2026-10-25
1770
-
1771
- - Reading a block no longer gets interrupted. Telegram re-collapses an expanded
1772
- `<blockquote>` on every edit of its message, so tapping the reasoning open and
1773
- then the next 3.5 s edit landed the chat back on an older message. Blocks now
1774
- appear only in the final edit of a turn, which nothing edits again; while the
1775
- turn runs the panel shows a reasoning counter (`🧠 Размышления · 4821`) and the
1776
- last three steps. Edits are also skipped when the text did not change and the
1777
- cadence dropped from 3.5 s to 5 s.
1778
-
1779
- ## 1.9.2 — 2026-10-25
1780
-
1781
- - Step lines name the work instead of the shell plumbing: the `cd <dir>` prefix and
1782
- the shell wrapper are dropped and the arguments kept, so a row reads
1783
- `pwsh: node sync-runtime.mjs` rather than `pwsh: node`. A call that only changed
1784
- directory is not a step at all, and repeats fold into the line above as `×3`.
1785
- A 35-row wall of `pwsh: cd` is now six rows of what actually ran.
1786
- - A cut reasoning block says where the rest is (`… · /thoughts`) instead of starting
1787
- mid-sentence with no explanation.
1788
- - `/thoughts` sends the whole reasoning of the last turn in parts (up to 20k
1789
- characters) rather than stopping at 4000 with an ellipsis.
1790
-
1791
- ## 1.9.1 — 2026-10-25
1792
-
1793
- - `/remind list` lists the reminders instead of failing as an unreadable time, and
1794
- the hint line mentions it.
1795
- - `/help` shows the real `/agents set model|depth|filter … @tool` form, which was
1796
- still documented as `/agents <id>`.
1797
-
1798
- ## 1.9.0 — 2026-10-25
1799
-
1800
- - The turn message shows the whole turn: the reasoning block plus, when a turn
1801
- makes more than three tool calls, the complete step list in a second collapsed
1802
- block. Short turns keep their three inline steps; long ones no longer end at
1803
- "…and 37 more" with no way to see them.
1804
- - Both blocks are budgeted against Telegram's 4096-character limit (reasoning
1805
- 2000, steps 1600, panel 3900) and keep their tails with a "beginning hidden"
1806
- note, so the newest part of the turn is always the part on screen.
1807
-
1808
- ## 1.8.1 — 2026-10-25
1809
-
1810
- - The turn panel respects `plainText: true`: it was sending the reasoning block as
1811
- HTML regardless, which is exactly what someone who turned markup off does not
1812
- want. Such an install now gets the same content without the tags.
1813
-
1814
- ## 1.8.0 — 2026-10-25
1815
-
1816
- The settings the desktop app exposes as panels, and the reasoning it streams as a
1817
- section, reach the chat — each as one edited message instead of a stream of
1818
- notifications.
1819
-
1820
- - **`/agents set model|depth|filter <value> @<tool>`** writes a delegation row in
1821
- the profile patch: which model a child runs, its `maxDepth`, its tool filter
1822
- (`deny:` list). A single row needs `@tool`, because a bare list of names is
1823
- ambiguous with a filter list. An unknown tool is named back with the list of
1824
- real rows instead of a wrong "depth" error. The patch is written atomically
1825
- with a rolling `.bak`: it decides every later turn, so a half-written file must
1826
- never exist.
1827
- - **`/effort`** reads the ids the route itself declares (`reasoningEfforts` in
1828
- the model catalog), offers exactly those, shows the current one and writes or
1829
- removes `reasoningEffort`. A value the route does not declare is refused; a
1830
- route that declares nothing gets the value written with an explicit warning
1831
- that nobody promised it works.
1832
- - **`/permissions`** lists the sandbox/approval presets in the profile, marks the
1833
- current one and switches it. On an app-managed profile the table is owned by
1834
- the bundle and the card says so instead of inventing a config row.
1835
- - **`/preset`** lists the agent presets a profile declares and switches the
1836
- pinned registry default; a profile that declares none is described, not
1837
- guessed at.
1838
- - **`/plan`** reads the session's plan projection: whether plan mode is on, what
1839
- it is waiting for, and how to ask for a plan. It is read-only on purpose —
1840
- headless cannot dispatch a mode change, and saying "off" when the truth is
1841
- "unknown" would be worse than saying "unknown".
1842
- - **`/jobs`** is the jobs panel for this bridge: running turns with their topic,
1843
- the queue depth and the parallelism cap. DSH jobs live inside the per-turn
1844
- child process and die with it, so a panel that claimed otherwise would lie.
1845
- - **`/remind`** adds, lists, deletes and clears reminders (`+15m`, `+2h`, `+1d`,
1846
- `HH:MM`). The scheduler is the bridge's own: the headless host exits after each
1847
- turn, so a DSH schedule would never fire. Entries are per chat, capped at 20,
1848
- and delivery is a plain message in the topic that asked.
1849
- - **Live reasoning**: the CLI's `thinking` events are folded into the turn's
1850
- progress message as a native `<blockquote expandable>` — collapsed it is one
1851
- line, tapped it shows the whole trail, and it stays with the turn after the
1852
- turn ends. Edits are throttled, text is escaped, long reasoning keeps its tail
1853
- with a "beginning hidden" note, and a rejected markup falls back to plain text
1854
- rather than freezing the panel.
1855
- - `profile-edit.mjs` (indent-aware YAML row editor, `.bak`, atomic rename),
1856
- `reminders.mjs` (parser + schedule helpers) and `panel.mjs` (the turn view) are
1857
- separate modules with their own tests; the panel was split out because
1858
- importing `bridge.mjs` claims the pid file and exits when a bridge is running.
1859
- - Six new commands in the menu and `/help` in all three languages; i18n parity is
1860
- enforced by a test, not by review.
1861
-
1862
- ## 1.7.7 — 2026-10-25
1863
-
1864
- - `/agents` answers the question the desktop sidebar answers: who can this
1865
- session delegate to, on which model, how deep, with which tool filter, which
1866
- routes a child may pick, and which children this session actually started
1867
- (read from the catalog the delegation tools themselves publish). `/agents <id>`
1868
- opens one child with its label, mode and the `/resume` line that continues it
1869
- here.
1870
- - `/profile show [name]` is the profile card: model, rows in its patch, disabled
1871
- rows, bundle count, delegation tools, child routes, and the file that owns them
1872
- all. `/profile` alone says which profile you are on; this says whether the one
1873
- you are about to switch to is the one you want.
1874
- - `agents.mjs` reads the delegation rows out of a profile patch (the bridge
1875
- already edited those patches by hand for `/model` and plugin toggles). It is
1876
- parse-only and tested, because a wrong indent assumption here reports the wrong
1877
- model to a person setting a cost budget.
1878
- - The command menu and `/help` carry `/agents` in all three languages.
1879
-
1880
- ## 1.7.6 — 2026-10-25
1881
-
1882
- - The status card names the session ("Название: Отвечай по игре сюда"). The
1883
- bridge only knew the titles it had set itself, so a session resumed from the
1884
- desktop, or seeded before the title was written, showed none — while
1885
- `/sessions` had it all along. It now falls back to DSH's projection cache.
1886
-
1887
- ## 1.7.5 — 2026-10-25
1888
-
1889
- - `/version` adds one line when the modules on disk are newer than the running
1890
- process: the version number comes from `package.json`, the answers come from
1891
- the code loaded at start, and after `sync-runtime.mjs` or `/update` those two
1892
- disagree until `/restart confirm`. Say it instead of letting a fresh number
1893
- read as live code.
1894
- - The `/logs` menu entry mentions `/logs file`.
1895
-
1896
- ## 1.7.4 — 2026-10-25
1897
-
1898
- - `/logs file` sends `bridge.log` as a document instead of pasting a slice of it:
1899
- when the question is "what exactly happened", the chat is the wrong container.
1900
- - `/logs errors` shows the bridge's own faults. It used to match every tool
1901
- result line, so a routine non-zero exit buried the four real failures under
1902
- four hundred lines of work the agent had already reported.
1903
- - A pending update that makes the replay throw is now logged and dropped. Before,
1904
- it stayed in the journal forever: the bridge replayed it, died, was restarted,
1905
- replayed it again — a crash loop every ninety seconds with nothing in the chat.
1906
- - `/logs` filtering moved into `filterLogLines()` and is covered by tests
1907
- (seven new).
1908
-
1909
- ## 1.7.3 — 2026-10-25
1910
-
1911
- - Report headers carry one glyph each (📊 status, 🩺 diagnostics, 🗂 sessions,
1912
- 📦 versions, 🧠 reasoning), so a chat full of answers can be scanned the way a
1913
- dashboard is.
1914
- - `/status` says whether the agent is working right now ("Агент работает: нет
1915
- (0 ходов)") and prints the full session id, because that id is what people copy
1916
- into `/resume`.
1917
-
1918
- ## 1.7.2 — 2026-10-25
1919
-
1920
- - A voice note or photo that arrived while a turn was running, but finished
1921
- downloading after that turn ended, is now delivered as a turn of its own. It
1922
- used to be written as a steer job and then sit in the directory until the
1923
- watcher noticed ninety seconds later — long enough to look like the message
1924
- was swallowed. The prepared text (transcript, file path, caption) is already
1925
- the whole request, so it runs directly instead of re-transcribing the audio.
1926
- - An album flush no longer decides "steer or turn" from the state at upload
1927
- time: the buffer holds photos for up to four seconds, and a turn that ended in
1928
- that window must still get an answer.
1929
- - The mid-turn photo disclaimer ("only the path is attached") is left out when
1930
- the text ends up as a fresh turn, where the image is readable after all.
1931
-
1932
- ## 1.7.1 — 2026-10-25
1933
-
1934
- - `/status` is a card now, not a key dump: session title, when it was created and
1935
- last active, how full the context is (`Context: 78,450 / 1,000,000 (8%)`, with
1936
- the window taken from `contextWindow` in `config.json`), how many tokens the
1937
- session billed over its whole life, how many turns it holds, and whether the
1938
- working notes are on. The numbers come from the session log itself
1939
- (`sessionStats` in `thoughts.mjs`), so they are right even for a session this
1940
- process does not hold.
1941
- - `/thoughts` no longer dead-ends on a turn that planned nothing (a one-word "ok"
1942
- has no reasoning part): it says so and shows what that turn answered instead.
1943
- - `/cd` with nothing bound printed an empty line where the directory belongs. It
1944
- now says the bridge default is in use, or that nothing is set at all, and
1945
- `/doctor` marks a default directory as inherited rather than silently shown.
1946
- - `sync-runtime.mjs`: one command copies the repo modules over the live bridge
1947
- directory with a timestamped backup. Several fixes in this release had landed
1948
- in the repo while the running copy kept the old file, so `npm test` passed and
1949
- the bot still answered from stale code.
1950
-
1951
- ## 1.7.0 — 2026-10-25
1952
-
1953
- - A command typed during a long turn is answered at once, not after it. The
1954
- immediate set was a list of six "safe" reports; everything else queued, so
1955
- `/model`, `/goal` or a mistyped command sat in the queue behind a turn that
1956
- could run for twenty minutes — which is indistinguishable from a dead bot.
1957
- The rule is inverted: only `/new`, `/resume`, `/seed`, `/send` and plugin
1958
- mutations queue, because those replace or feed the session the running turn is
1959
- writing. The list lives in `immediate.mjs`, and a test walks `CONTROL_COMMANDS`
1960
- so a new command is never silently left in the queue.
1961
- - `/thoughts` shows what the model was thinking in the last turn, read straight
1962
- from the session log (`thoughts.mjs` walks the zstd frames of
1963
- `session.v4.jsonl.zstd` backwards to the last `turn/start`), so it works for any
1964
- session, even one this process no longer holds. The reply deletes itself after
1965
- a few minutes; so does an unknown command's menu.
1966
- - `/version` reports the bridge version, the latest on npm and where the
1967
- bridge lives. `/update` says whether a newer release exists; `/update confirm`
1968
- installs it into the bridge directory (fetched into a temp dir and copied over,
1969
- with the previous files in `update-backup-*`). Until `/restart confirm` the old
1970
- code keeps serving, so a bad release cannot take the chat down by itself.
1971
-
1972
- ## 1.6.0 — 2026-10-25
1973
-
1974
- - A photo is read by the turn's own model, not by a second, billed one. The
1975
- automatic switch to `vision.patch` dated from a text-only default model; a
1976
- plain `headless` turn read the Chinese captions off a 720×1560 screenshot and
1977
- answered with them verbatim. The overlay is now opt-in (`vision.enabled`) and
1978
- mid-turn photos are honestly described as "here is the path" instead of "the
1979
- model cannot see it".
1980
- - `/models` is gone from the menu: bare `/model` lists the models and
1981
- `/model <id>` switches, the way every other command works. `/models` still
1982
- answers as an alias so old habits do not break. `/app` and `/restart` now say
1983
- which one restarts the desktop app and which one restarts the bridge.
1984
- - The package ships `profiles.mjs` and `cli-args.mjs`. Both are imported by
1985
- `bridge.mjs`, and `files` in `package.json` did not list them: an install from
1986
- npm would have died with `ERR_MODULE_NOT_FOUND` on the first turn.
1987
- - Model overlays that are materialised as profiles no longer show up in
1988
- `/profile`, and they keep the base profile's plugins through a `node_modules`
1989
- junction instead of booting a bare host without the steer inbox.
1990
- - Photo turns work again, and so does the fallback-model path: both passed
1991
- `--patch` to `dsh` *after* `--json`, and the launcher hands everything from
1992
- the first flag it does not know to the app, which rejected it with
1993
- `unknown option '--patch'` and exited 1 in about five seconds ("CLI exited
1994
- with code 1 and no output"). Launcher options now come first; `turnArgs()` in
1995
- `cli-args.mjs` builds the argument list and a test pins the order.
1996
- - A button press answers in the topic's language. A callback carries no message,
1997
- so `resolveLang` only had the config default there and answered in English
1998
- under a Russian card ("Send /doctor — it collects the full report."). The
1999
- first message in a topic now teaches the bridge what it speaks, the choice is
2000
- kept in `state.lang`, and an explicit `/lang` still wins.
2001
- - The whole surface speaks en / ru / zh, not just the menu and the greeting:
2002
- every `/command` reply in `control.mjs` (98 `ctrl.*` keys) and every runtime
2003
- line in `bridge.mjs` — progress steps, the fallback-model notice, the failure
2004
- explainer, approval buttons and callback answers (38 `bridge.*` keys). The
2005
- Russian wording is unchanged; English and Chinese are new. A `/logs errors`
2006
- filter keeps its Russian alternatives because it matches the bridge's own log
2007
- text, not user output.
2008
- - An album is one hand-over, not ten. Telegram sends one update per file with a
2009
- shared `media_group_id`; `albums.mjs` collects the group (1.2 s quiet, 4 s
2010
- ceiling) and delivers it as one steer into a running turn or one turn when the
2011
- topic is idle. Four tests cover ordering, separate albums, the ceiling and a
2012
- single-item group.
2013
- - A turn stopped by the time ceiling is now a pause, not a dead end: the status
2014
- message shows `⏱` with the localised explanation and a **Continue** button,
2015
- which enqueues a continuation prompt in the same session instead of re-running
2016
- the whole task from scratch (that is what Retry does). `runTurnLive` reports
2017
- `reason: 'timeout'` so the button choice is made on a fact, not on parsing an
2018
- error string.
2019
- - Attachments are a first-class part of a running turn, not just typed text.
2020
- - A caption no longer downgrades a file to a text-only message. `handleMessage`
2021
- only called the media helper when the message had no text, so every
2022
- captioned document was silently dropped — idle and mid-turn alike.
2023
- - Small text files (`.md`, `.json`, `.csv`, `.py`, `.log`, source, config, up
2024
- to 60 KB) are pasted into the prompt as content, so a steer can use them
2025
- without a tool round-trip; bigger or binary files keep the path.
2026
- - Audio sent as a document is transcribed like a voice note; video, video
2027
- notes and animations are saved under `inbox/` and handed over by path.
2028
- - A photo steered mid-turn now carries one honest line: a running turn cannot
2029
- apply the vision overlay, so the model says it cannot see the image instead
2030
- of quietly ignoring it.
2031
- - `inlineText()` lives in `media-text.mjs` with six tests.
2032
- - `/reasoning on|off` controls the `💭` decision trail per topic. On by default:
2033
- each turn carries one instruction to leave a line at each decision point. Off
2034
- removes both the instruction and the display, so nothing is written either.
2035
- New i18n keys (`prompt.reasoning`, `msg.reasoning*`) in en/ru/zh.
2036
- - `/profile` ports the app's profile switcher into a topic: list, switch
2037
- (`/profile research`), create from a shipped template
2038
- (`/profile new research from web`), and return to the install default
2039
- (`/profile default`). Turns, `/model`, `/plugins`, `/prices` and steering pick
2040
- the topic's profile instead of the global one. A created profile is written
2041
- with `dsh <name> --from-default-profile <template> --dump-config`, so nothing
2042
- boots at creation time.
2043
- - Fixed a latent bug: `handleControl` destructured `profile` from its context but
2044
- the bridge never passed it, so every profile-aware command silently used the
2045
- install default.
2046
- - Steering covers attachments, not just typed text. A voice note sent while a
2047
- turn runs is transcribed (`🎤 <transcript>` is echoed first) and the transcript
2048
- is handed to the live agent; a photo or a file is downloaded and its local
2049
- path is steered. Both go through the same helper an idle turn uses, so the
2050
- agent sees the same text either way.
2051
- - The voice/photo/document conversion moved out of `handleMessage` into
2052
- `mediaPrompt()`, which returns `{ text, extraArgs }`. A steer cannot apply the
2053
- vision patch to a turn that is already running, so a photo steered mid-turn
2054
- carries only its path.
2055
-
2056
- ## 2026-10-25 — v1.5.4
2057
-
2058
- - Portability: no command depends on one provider any more.
2059
- - `/prices` reads the public models.dev catalog; a provider page is optional
2060
- and configured with `pricesUrl` (default `""`). The vendor was previously
2061
- hardcoded.
2062
- - Provider keys passed to a turn are declared per install with
2063
- `"providerKeys": ["NAME"]` and read from `~/.dsh/.credentials.yaml`. The
2064
- four fixed provider names are gone, so a fresh install sends no foreign keys.
2065
- - `config.example.json` ships with `fallbackModels: []` and an empty vision
2066
- patch instead of one vendor's free models and vision model.
2067
- - README: the command menu is installed by `init`/`setup`, not refreshed by a
2068
- plain restart; run `dsh-tg menu` after upgrading.
2069
-
2070
- ## 2026-10-24 — v1.5.3
2071
-
2072
- - `say.mjs --thought` no longer depends on environment variables: tool shells
2073
- do not inherit the bridge's env, so it falls back to the newest active
2074
- thought file and needs no chat/thread ids.
2075
-
2076
- ## 2026-10-24 — v1.5.2
2077
-
2078
- - Fix a crash window in v1.5.1: the thought poller could fire before the
2079
- progress scheduler was initialized. `schedule` is now a hoisted function.
2080
-
2081
- ## 2026-10-24 — v1.5.1
2082
-
2083
- - Live thoughts: `say.mjs --thought "..."` appends a note to the turn's thought
2084
- file, and the progress message shows the last two as `💭` lines. No extra
2085
- Telegram messages, and chat/thread come from the turn environment.
2086
-
2087
- ## 2026-10-24 — v1.5.0
2088
-
2089
- - Desktop-style goals per topic: `/goal <text>`, `/goal`, `/goal done`,
2090
- `/goal clear`; `/task <text>`, `/task done <n>`, `/task rm <n>`.
2091
- - The goal and checklist are prepended to every turn, so they survive `/new`
2092
- and a restart. The agent ticks tasks through `goal.mjs`; job files keep the
2093
- bridge the only writer of `state.json`.
2094
- - `/status` shows goal progress; the Telegram command menu lists both commands.
2095
-
2096
- ## 2026-10-24 — v1.4.1
2097
-
2098
- - Manifest corrected against DSH's actual compatibility gate: only
2099
- `engines.dsh` is read, and it now carries an explicit `0.2.2-*` prerelease
2100
- branch. The inert `dsh.manifestVersion` / `dsh.compatibility` fields are
2101
- gone. Docs no longer present the market's display cache as the install gate.
2102
-
2103
- ## 2026-10-24 — v1.4.0
2104
-
2105
- - The package is now a valid DSH bundle: `engines.dsh` declares the supported
2106
- harness range, `dsh.bundle.patch` points at `cordis.patch.yml`, and
2107
- `plugin-bridge.mjs` starts one bridge when DSH boots and stops it on
2108
- shutdown. A live `bridge.pid` wins, so the plugin and the scheduled task
2109
- never poll the same bot twice.
2110
- - Installation no longer embeds a GitHub account: `init` and `setup` run
2111
- through `npx dsh-tg-bridge@latest`, and `install.sh` / `install.ps1`
2112
- download the npm tarball instead of cloning a repository.
2113
- - README: supported harness range, ecosystem links to the Chinese DSH plugin
2114
- catalogs, corrected autostart description (one guarded task, five-minute
2115
- tick), no raw personal URLs.
2116
- - `docs/MARKETPLACE.md`: what the catalog checks, the exact listing entry, and
2117
- the remaining blockers.
2118
-
2119
- ## 2026-10-24 — v1.3.5
2120
-
2121
- - Supervisor fix: `bridge-kick.mjs` starts the bridge with `spawn()` +
2122
- `unref()` instead of `spawnSync()`. The blocking call kept the tick alive
2123
- for as long as the bridge ran, held `restart.lock` for hours and left the
2124
- supervisor skipping every tick; the bridge was then started by a second
2125
- timer without the lock, producing Telegram 409 conflicts.
2126
- - The restart lock now expires after 180 s even if its holder is alive, and a
2127
- late holder only deletes a lock that still carries its own pid.
2128
- - Healthy ticks cost one `kill(0)`; the PowerShell process scan runs only when
2129
- the pid file is missing or stale.
2130
- - `setup` points the scheduled task at the guarded hidden launcher
2131
- (`wscript` + `bridge-kick.mjs`) instead of starting `node` directly, so
2132
- starts go through the lock and no console window appears at logon.
2133
-
2134
- ## 2026-10-24 — v1.3.4
2135
-
2136
- - `/prices` no longer assumes one provider: it merges the provider catalog and
2137
- models.dev, prices the model of the configured profile, answers in the
2138
- topic language, and does not crash when both catalogs are unusable.
2139
- - `/plugins add|remove|disable|enable` launch the DSH CLI the same way turns
2140
- do (Electron + `cli.js`); spawning the `dsh.cmd` shim failed with `EINVAL`
2141
- on Node 20 and newer.
2142
- - `/status`, `/models` and `/model` read and write `config.profile` instead of
2143
- a hardcoded `headless`; the desktop line appears only when that profile
2144
- exists.
2145
- - `/sessions` follows the topic's `/cd` directory.
2146
- - Turn telemetry reports the real model instead of a hardcoded id.
2147
- - `init` writes absolute voice and vision paths, and existing configs are
2148
- repaired at bridge start. Relative paths silently disabled voice and photos
2149
- after a fresh install.
2150
-
2151
- ## 2026-10-24 — v1.3.3
2152
-
2153
- - All documentation is now English: README, setup, cost, roadmap, release
2154
- criteria, UX analysis, injection notes and changelog.
2155
- - Removed personal data from the public repo: example Telegram ids are now
2156
- `123456789`, project examples use `my-app`, the internal status log and
2157
- archive notes are out of the tree, and `LICENSE` names the contributors.
2158
- - `allowedUserIds` defaults to an empty list, so a config-less bridge answers
2159
- nobody instead of one hardcoded id.
2160
- - `/cd` lists projects from `projectsDir` (default `~/Projects`) instead of a
2161
- hardcoded Windows path.
2162
-
2163
- ## 2026-10-24 — v1.3.2
2164
-
2165
- - A steer message is now accepted by DSH: the bridge sends a full message with
2166
- `id: randomUUID()` and `role: 'user'`. Without them every later turn failed
2167
- with `event at seq N lacks an identified message` and the topic stayed dead
2168
- until the session log was repaired by hand.
2169
- - The session log backup lives next to the session file.
2170
-
2171
- ## 2026-10-24 — v1.3.1
2172
-
2173
- - A steer message is no longer lost when a turn ends before the plugin picks
2174
- the job up. If the job is still unclaimed 90 seconds after the turn ended,
2175
- the bridge runs it as a separate turn. Previously it expired after 10 minutes
2176
- and the user got nothing.
2177
- - While the turn is running the bridge rechecks once a minute and does not post
2178
- extra messages.
2179
-
2180
- ## 2026-10-24 — v1.3.0
2181
-
2182
- - Steer while a turn is running: a message sent mid-turn is handed to the live
2183
- agent on its next step (`dsh-steer-inbox`) instead of waiting in the queue.
2184
- The agent posts a short line in the topic saying what it is doing now and
2185
- where the addition went.
2186
- - `say.mjs` sends that line; with `--steer <id>` it takes chat and topic from
2187
- the job and marks it so the bridge does not duplicate the confirmation.
2188
- - If the mark is missing after 90 seconds the bridge posts one neutral line in
2189
- the topic language (ru/en/zh), so silence never happens.
2190
- - Without the plugin in the profile the bridge does not write the job (it would
2191
- expire) and behaves as before: the message joins the queue. Guarded by
2192
- `steerAvailable()`. The plugin ships in the repo at `plugin/steer-inbox`.
2193
- - Tests: 12, three of them new (steer job write).
2194
-
2195
- ## 2026-10-24 — v1.2.10
2196
-
2197
- - Informational commands no longer wait for a turn: `/plugins`, `/models`,
2198
- `/sessions`, `/skills`, `/prices`, plus `/soul` and `/lang` without arguments,
2199
- answer immediately during a long turn. Previously they queued and arrived
2200
- twenty minutes later, which looked like a failure.
2201
- - `/plugins add|remove|disable|enable` stay queued: they change the profile and
2202
- must not run concurrently with a turn.
2203
- - The rule lives in `immediate.mjs` and is covered by `npm test` (9 tests).
2204
-
2205
- ## 2026-10-24 — v1.2.9
2206
-
2207
- - Fixed a race when removing the queue notice. If a turn started exactly while
2208
- "⏳ Previous turn is running…" was being sent, the notice stayed until the
2209
- turn ended. The staleness rule moved to `queue-notice.mjs` and has a test
2210
- (`npm test`, 4 cases).
2211
- - `queue-notice.mjs` added to the npm package files.
2212
-
2213
- ## 2026-10-24 — v1.2.8
2214
-
2215
- - "⏳ Previous turn is running…" no longer clutters the chat. A topic now gets
2216
- one such message instead of one per queued message, and the bridge deletes it
2217
- once a turn picks up the user's message.
2218
- - `send()` returns the sent message id, which is required to remove the notice.
2219
- - If deletion fails (no rights in a group) it is logged and does not affect the
2220
- turn.
2221
-
2222
- ## 2026-10-24 — v1.2.7
2223
-
2224
- - Localization extended to automatic messages: restart confirmation, the queue
2225
- notice, the cache line and "…and N more" in progress, new-topic log,
2226
- "Transcribing…" and the unknown-command hint now come from i18n (ru/en/zh).
2227
- - Removed the duplicate Russian `CONTROL_COMMAND_HINT`: the hint is built from
2228
- `help.body` in the topic language. Dead import in `bridge.mjs` dropped.
2229
- - Dictionary audit: 53 keys × 3 languages with no missing keys or placeholder
2230
- mismatches; the command menu holds the same 20 commands in all languages.
2231
- - Long reports (`/status`, `/sessions`, `/models`, `/plugins`, `/prices`) are
2232
- still Russian — a planned next step.
2233
-
2234
- ## 2026-10-24 — documentation
2235
-
2236
- - **docs/TELEGRAM-SETUP.md**: what must be enabled in Telegram for the bridge
2237
- to behave as designed — privacy mode, topics, bot rights, `allowedUserIds`,
2238
- a single instance, a one-minute check, and what does not need configuring.
2239
- - README: short "Telegram bot setup" block linking to the document.
2240
-
2241
- ## 2026-10-24 — v1.2.6
2242
-
2243
- - The progress message no longer has "Stop" and "Logs" buttons: `/stop` and
2244
- `/logs` work during a turn now, so buttons would only duplicate them. The
2245
- "Retry", "Doctor" and permission-confirmation buttons remain.
2246
- - Handlers for the old buttons are kept so pressing a button in an already sent
2247
- message does not fail silently.
2248
-
2249
- ## 2026-10-24 — v1.2.5
2250
-
2251
- - No more silence after `/restart confirm`: the old process wrote "Restarting
2252
- the bridge…", exited and said nothing. It now leaves `restart-notice.json`
2253
- with chat and topic, and the new process replies there first with
2254
- "✅ Bridge restarted — online (pid N)". If the replacement never starts there
2255
- is no reply, which is the honest signal.
2256
- - The notice is deleted right after sending and ignored if older than 10 minutes.
2257
-
2258
- ## 2026-10-24 — v1.2.3
2259
-
2260
- - `/stop` now stops a turn instead of waiting for it. Commands used the topic
2261
- queue, so `/stop` sent during a 26-minute turn reached the handler when there
2262
- was nothing left to stop. Six commands — `stop`, `logs`, `status`, `help`,
2263
- `doctor`, `restart` (including glued forms) — run off-queue and do not get a
2264
- "message queued" notice.
2265
- - Commands that change session state (`/new`, `/model`, `/lang`) still go
2266
- through the queue.
2267
-
2268
- ## 2026-10-24 — v1.2.2
2269
-
2270
- - The queue no longer looks like a hang: if a turn is already running, the
2271
- notice states how long ("running for 24 min") and mentions `/stop`. It now
2272
- arrives after 30 s instead of 45 s.
2273
- - Hard turn limit raised from none to 40 minutes (`turnTimeoutMs`), so a hung
2274
- child process cannot hold a topic forever; the 2-minute inactivity watchdog
2275
- remains.
2276
-
2277
- ## 2026-10-24 — v1.2.1
2278
-
2279
- - Menu and `/plugins` changes are now in the repository. Edits that merged
2280
- `/plugin` into `/plugins` existed only in the working directory
2281
- `~/.dsh/tg-bridge`, while npm still shipped the old version. `control.mjs`
2282
- and `bot-menu.mjs` were moved into the repo: 21 commands in the dispatcher
2283
- (alias `/plugin`), 20 in the menu, `/plugins` described as
2284
- "List and manage: add/remove/disable/enable".
2285
- - `setup` code sync can no longer revert these changes: the repository is the
2286
- source of truth.
2287
-
2288
- ## 2026-10-24 — v1.2.0
2289
-
2290
- - One-command install: `dsh-tg init --token <t> --user <id>` writes the token to
2291
- `~/.dsh/.credentials.yaml` (`refs.DSH_TELEGRAM_BOT_TOKEN`), creates
2292
- `config.json` with the user id and working directory, and checks the
2293
- `headless` profile. Also `--cwd`, `--voice`, `--dry-run`. Other sections of
2294
- credentials are untouched and `config.json` is never overwritten.
2295
- - Token lookup accepts any `DSH_TELEGRAM_BOT_TOKEN*` name and the environment;
2296
- a fresh install no longer fails with "token not found" right after `init`.
2297
- - `cli.mjs` copies the code to `~/.dsh/tg-bridge` from any clone location, so
2298
- `setup` no longer answers "bridge not found".
2299
- - Autostart in `install.sh`: `launchd` (macOS) and `systemd --user` (Linux) with
2300
- `--no-autostart`; Windows keeps the `DSH-TG-Bridge` task and `DSH-Bridge-Kick`.
2301
- - Error codes `INSUFFICIENT_QUOTA`, `TG_CONFLICT`, `MISSING_CREDENTIAL`,
2302
- `NO_DSH_CLI`, `NETWORK`, `SANDBOX_DENY`, `UNKNOWN_MODEL`, `EMPTY_RESPONSE`,
2303
- `TURN_FAILED`, each with a single action at the end of the failure message.
2304
- - `/plugins` is a single command: `add/remove/disable/enable` are forwarded to
2305
- `/plugin`, which was removed from the Telegram menu (20 commands per language).
2306
- - `/lang` added to `CONTROL_COMMANDS` (it was reported as unknown) and to the
2307
- command hint.
2308
- - `bridgePids` compares the full script path, so a second installation with its
2309
- own `DSH_HOME` and bot is not treated as a duplicate bridge and killed.
2310
- `DSH_HOME`/`DSH_TG_HOME` are honoured in `bridge.mjs`, `setup.mjs` and
2311
- `bot-menu.mjs`.
2312
-
2313
- ## 2026-10-24 — v1.1.0
2314
-
2315
- - Three languages: `i18n.mjs` (en/ru/zh), `t()`, normalization of `zh-hans → zh`.
2316
- - Menu in three languages: `setMyCommands` for default, `en` and `zh` (Telegram
2317
- rejects `zh-hans`).
2318
- - `/lang en|ru|zh`: language is stored per topic; a new user gets one from
2319
- `language_code`, anything outside ru/zh falls back to `en`.
2320
- - Localized: start message, progress headers, turn failure, `/cd`, `/new`,
2321
- `/stop`, unknown-command reply and the Stop/Logs, Retry/Doctor buttons.
2322
- - An unknown command no longer starts the model — it returns a hint.
2323
- - Watchdog: 25 s pause and pid recheck before alerting; `requireDesktop: false`
2324
- and the alert mentions the bridge, not the desktop app.
2325
- - Fixed the i18n import in `bridge.mjs` (`resolveLang is not defined` left the
2326
- message stuck).
2327
-
2328
- ## 2026-10-23
2329
-
2330
- - Timeouts reworked: the hard ceiling is gone (`turnTimeoutMs: 0`), silence no
2331
- longer kills a turn, any stdout/stderr byte extends the window, and a
2332
- heartbeat refreshes the status every 2 idle minutes.
2333
- - Fallback chain extended to 7 models (opus-5-5, glm-5.3-flash:free,
2334
- qwen3.6-35b-a3b, free-mimo, deepseek-v4.1-flash:free, opus-4-7, sonnet-4-7
2335
- across the configured providers).
2336
- - New switch triggers `AUTH`, `403`, `insufficient_user_quota`, `UNKNOWN_MODEL`,
2337
- `MISSING_CREDENTIAL`, with a chat message when falling back to a free model.
2338
- - Extra providers added to the headless profile; keys live in
2339
- `.credentials.yaml` and are passed to the CLI child environment.
2340
- Subagents run on a cheaper model than the topic.
2341
- - Commands come from the single `CONTROL_COMMANDS` list; `/cd`, `/prices` and
2342
- `/seed` were missing from the old hardcoded whitelist and were sent to the
2343
- model as plain text.
2344
- - `restart.lock` prevents `setup` and the kick from starting two pollers at once
2345
- (the cause of 409s).
2346
- - On a "was recorded in … not …" session error the bridge resets the session and
2347
- starts a new one.
2348
- - Docs: UX-ANALYSIS.md and ROADMAP.md updated.
2349
-
2350
- ## 2026-10-22
2351
-
2352
- - Turn journal in `pending/` with ack after send and replay on start.
2353
- - Two-phase restart: `restart.pending` → exit(75) → supervisor; one-minute
2354
- `DSH-Bridge-Kick`.
2355
- - `/cd` binds a topic to a project; `setup.mjs` finds bridges by pid file (an
2356
- elevated process has an empty cmdline).
2357
- - Files: `/send` (sendDocument) and incoming documents saved to `inbox/`.
2358
- - IPv4 forced (`dns` + `net`), polling backoff, error codes `TG_NET`/`TG_POLL`.
2359
- - Sandbox: `workspace-write` with an explicit `permission` preset (the service id
2360
- is `permission`, not `permission-presets`).
2361
- - Progress: single status message, step list, cache stats in the final message.
2362
- - Vision: gemini declares `input: [text, image]`; canary test with "red, 42".
2363
- - Config and project backups to private GitHub repositories.
90
+ ## 1.40.0
91
+
92
+ - **`/find <text> [path]` — where a string lives in this project.** The chat could
93
+ send a file and show a diff, but not answer "which file has this line", the
94
+ question that sends a person back to their desk. The search is literal, so a
95
+ query with `.`, `*`, `(` or `\` searches for those characters instead of
96
+ throwing; it is bounded by files, milliseconds and depth, and says when the
97
+ walk stopped. Twenty rows come back as buttons, with the total and a hint how to
98
+ narrow; a file that is binary or over 512 KB is skipped and counted, never read.
99
+ Pressing a row opens the file at the matched line, marked `▶`, with a **more**
100
+ button that pages forty lines at a time.
101
+ - **One fence for every file the chat touches** (`lib/file-fence.mjs`): a path
102
+ outside the topic folder is refused with the folder named, a file is opened only
103
+ when it is plausibly text and under the cap, and the walk skips `.git`,
104
+ `node_modules` and their kind. `/ls` and `/edit` will read through the same
105
+ fence, so the rule cannot drift between three commands.
106
+ - `lib/` joins the published files; the fence is imported by shipped modules.
107
+
108
+ ## 1.39.1
109
+
110
+ - **A subagent is visible in the card as one honest line.** The headless stream
111
+ has no event type for subagents — a scan of its JSON stream found seven types,
112
+ and `subagent` is not one of them — so a subagent reaches the bridge as an
113
+ ordinary tool call plus a later result. The card now shows the task it was
114
+ given when the call starts, and adds the measured duration when the result
115
+ arrives (`subagent: Проверить релиз · 42s`), with a `✖` when it failed. The
116
+ duration is wall clock between the two events, because that is the only source
117
+ the stream offers; token counts and live progress would need a DSH plugin.
118
+
119
+ ## 1.39.0
120
+
121
+ - **A Telegram session now appears under its folder in the desktop sidebar**
122
+ (issue #3). The sidebar groups by a membership list — `workspace.json` →
123
+ `tables.workspaces[<id>].sessionIds` — and only the web host or a one-time
124
+ migration ever wrote to it, so a headless turn produced a session that worked
125
+ and looked homeless. After a turn the bridge adds that session id to the
126
+ workspace whose `path` is the turn's folder: once, idempotently, atomically
127
+ (temp file plus rename, so a host holding the file never reads half of it), and
128
+ only when the id is absent everywhere. A folder no single workspace claims is a
129
+ refusal, logged and left alone — the wrong group is worse than "Ungrouped",
130
+ because it claims the session ran somewhere it never did.
131
+ - **A 💭 line finds its turn without the environment** (follow-up to 1.38.8). The
132
+ bridge now writes one marker per running turn — pid, topic, folder, note file —
133
+ and `say.mjs` reads it when the shell inherited nothing: a turn running in this
134
+ folder is a fact, so no guessing is involved. Zero or two live turns in one
135
+ folder is still a refusal, for the reason the guessing was removed in the first
136
+ place.
137
+
138
+ ## 1.38.8
139
+
140
+ - **A 💭 line is no longer lost when the sandbox forbids the write.** A turn that
141
+ runs in a project folder may have `~/.dsh` outside its writable area: the note
142
+ file refused the append with `EPERM`, `say.mjs --thought` exited 6, and the
143
+ decision never reached the chat. It now falls back to sending the line as a
144
+ real `💭` message — the person sees it, the stderr line says why it did not go
145
+ into the card, and the exit code is a failure only when both paths fail.
146
+ - `DSH_TG_THOUGHTS` overrides the thoughts directory, so the fallback is
147
+ testable without breaking a real installation.
148
+
149
+ ## 1.38.7
150
+
151
+ - **The turn card is now a choice, not a wall.** Every turn ends with one card,
152
+ and it used to carry everything the bridge knew: speed, thoughts, steps,
153
+ context, cost, cache and reasoning, in that order, for everyone. `/card` lists
154
+ those rows as buttons: tap one and that block stops appearing in this topic
155
+ from the next turn. The choice is per topic and survives a restart.
156
+ A topic that never chose keeps the full card, so an update never shortens a
157
+ card someone was reading. The head stays either way: a card without a duration
158
+ is not a summary of a turn.
159
+ - **The renderer reads the same switch the command writes.** `chat/panel.mjs`
160
+ takes the chosen set and drops the rows it excludes, instead of deciding for
161
+ itself what a card carries — the drift that would otherwise make `/card` a
162
+ promise the card does not keep.
163
+ - **A press answers.** Toggling redraws the card from state (a double tap settles
164
+ on one truth), answers «Включено»/«Выключено», and an id this build does not
165
+ know says the button is stale instead of writing a key nothing reads.
166
+ - `/help` documents `/card` next to `/model`, `/cost` and `/thoughts`, in all
167
+ three locales, with a sentence of its own.
168
+
169
+ ## 1.38.6
170
+
171
+ - **A refused key is no longer reported as an unrecognised voice message.** A
172
+ speech engine answering 401 or 404 says the same thing on every attempt, but
173
+ the chat got «Не распознал голосовое» — the same sentence a mumbled clip gets —
174
+ and the batch sent every clip through the same doomed request. The transcript
175
+ result now carries `fatal` and the status: a refused key, a model the server
176
+ does not have, a rejected request, a missing key, a broken `voice.cwd` or a
177
+ non-absolute `voice.python` all stop the batch at the first clip and say which
178
+ setting to fix. Load is left retryable, because 429 and 5xx do change their
179
+ mind: those keep the old line, with the status in it.
180
+ - **The rest of a batch is counted, not sent.** One refusal explained, the
181
+ remaining clips are skipped and one line at the end says how many were left
182
+ out — previously each clip cost a download and printed the identical warning.
183
+
184
+ ## 1.38.5
185
+
186
+ - **The settings card opens the thing it names.** A row like «Модель» runs
187
+ `/model`, whose answer is a card with buttons. The press handler kept only the
188
+ text of whatever the command answered, so the model card arrived as a plain
189
+ message: it named the current model and gave no way to change it — the settings
190
+ screen could describe the install but not edit it. A card-shaped answer is now
191
+ sent under the settings card with its keyboard, in the topic it was asked in,
192
+ and a plain answer still comes as one line. `/fallback`, `/permissions`,
193
+ `/preset` and `/cd` sit behind the same door and open the same way.
194
+ - **The last thought of a turn reaches the card.** The progress card re-reads the
195
+ decision trail every three seconds, so a line written in the final seconds —
196
+ "the result is checked", the one that says how the turn ended — landed between
197
+ two ticks and never appeared at all. The card now reads the trail once more
198
+ before it is finished, and only while `/thoughts` is not off.
199
+
200
+ ## 1.38.4
201
+
202
+ - **A rewind button no longer answers "undefined".** `answerRewindPress()` was
203
+ handed the unbound `t`, and it calls `t(key, vars)` with one argument, so the
204
+ i18n read the key as a language and returned `String(undefined)` — every press
205
+ on the card replaced it with the single word *undefined*, in every language.
206
+ The caller now binds the topic's language, and the helper itself falls back to
207
+ the key when a translation is missing, so a caller's binding mistake stays
208
+ visible instead of becoming a message.
209
+ - **"Back N" on the usage card cuts; it no longer only cancels.** Both buttons
210
+ carried the verb `n`: the quick pick as `rw:n:<steps>`, the cancel as `rw:n::`.
211
+ The handler read the verb alone, so `/rewind` followed by "back 2" cancelled
212
+ and removed nothing — the one path the feature exists for. A step count now
213
+ decides: `rw:n:<n>` cuts, `rw:n::` cancels, and both take the same one-use
214
+ ticket, so a double tap still cannot cut twice.
215
+ - **Picking a model for one topic acknowledges the press.** That branch switched
216
+ the route, wrote the state and sent its confirmation, but never answered the
217
+ callback, so Telegram kept the spinner for 45 seconds and then reported that
218
+ the tap never answered — a switch that worked, shown as a failure, with the
219
+ confirmation arriving after the person had already pressed something else. The
220
+ toast now carries the route that took, before the confirmation text.
221
+ - **Three cards stop losing their buttons on the way out.** `/load`
222
+ (control/cmd-load.mjs), the held-turn notice (work/load-guard.mjs) and the
223
+ sandbox notice (chat/handle-message.mjs) hand their markup over as
224
+ `reply_markup`, and `sendWithMarkup()` read only `extra.keyboard` — so the
225
+ `/load` card arrived without its refresh and guard buttons, and the sandbox
226
+ notice told a person to open `/permissions` with a button that was never drawn.
227
+ Both shapes now go through the same conversion, and a keyboard with nothing
228
+ pressable is logged and sent without buttons instead of arriving empty.
229
+
230
+ ## 1.38.3
231
+
232
+ - **The `/model` endpoint tap now reaches the model list.** The report was always
233
+ the same: tap an endpoint, nothing happens, the card stays on step one, and
234
+ there is no way to test a turn on another model without asking an agent to do
235
+ it by hand. The cause was one field name. `modelCard()` builds buttons as
236
+ `{ text, data }` — this module's own shape — and the redraw sent
237
+ `card.keyboard` straight to Telegram, which knows only `callback_data` and
238
+ rejects a button that has text and no payload with `can't parse
239
+ InlineKeyboardButton: Text buttons are not allowed in the inline keyboard`.
240
+ That rejects the whole edit, so the second step was built, sent, and refused
241
+ every time since the two-step card shipped. The redraw now converts with the
242
+ same `inlineKeyboard()` every other keyboard uses, and the re-send fallback
243
+ gets the converted rows too — a fallback carrying the bad shape fails for the
244
+ same reason the edit did.
245
+ - **The test asserts the wire shape, not the local one.** Twenty-five green tests
246
+ covered this card and none of them caught it, because they checked that the
247
+ keyboard had rows after building it in memory, where `data` is correct. The
248
+ press test now walks every button of the edit and of the re-sent message and
249
+ requires `callback_data`, at most 64 bytes, and no leftover `data` field — the
250
+ three things Telegram checks before it will draw anything.
251
+
252
+ ## 1.38.2
253
+
254
+ - **A turn that ends without an answer asks once more instead of apologising.**
255
+ Reported from a live topic, with the log to prove it: `turn ok … 994s
256
+ tools=39`, then `reasoning echo suppressed … (3252 chars)`, then `sent …
257
+ len=96`. The turn did the work; the CLI reported the model's own notes as the
258
+ final text; the bridge refused to forward a page of thinking — correctly — and
259
+ sent only the apology, so nearly seventeen minutes of work ended in a sentence
260
+ that said nothing. The work was still in the session, so `chat/reply-guard.mjs`
261
+ now asks once more in that same session with `REPLY_NUDGE` and sends the real
262
+ answer when it arrives. The apology stays for the case where the second attempt
263
+ also comes back as notes, because silence is worse than either.
264
+ - **A leaked thinking block no longer reaches the chat.** Some routes stream
265
+ reasoning into the text channel, so the reply arrives as
266
+ `<thinkingAll done. Now the final answer. …` — a string the reasoning block
267
+ does not contain, which is why the guard missed exactly its target case:
268
+ `reasoning.includes(answer)` was false by one marker. `stripThinkingBlocks()`
269
+ now runs before the comparison: a closed `<thinking>…</thinking>` block is
270
+ dropped whole, a stray or unclosed marker is removed and the rest kept, and the
271
+ final send strips it too, so a real reply with a leaked marker keeps its text
272
+ without showing the marker.
273
+ - **The `/model` endpoint step reaches its models even when Telegram refuses the
274
+ edit.** Tapping an endpoint was handled — `model press md:!p:unorouter` in the
275
+ log — and the screen still did not change, because `redraw()` ended in
276
+ `.catch(() => {})`: the one failure that matters was the one failure that said
277
+ nothing. The refusal is now logged, and the card is sent as a new message so
278
+ step two is reachable either way. Both halves are pinned by tests: the router
279
+ that a real tap goes through must translate, redraw and claim, and a refused
280
+ redraw must still produce a keyboard.
281
+ - **Command reading moved out of the message handler.** `handle-message.mjs` had
282
+ grown past its 500-line ceiling, and the block it was carrying — mapping a
283
+ collapsed head like `/apprestart.confirm` onto `/app restart confirm` — is
284
+ command knowledge, not the business of one-message-becomes-one-turn. It is
285
+ `commandParts()` in `chat/commands.mjs` now, with the reply guard in
286
+ `chat/reply-guard.mjs`.
287
+
288
+ ## 1.38.1
289
+
290
+ - **Speech runs before the first `init`.** `chat/media.mjs` spawned the local
291
+ engine with the live install (`~/.dsh/tg-bridge`) as its working directory. On
292
+ a checkout that had never been initialised that directory does not exist, the
293
+ spawn failed with `ENOENT`, and `transcribe` returned an empty transcript with
294
+ no hint why. CI had been red on all three runners since 1.34.1 for exactly
295
+ this reason, while the suite stayed green on the one machine that had an
296
+ install — a test that only passes where the product is already installed
297
+ proves nothing. The working directory now falls back to the temp directory
298
+ when the install is absent, and `test/voice-providers.test.mjs` runs the engine
299
+ in a child process with `DSH_TG_HOME` pointed at a path that does not exist,
300
+ so the empty-install case stays covered.
301
+
302
+ ## 1.38.0
303
+
304
+ - **A provider's timeout page is no longer posted as the answer.** Reported from
305
+ a live topic: `[req_e00194ab] [deepseek-v4.1-flash] **Request exceeded 570s
306
+ limit** … **Recommended tools:** — these responses are optimized for
307
+ opencode, [CC] and Codex`. The turn exited 0 — the provider delivered its
308
+ error page through the normal channel and the CLI reported it as the model's
309
+ final answer — so the bridge logged `turn ok`, sent the wall of text to the
310
+ chat, and never walked the fallback chain: nothing had failed as far as the
311
+ pipeline could tell. `turn/provider-banner.mjs` now recognises the shape (a
312
+ request id or a `request exceeded Ns limit` line, plus the vendor's own
313
+ "How to fix" / "Billing" / "Recommended tools" scaffolding) and `turnOutcome`
314
+ turns it into `PROVIDER_TIMEOUT: 570` with no text, so the chain runs and the
315
+ chat gets one line in its own language instead of an advertisement. A banner
316
+ with real work behind it keeps the work. Detection is strict on purpose: an
317
+ answer that merely QUOTES such an error is an answer. `timeout` is its own
318
+ fallback family, claimed first — the vendor page also says "large context
319
+ window" and "Billing", so a later rule would explain the switch with the
320
+ wrong sentence — with a one-replay budget: the first attempt already spent
321
+ the provider's whole clock.
322
+ - **`/dsh` says which harness is installed, and updates it in two steps.** The
323
+ bridge now checks the running [DSH] against `engines.dsh` (`core/dsh-version.mjs`:
324
+ a real semver comparison, prerelease rules included) and offers one button
325
+ when npm has a newer one. `/dsh update` shows the exact command, the button
326
+ asks again, and `/dsh update confirm` installs and names the restart. `/doctor`
327
+ gained the same row, so "is my harness the one this release was tested with"
328
+ is answerable without leaving Telegram.
329
+ - **`/status` no longer re-parses the whole session log on every press.** The
330
+ stats are cached per file (`chat/thoughts.mjs`), four entries at most, and a
331
+ file that only grew is resumed from its last frame instead of decompressed
332
+ from the start.
333
+ - **`/status` names the desktop profile only where it applies.** The UI row
334
+ described the desktop's route inside a card about one topic.
335
+ - **The pin switch could not be applied to every topic.** It read only the
336
+ topic's own pin, so `/pin <value> all` looked accepted and changed nothing;
337
+ the settings card now falls back to the global pin and has a second row that
338
+ writes it.
339
+ - **A turn could file a goal under any topic it named.** `goal.mjs` refuses a
340
+ `--key` that disagrees with `DSH_TG_KEY` (exit 2) unless `--force`, so a turn
341
+ in one topic cannot move another topic's goal.
342
+ - **Commits are reviewed before they land.** `jev-gate.mjs` runs the Jev review
343
+ over the staged diff in the pre-commit hook, skips cleanly without a key, and
344
+ writes its verdict into the commit itself.
345
+ - **`/compact` answers instead of denying it exists.** The engine's manual
346
+ compaction is a command of the *app* chat: sent as plain text through the CLI
347
+ it reaches the model as an ordinary prompt, is billed, and compacts nothing
348
+ (measured: one extra turn, 13319 input tokens, no compaction). The bridge used
349
+ to answer "Неизвестная команда", which was also wrong. `control/cmd-compact.mjs`
350
+ now reads the live `thresholdRatio` out of the profile's `cordis.patch.yml`,
351
+ names the tokens the last turn actually sent, says where manual compaction
352
+ lives, and offers the one press that works here — `/new` — as a button. Three
353
+ languages, and the threshold is read from the install, never assumed.
354
+ - **The bot's menu is re-asserted on every start.** `bot-menu.mjs` claimed the
355
+ bridge "re-asserts it on start" and had no caller outside `init`/`setup`;
356
+ `setMyCommands` is global state any other plugin can overwrite, and one already
357
+ had (31 Chinese rows this bridge cannot run). Startup now installs the
358
+ registry's menu for `ru`/`en`/`zh` and logs the count it read back — three API
359
+ calls and a log line, never fatal.
360
+
361
+ ## 1.37.1
362
+
363
+ - **Every `/model` button works again.** `control/model-card.mjs` passed `t` into
364
+ the press handler without importing it, so `modelPressRouter` — the only caller
365
+ that has to supply the translator itself — threw `ReferenceError: t is not
366
+ defined` on every tap. The card always drew; nothing it offered ever acted.
367
+ The picker's own tests missed it because each one calls `handleModelPress`
368
+ directly and passes its own `t`, and the `unresolved-calls` guard missed it
369
+ because it looks for calls (`t(`) and treats a parameter of any function in the
370
+ file as visible module-wide. `test/model-picker.test.mjs` now drives
371
+ `modelPressRouter` itself with a stubbed transport, so the path a real tap
372
+ takes is covered; removing the import makes that test fail and only that test.
373
+ - **`/model` can switch the whole install from the card.** The scope row
374
+ (`🌍` / `💬`) had no test through the router either, so it shipped dead in the
375
+ same way: the mode toggle is what makes "change every topic at once" reachable
376
+ without typing `/model <route> global`. It now carries the endpoint it was
377
+ pressed on, so switching the mode while choosing a model keeps that model list
378
+ on screen instead of throwing the choice away.
379
+ - **The route picker is two steps: the endpoint, then its model.** Every provider
380
+ used to be drawn as a `— provider —` heading row, which is a button with no
381
+ callback data, and `inlineKeyboard` deletes those (it must: Telegram rejects the
382
+ whole message otherwise). The headings never reached the chat, so the card
383
+ arrived as a flat list of model names — seventeen of them on this profile — in
384
+ which `deepseek-v4.1-flash` from two different endpoints was two buttons with
385
+ the same text and different actions. The card now opens on the endpoints, each
386
+ with its route count and the tick on the endpoint answering, and a second screen
387
+ lists that endpoint's models. The endpoint is on the header there, so a model
388
+ name is unambiguous and nothing is drawn that the keyboard would drop. Choosing
389
+ a model returns to the endpoint list with the tick moved; the back row is one
390
+ tap; refresh keeps the step it was pressed on.
391
+ - **A stream the provider cuts mid-call moves to the next route.** A 1134 s turn
392
+ with 130 tool calls ended as `PI_AI_ERROR: OpenAI Responses stream completed
393
+ with an unfinished tool call: pwsh (…)`. The stream closes between
394
+ `output_item.added` and `output_item.done`, so the arguments never arrive: the
395
+ pipe was cut, not the task. It matched no failure family, so the chain logged
396
+ "not a route fault" and broke on its first entry, and the turn ended holding
397
+ an error no other route had been asked about. It is now the `stream` family,
398
+ the switch line calls it "the provider ended the answer mid-call", and it
399
+ carries a budget of one — the replay costs a whole turn, so one other route
400
+ answers "this proxy or this turn" and the chain stops instead of spending seven
401
+ turns on the same question.
402
+
403
+ ## 1.37.0
404
+
405
+ - **`/every 09:00 text` runs that text every day at that time.** The schedule
406
+ reuses `/remind`'s parser and clock instead of a second time implementation:
407
+ `parseEvery` refuses `+15m`, `25:00` and a missing text with the same words a
408
+ reminder uses, and `nextClock` turns the wall clock into the next local
409
+ `09:00`. `/every list` numbers this chat's schedules with their next run and
410
+ their text,
411
+ `/every rm 2` removes one by that number, and a bare `/every` answers with the
412
+ usage line — in the language of the topic, like every other command.
413
+ - **A firing is a real turn, not a notification.** The tick builds a synthetic
414
+ message for the row's own `(chatId, threadId)` and hands it to the same
415
+ `redeliver` path an incoming message takes, so the agent reads the text and
416
+ does the work; the firing path never calls `send()` itself. Because
417
+ `redeliver` resolves only when the turn ends, the due rows are dispatched
418
+ together rather than one after another.
419
+ - **Catch-up fires once, and nothing fires twice.** A tick claims a due row by
420
+ moving `at` to the next occurrence and persisting that in the same
421
+ `saveState()` *before* delivery: a bridge that was down for four days fires
422
+ the missed occurrence exactly once, a restart replays nothing it already
423
+ claimed, and a delivery that fails is one log line rather than a retry every
424
+ twenty seconds. The next occurrence always comes from `nextClock`, never from
425
+ `at + 24h`, so a schedule follows the clock across a DST change instead of
426
+ drifting an hour.
427
+ - **A deleted topic is a log line, not a crash.** A row whose topic no longer
428
+ exists (`sendChatAction` is rejected) is skipped under the tick's own
429
+ `try/catch`, the skip is written to the log with the chat and thread, and the
430
+ row still advances to its next occurrence. The cap is twenty schedules per
431
+ chat, across topics, and the refusal names the number.
432
+ - **The words live in `i18n/{en,ru,zh}/every.mjs`.** Thirteen strings pushed
433
+ `ctrl.mjs` past the 500-line ceiling, and a table of its own is where the
434
+ neighbours (`diff.mjs`, `endpoint.mjs`) already keep a command's surface.
435
+ `every` is a documented control command, has a `/help every` page and a
436
+ `Tuning` entry beside `remind`. `test/every.test.mjs` covers the parser, the
437
+ claim function, a restart catch-up, double-fire, the cap, the three locales
438
+ and the lost topic.
439
+
440
+ ## 1.36.0
441
+
442
+ - **The chain no longer dies on the first error it cannot name.** A prompt past a
443
+ model's window comes back as `CONTEXT_WINDOW_EXCEEDED`, which matched no failure
444
+ family, so the walk read it as "not a route fault" and stopped — six routes
445
+ untried, and a turn that had been failing over correctly ended frozen on a raw
446
+ provider string. Context is a family of its own now, the longest-window route is
447
+ asked first when it hits, and the walk carries on. The same error is no longer
448
+ replayed: `replaySafe` covers `refused` and `context` together, because those two
449
+ are properties of the request, not of the route that happened to answer it.
450
+ - **A spent balance behind a 403 is a balance, not a refused key.** `AUTH: …
451
+ (403): Your subscription allowance for this period is used up and your wallet`
452
+ was classified `auth`, which told the reader their key was rejected and sent them
453
+ to the wrong fix. Money words now win over the status code, `explainFailure`
454
+ splits `INSUFFICIENT_QUOTA` (a balance) from `INVALID_KEY` (a key), and
455
+ `MISSING_CREDENTIAL` keeps its own sentence in front of both. The two failures
456
+ read as what they are: "баланс провайдера пуст" versus "ключ не принят".
457
+ - **`/model` can change the whole install, not only the topic it was opened in.**
458
+ `/model <route> all` existed and the card never offered it, so the panel's only
459
+ visible switch moved one topic while the profile — the default every other topic
460
+ follows, and the thing a fallback chain is built from — stayed where it was. The
461
+ card carries a scope row that names the mode that is on, route buttons carry the
462
+ scope they will write, and the header stops claiming to describe this topic while
463
+ the card is in the global mode. `@` marks a global press, which leaves a provider
464
+ legitimately named `all` reachable.
465
+ - **Advice stopped naming a command that does not exist here.** The
466
+ context-overflow messages told the reader to run `/compact`. The desktop profile
467
+ mounts `command-compact`; the headless profile that serves Telegram does not, so
468
+ the one line meant to rescue a stuck turn answered "unknown command". They now
469
+ point at `/new` and `/rewind 2`, both real. `test/commands.test.mjs` gains a
470
+ guard: any `/command` in a user-facing string must be one the dispatcher accepts,
471
+ matched in command position so `on/off` and a `~/…/cordis.patch.yml` path are not
472
+ read as commands.
473
+
474
+ ## 1.35.0
475
+
476
+ - **The checkout has a shape.** Seventy-seven modules left the repository root for
477
+ six folders named after the question they answer — `core/` (paths, state, keys,
478
+ the dictionary), `chat/` (one message, arrival to card), `turn/` (queue,
479
+ progress, steer, failures), `model/` (routing, prices, cost), `profile/` (the
480
+ person, the agent, their settings), `work/` (diffs, forks, schedules, reports).
481
+ The root keeps eleven entry points and nothing else. 566 import specifiers were
482
+ rewritten across 153 files; no behaviour changed. `docs/LAYOUT.md` is the table.
483
+ - **Entry points stayed put on purpose.** `README.md`, `QUICKSTART.md` and the
484
+ progress protocol every agent turn uses say
485
+ `node ~/.dsh/tg-bridge/say.mjs --thought "…"`. A library may move; a path a
486
+ person types may not.
487
+ - **Two path bugs the move made visible.** `control/cmd-bridge.mjs` built its
488
+ `/restart confirm` target as `./bridge.mjs` next to itself — a file that has
489
+ never existed — so a restart that reached that line spawned nothing and the chat
490
+ went quiet; it now resolves `../bridge.mjs`. And `cli.mjs` derived its copy list
491
+ by keeping the `files[]` entries that end in `.mjs`; now that `files[]` names
492
+ folders, that filter would have mirrored eleven modules and none of the code they
493
+ import, so `expand()` walks the folders first. `test/sync-runtime.test.mjs` runs
494
+ the real script into a temp directory and boots the result.
495
+ - **Coverage tests had to follow the files.** `test/bridge-wiring.test.mjs`,
496
+ `test/engines.test.mjs` and `test/package-files.test.mjs` scanned the root with
497
+ `readdirSync`; after the move that would have checked eleven files and passed.
498
+ They now read `files[]` (which expands folders) or recurse the tree.
499
+ `test/cli-sync.test.mjs` asks whether a module is *covered by* a listed folder
500
+ instead of whether it is named literally.
501
+ - **Two stray documents came in from the cold.** `INJECTION-AND-REPLIES.md` and
502
+ `ONBOARDING-PLAN.md` moved under `docs/`, which already ships whole.
503
+
504
+ ## 1.34.1
505
+
506
+ - **The docs are in the package.** `docs/VOICE.md` was written for 1.34.0, linked
507
+ from the README and quoted by the bot's own "voice is not set up" answer — and
508
+ then left out of `files[]`, so every npm install got a dead pointer. Eight other
509
+ pages were missing the same way: the list named five documents by hand and had
510
+ drifted. `files[]` now ships the folder, and `test/package-files.test.mjs` fails
511
+ if a page under `docs/` stops shipping.
512
+
513
+ ## 1.34.0
514
+
515
+ - **Speech is a choice, not a vendor.** `voice.provider` picks the backend, and the
516
+ bridge stops assuming the model it happened to install: `script` runs a local
517
+ Python transcriber, `command` runs any program that prints or writes the
518
+ transcript, and `openai` posts to any OpenAI-compatible `/audio/transcriptions`
519
+ endpoint — OpenAI, Groq, or a local server. A `command` engine may answer as
520
+ plain text, as JSON (`{"text": …}` or Vosk's `{"result": […]}`), or into a file
521
+ named by `{out}` in the argument template. The old keys still work: with no
522
+ `provider` the shape is guessed from them, in that order. `docs/VOICE.md` has a
523
+ ready-made block for each. `test/voice-providers.test.mjs` runs a real HTTP
524
+ server and real child processes, because the request body and the three output
525
+ shapes are the whole feature.
526
+ - **A voice note with no backend is no longer silence.** The audio was dropped
527
+ with a log line and nothing in the chat — the person was ignored and had no way
528
+ to learn it was a setting. The bridge now answers once per batch with what is
529
+ missing and the three ways to fill it in, in the topic's language.
530
+ - **Both cards name the model that answered.** The settings card and `/model`
531
+ describe the route a topic is *configured* with; after a fallback that is not
532
+ the route that replied. A successful turn records `{ model, switched }` per
533
+ topic and the card adds `Ответила deepseek-v3.2 (fallback)` — once the primary
534
+ answers again the line goes back to naming it without the caveat.
535
+ `test/answered-model.test.mjs`.
536
+ - **Four ways a string reached outside the directory the bridge owns.** `/app
537
+ restart` killed every `DeepSeek Harness.exe` by image name instead of the pids
538
+ it had just listed; a session id from `/sessions <id>` was joined into a path
539
+ unchecked; `/skills <name>` could be walked out of `skills/` with `../..`; and
540
+ the voice backend accepted a relative interpreter (looked up on `PATH` *and* in
541
+ the working directory) and any `cwd` at all. Each is closed at the point the
542
+ string arrives, `test/guards.test.mjs` pins the first three, and the update
543
+ root, `/soul` rewrite and derived-profile prune already had their containment
544
+ checks — they are named in the same audit and stay.
545
+
546
+ ## 1.33.3
547
+
548
+ - **Comments are back to the characters they were written with.** Five dashes in
549
+ `callbacks.mjs` had gone through a cp1251 round trip and shipped as `—`.
550
+ Behaviour never changed — it was a comment — which is exactly why nothing
551
+ caught it: no test reads the files. There is one now. `test/encoding.test.mjs`
552
+ reads every shipped module and fails on the shapes a cp1251 round trip leaves
553
+ behind, so the next edit that mangles text is caught before the release rather
554
+ than by a reader.
555
+
556
+ ## 1.33.2
557
+
558
+ - **The tabs of the settings card now change the page.** `commandFor` answered a
559
+ tab press with `{ tab: 'agent' }` and no page, so the press redrew the default
560
+ page — `reply` — whatever tab was tapped. Telegram refused the edit as
561
+ "message is not modified" and the press looked dead: the fourth tab of a card
562
+ that had been "broken" for weeks was one missing field, and the log from 1.33.1
563
+ named it in one line. A tab answer carries its own page now, and the invariant
564
+ is a test: pressing `agent`, `updates` or `health` must produce a message that
565
+ differs from the one on screen.
566
+ - **Pressing the value already in force says so.** The redraw is refused in that
567
+ case, which used to be silence; the toast is `Уже так и стоит` in the presser's
568
+ language.
569
+
570
+ ## 1.33.1
571
+
572
+ - **A press always answers.** Three paths could leave a button with no reaction
573
+ and no line in the log: a payload from an older card, a handler that threw
574
+ before answering, and a card that redrew itself into an identical message. All
575
+ three now answer — the stale one with an alert that stays on screen, the failed
576
+ one with `/logs errors` pointed at — and every accepted press is named in the
577
+ log the moment it arrives, so "the menu does nothing" can be told apart from
578
+ "the press never reached the bridge".
579
+ - **Silence has a deadline.** `quietGuard` watches the press and the command that
580
+ follow it: if nothing visible is produced within 45 seconds the guard says so
581
+ once, in the chat, whether the handler is still running or already returned.
582
+ This is the case that had no answer before — not a crash, just a wait with no
583
+ end visible from the phone.
584
+ - **Card calls are fast now.** `tg` allows 60 seconds and three attempts, so a
585
+ single tap on a card could sit on a spinner for three minutes while the flaky
586
+ route retried underneath. `tgFast` gives every press-path call 8 seconds and two
587
+ attempts; the fast path stays fast and the retry still covers the bad route.
588
+ - `handleCardPress` and `boundSetOf` moved from `callbacks.mjs` into
589
+ `settings-press.mjs`, and `/stop`'s inline turn kill now uses the `killTurn` it
590
+ duplicated. The router stays a router, and both files fit the ceiling.
591
+
592
+ ## 1.33.0
593
+
594
+ - **A model per topic, and the profile is only the default.** One model for the
595
+ whole install meant the choice that suits an engineering chat slowed down a chat
596
+ for thinking out loud. `/model` now names the scope it changes — `This topic:`
597
+ or `Profile default:` — and a press stores the route in that topic alone, with
598
+ `↩ Follow the profile again` as the way back. The next turn boots a copy of the
599
+ topic's profile with the `agent-default-model` row rewritten; every other key of
600
+ that row survives, so a model switch cannot silently drop `reasoningEffort`, and
601
+ the copy is rebuilt whenever the profile changes. `/model <route> all` writes the
602
+ profile itself and says how many topics keep their own choice; `/model auto`
603
+ deletes the topic's route and reports it when there was none. Commands edit the
604
+ bound profile, never a generated copy, and `/profile` no longer lists those
605
+ copies among the profiles a person made.
606
+ - **The description was rewritten around what the bridge does.** The README opened
607
+ with four lines of scene-setting and then twenty-four bullets of mixed weight;
608
+ it now opens with what a topic is, puts the model-per-topic rule in the first
609
+ bullet, and states the remaining features as claims with their scope attached
610
+ instead of adjectives. The npm description says the same thing in one line.
611
+ - `/help` and the `/menu` panel name the new scope in every language.
612
+
613
+ ## 1.32.0
614
+
615
+ - **`/model` is a picker, not a list of names.** The old card printed bare model
616
+ ids, and the same id can be served by several providers — `deepseek-v4.1-flash`
617
+ appeared twice with nothing to tell the rows apart, and `/model
618
+ deepseek-v4.1-flash` quietly kept whichever provider the profile already had.
619
+ A bare `/model` now draws every **route** — provider and model together,
620
+ grouped under the provider, with `✓` on the one in force — and each route is a
621
+ button. A press names the full route, so it cannot mean "the fourth model" if
622
+ the profile changed between drawing and tapping; a route whose name will not
623
+ fit in Telegram's 64-byte payload gets no button at all rather than a wrong one.
624
+ - **`/endpoint` adds a provider from the chat, without a model turn.** Adding one
625
+ is four facts typed once, so it is parsed and written directly:
626
+ `/endpoint add <id> <https://url/v1> <KEY_ENV> [model,model]`, `/endpoint list`,
627
+ `/endpoint rm <id>`. Only the *name* of the key variable is typed — a pasted
628
+ `sk-…` is refused and the profile is not touched. The URL must be https (http
629
+ only for localhost) because a key rides on every request. Re-adding an endpoint
630
+ adds models and never reorders or drops the ones already there, and a new model
631
+ shows up on `/model` as a button immediately.
632
+ - **Working notes have two scopes.** `/reasoning` already followed the topic
633
+ first and the install second, but the install default could only be set by
634
+ editing `config.json`. `/reasoning off all` (or `card`/`chat`) now sets the
635
+ default every other topic reads, while a bare `/reasoning off` still changes
636
+ this topic only. The settings card shows both rows side by side. A topic with
637
+ its own choice keeps it, and the answer says so instead of claiming every topic
638
+ changed.
639
+ - The `/help` models row and the `/menu` panel now name `/endpoint`.
640
+
641
+ ## 1.31.1
642
+
643
+ - **`/version` and `/update` can no longer disagree.** They are one card, but
644
+ each asked npm separately, and on a slow runner one `npm view` answered while
645
+ the other timed out — so the same question, asked twice, gave "1.31.0" and
646
+ "offline". The answer is now memoised for a minute. A minute of staleness means
647
+ nothing to a release check; two answers to one question is a bug a person can
648
+ see. It also stops `/update` twice in a row from blocking the bot for 45
649
+ seconds each time.
650
+
651
+ ## 1.31.0
652
+
653
+ - **`/diff`: the review loop, from a phone.** A turn that changes files used to end
654
+ with "done" and a `git diff` a person had to open on a desktop. `/diff` parses
655
+ the working tree into files and hunks and draws one card: the file list with
656
+ `+n -m` per file, the hunks that fit, and two buttons per hunk — **explain this
657
+ hunk** (which asks the agent about exactly that patch, not about "the diff") and
658
+ **revert this hunk**. Reverting one hunk is the case that matters: the change was
659
+ right except one piece, and undoing the whole turn to fix one piece is not an
660
+ option. `/diff stat` draws the file list alone, because on a phone that is often
661
+ the whole answer.
662
+ - **A button is a hash of the hunk it was drawn from.** The id under each button is
663
+ a SHA-1 of the path, the hunk header and the hunk body. A press that arrives
664
+ after the file moved on — reverted, edited, committed — matches nothing and is
665
+ refused with "that hunk is not in the diff any more", instead of reverting
666
+ whatever now sits at that line number. This is the whole reason the feature is
667
+ safe to expose as a tap: a stale button cannot act.
668
+ - **A revert is one patch, not a checkout.** `git apply -R --recount` replays the
669
+ single hunk with its own header, so the rest of the file keeps what the turn did.
670
+ The `index` line is dropped — it pins blob hashes that make a single-hunk revert
671
+ fail for a reason nobody can act on — and a hunk that no longer applies changes
672
+ nothing and says why.
673
+ - **The card says what it left out.** A character budget, not a hunk count: one
674
+ lockfile hunk is bigger than twenty hunks of source. Whatever does not fit is
675
+ counted in the text ("…N more hunks", "…N more files"), and the keyboard is capped
676
+ at twelve rows for the same reason — a button that was not drawn is a button
677
+ nobody presses, and a card Telegram refuses is worse than a card that admits it
678
+ is partial.
679
+ - **`/diff` is on the panel and in `/help`.** One row in the Work section, one line
680
+ in the help body, one sentence in `ctrl.help.about.diff`, in `en`, `ru` and `zh`
681
+ — the same day, in all three, as everything else here.
682
+
683
+ ## 1.30.2
684
+
685
+ - **1.30.1 was published and immediately superseded.** The first upload left the
686
+ version staged and the retry could not overwrite it, so the same code went out
687
+ again as 1.30.2. The two are identical apart from the version string; 1.30.1 is
688
+ deprecated and points here. Nothing to do if you installed either.
689
+
690
+ - **A version earns its place by answering a turn, and a version that only ever
691
+ throws is replaced by the last one that did.** 1.30.0 shipped a call to a
692
+ function that did not exist. Every import resolved, every file parsed, the
693
+ whole suite was green — and the first real message threw, so the person was
694
+ left on a release that answered nothing. Nothing in the update path can catch
695
+ that: a name that is never defined inside a function body is invisible to a
696
+ static check, and only a turn that runs can prove otherwise. So the install now
697
+ keeps a record per version: it is *proven* once it has answered, *faulted* when
698
+ it throws a code fault, and *unknown* until then. Two code faults on a version
699
+ that has never answered, while a proven version is still on record, put the
700
+ proven one back — from npm, or from the copy the last update saved when the
701
+ registry cannot be reached — announce it in the chat, and ask the supervisor
702
+ for a restart instead of exiting under a half-finished turn. The record is
703
+ narrow on purpose: a 402, a 429, a timeout and "all providers are busy" all
704
+ reach a turn as errors, and none of them is a verdict on the release. Rolling a
705
+ working install back because someone's balance ran out would be a worse bug
706
+ than the one this fixes.
707
+ - **The supervisor catches the failure the bridge cannot report.** A release that
708
+ throws while it loads never runs a turn, so nothing above ever sees it: the
709
+ bridge dies, the minute tick starts it, it dies again, forever. The tick now
710
+ keeps its own evidence — two starts in a row that never became healthy — and
711
+ applies the same rule before it starts the bridge again. It also refuses to
712
+ repeat a restore it just performed, and resets the count the moment a bridge is
713
+ alive, so a laptop that reboots twice is not mistaken for a broken release.
714
+ - **`/update rollback` is the manual way back.** The automatic rule needs two
715
+ faults before it acts, which is right for a machine deciding alone and wrong
716
+ for a person who has already seen one. The command returns to the last proven
717
+ release immediately, and says so when there is nothing to return to.
718
+ - **`/update` says what is proven about the version it is running.** The card
719
+ used to list a version number and leave the reader to guess whether it worked.
720
+ It now says "proven, N turns answered", "faulted, N code faults", or
721
+ "installed, not yet answered", and names the release a rollback would return
722
+ to. An install that has just updated is marked unproven rather than inheriting
723
+ the old version's record — a rollback to nothing is not a rollback.
724
+ - **A 💭 line is no longer cut mid-word.** The thought stream clipped each line at
725
+ 140 characters with no ellipsis, so the chat showed sentences that stopped in
726
+ the middle of a word ("…при провале — от", "…откатывается на по") and read as
727
+ broken output rather than as a decision. Lines are now clipped at a word
728
+ boundary with a trailing `…`, at a budget that keeps a real sentence readable,
729
+ and the card and the chat show exactly the same text because both read it from
730
+ one function.
731
+
732
+ ## 1.30.0
733
+
734
+ - **A sandbox refusal no longer reads as a breakdown.** The CLI marks three
735
+ different things with a `[sandbox: …]` line in a failed tool result: the policy
736
+ denied a write, an escalation is available, or the sandbox runner itself broke.
737
+ All three arrived in the chat as an ordinary failed turn, and the turn then
738
+ ended with "сбой хода" — a word that sends someone to the logs for a decision
739
+ they made themselves. The refusal is now its own line, after the answer, saying
740
+ which mode refused, that nothing broke, and — for a broken runner — that this is
741
+ a sandbox problem rather than a task one. One button leads to `/permissions`,
742
+ because someone who has just been refused should not have to remember a command
743
+ name. Repeated refusals in one turn are counted once per wall, not per attempt.
744
+ - **A release that cannot load no longer replaces one that works.** `/update`
745
+ copied the fetched files over the running install and then asked for
746
+ `/restart`; if the new code could not load, the restart killed a working bridge
747
+ and started nothing, leaving the person in a terminal on a machine they
748
+ installed a bot to avoid touching. The candidate for 1.29.0 did exactly that: a
749
+ new module imported a name that did not exist, and 557 green tests said nothing
750
+ because none of them loaded the file. The install is now checked before it is
751
+ trusted — every relative import must resolve to a file that exports the name,
752
+ and the entry points must parse — and a failed check puts the previous files
753
+ back and says what is wrong with the release.
754
+ - **An update refuses to write into a filesystem root or the home directory.**
755
+ The target comes from `DSH_BRIDGE_ROOT`, and a directory that merely contains a
756
+ `bridge.mjs` — a checkout, a copy, a nested install — used to pass the only
757
+ check there was. "Does it look like a bridge" is now backed by "is it a place
758
+ where writing the whole package would be a catastrophe".
759
+ - **`/soul` stops deleting the rest of `AGENTS.md`.** The persona lives in the
760
+ person's own global instructions file, and the old code replaced everything
761
+ from the persona heading to the end of the file: a section below it, or a
762
+ second persona heading, was silently lost by a `/soul` call, with no backup.
763
+ Only the persona section is replaced now, the file is copied aside first, and
764
+ whatever followed the section stays where it was.
765
+ - **A recursive profile sweep proves where it is sweeping.** `pruneDerived`
766
+ deleted every `aset-*` directory under `DSH_HOME/profiles`, trusting the name
767
+ pattern and the environment variable. It now refuses a target that resolves
768
+ outside the directory it was given, so a `DSH_HOME` pointing somewhere real
769
+ cannot turn a cleanup into a deletion.
770
+ - **Two tests that would have caught the release fault.** One walks every shipped
771
+ module and asserts each named import exists in the module it comes from; the
772
+ other asserts every relative import points at a file on disk. Both are static,
773
+ because importing the bridge starts a poller.
774
+
775
+ ## 1.29.0
776
+
777
+ - **The progress card says how full the context is.** A turn that runs into its
778
+ model's context window dies expensively: the prompt is re-sent, billed, and
779
+ rejected. The card now carries `📊 контекст 812k / 1M (81%)`, built from the
780
+ provider's own `usage` and the window the profile declares. A live card shows
781
+ it only from 75 % — a percentage that is always there is read once and then
782
+ ignored — and the final card always shows it. When either side of the fraction
783
+ is unknown the row is absent, not guessed: a percentage of an unknown
784
+ denominator reads as a measurement and is not one.
785
+ - **`/cost`: what this session has spent.** Input, output and cache-read tokens
786
+ are billed at three different rates, and the old single total could say "how
787
+ big" but never "how much". `/cost` shows the three counts, the total, the
788
+ per-turn average and the rates it used, and names its source: OpenRouter's
789
+ published price for the same model, a market reference rather than the
790
+ provider's invoice. Prices are cached for a week and filled by `/prices`; a
791
+ turn never waits on the network for a number. The final card adds
792
+ `💰 этот ход: $0.0042` when the cache knows the model, and says nothing when
793
+ it does not — an invented invoice is worse than none.
794
+ - **Every "unknown" on the bill is named.** No usage in the log, no catalog on
795
+ disk, no published price for this model, and a rate missing for one of the
796
+ three kinds are four different sentences, and a partial total announces itself
797
+ as a lower bound. The failure this replaces is a confident `$0.00` on a paid
798
+ session.
799
+
800
+ ## 1.28.1
801
+
802
+ - **`/profile` no longer throws on a fresh install.** It listed
803
+ `~/.dsh/profiles` without asking whether the directory exists, and on a machine
804
+ where DSH has not written one yet `readdirSync` is ENOENT: the first command a
805
+ new user tries answered with an exception. Found by asking the suite a
806
+ different question — "does every documented command answer?" — instead of "do
807
+ the tests pass?".
808
+ - **Every documented command is now covered in every language.** Seven tests walk
809
+ all 38 commands in en/ru/zh and assert three things a translation can break: the
810
+ command claims its message, the answer is not empty, and no `{placeholder}`
811
+ survives. `/soul`, `/skills`, `/seed`, `/send` and `/crew` had no test at all
812
+ before — reachable, listed in `/help`, and nothing had ever proved they answer.
813
+ ## 1.28.0
814
+
815
+ - **A turn starts on macOS and Linux too.** The turn runner spawned the Electron
816
+ app by an absolute Windows path, and that was the only path in the code: on a
817
+ Mac or a Linux box every turn failed with ENOENT on a file that cannot exist
818
+ there, while the README promised three platforms. Which binary runs a turn is
819
+ now one decision in one place (`dsh-launch.mjs`): the app with
820
+ `--expose-internals <cli.js>` where the app is installed, the `dsh` command from
821
+ PATH everywhere else, and `DSH_BIN` / `DSH_CLI_JS` / `DSH_APP_DIR` when the
822
+ answer is neither. The plugin commands had already learned the PATH form; they
823
+ ask the same question now, so there is no second copy of the answer.
824
+ - **App paths are computed per platform.** `LOCALAPPDATA` is empty on macOS and
825
+ Linux, so the app directory used to collapse into the relative
826
+ `Programs/…` — a path that means "somewhere under the current directory".
827
+ Windows installs are unchanged, byte for byte; macOS gets the bundle's
828
+ `Contents/MacOS` and `Contents/Resources` split, Linux gets the usual share
829
+ directory.
830
+ - **`/doctor` answers on every platform.** Its disk row shelled out to
831
+ `(Get-PSDrive C)` and was labelled "Disk C", so on a Mac the row silently
832
+ disappeared — a diagnostic that is quiet on the platform you are debugging is
833
+ worse than none. The reading comes from `statfs` and the label names the disk
834
+ it measured. The report also gained a **Turn command** row: the exact binary a
835
+ turn would start, which is the one fact that explains an ENOENT.
836
+ - **The error message stopped naming a key that does not exist.** "point
837
+ `dshApp` in config.json at it" was never a setting; the sentence now names
838
+ `DSH_BIN` / `DSH_APP_DIR`, which are real.
839
+ - **CI runs on macOS.** The matrix tested Ubuntu and Windows, which is why a
840
+ Windows-only turn runner stayed green for a release.
841
+ - **Tests are platform-neutral.** `/cd` path expectations and the disk-drive
842
+ probe were written against Windows separators, so the same suite failed on
843
+ Linux for reasons that had nothing to do with the code. Both now describe a
844
+ platform instead of assuming one: 520 tests, green on Windows and Linux.
845
+
846
+ ## 1.27.0
847
+
848
+ - **A restart no longer leaves other topics guessing.** `/restart confirm` now
849
+ records which turns it is about to kill, and the new process posts one line in
850
+ each of those topics: the turn was stopped, the session is intact, send the
851
+ message again. Before, the card there stayed on ⏳ forever and nothing said why.
852
+ The note itself had been written to the wrong directory since it was introduced
853
+ (`control/` instead of the bridge root), so even the "back online" confirmation
854
+ after a restart was silently lost — that is fixed too.
855
+ - **`/fallback test` measures the wait, not just the verdict.** Each live route
856
+ now reports milliseconds to the first token and the fastest one is named once.
857
+ Two routes that both answer are not equally good, and the head of the chain is
858
+ chosen on that number. A route that did not answer prints no time, so
859
+ `no balance · 120 ms` can never read as "works, just slow". The probe streams
860
+ and stops at the first chunk; a provider that ignores `stream` is still read as
861
+ the plain JSON answer it is.
862
+ - **`/fallback first <provider>/<model>`** puts a route at the head of the chain,
863
+ or moves it there if it is already in the list. `add` appends, which is right
864
+ for a spare and wrong for the route that should answer before the primary:
865
+ moving it up eight times was eight presses and a guess about where the head is.
866
+ - **`/model provider/model` moves the route as well as the model.** Asking for
867
+ the same model on a different provider used to rewrite only the model name and
868
+ silently keep the old host — the one case where "I changed the model" and "the
869
+ answers come from somewhere else now" are different claims. The reply now names
870
+ the route the patch actually carries, and a provider the profile does not
871
+ declare is refused before the file is touched.
872
+ - **A flaky album test is no longer flaky.** Its quiet window was 60 ms against
873
+ 10 ms gaps, so a busy machine failed a test about ordering because of the clock.
874
+ - **`/stop` stops looking like a crash.** A turn killed on purpose was reported as
875
+ a failure, twice over: the card said «сбой хода», and the sentence underneath
876
+ read `CLI завершился с кодом {code} без вывода` — with the placeholder still in
877
+ it, because a killed child reports `code === null` and the formatter only fills
878
+ the variables it is given a value for. A deliberate stop is now its own outcome
879
+ (`turn-outcome.mjs`), the card says the turn stopped and the session is intact,
880
+ and an unknown exit code prints as `?` rather than as `{code}`.
881
+ - **`/load`: the machine's own numbers, and a limit that holds a turn.** This
882
+ bridge runs on somebody's desktop, next to whatever else that desktop is for. The
883
+ card shows free space on the disk the topic writes to, free RAM, average CPU
884
+ since the last reading, how many turn slots are busy and how many prompts are
885
+ waiting — the one row Task Manager cannot answer, because it sees Electron
886
+ children and not Telegram topics. `/load on` makes a prompt that arrives while
887
+ the machine is over a limit wait instead of starting: the message is kept, not
888
+ refused, and one press sends it anyway. Limits are `/load limit cpu 80`,
889
+ `limit ram 10`, `limit disk 20`; the guard ships off, so an upgrade never holds
890
+ a turn nobody asked it to hold.
891
+
892
+ ## 1.26.1
893
+
894
+ - **The card's buttons work again.** 1.26.0 taught a switch press which page to
895
+ redraw, and the caller read "has a page" as "show me that page": every switch
896
+ redrew an identical card, Telegram refused the no-op edit, and the tap changed
897
+ nothing at all. No error in the chat, no reply — a dead button. The two actions
898
+ are now named apart (`tab` for the view, `command` for the setting), and a test
899
+ fails if a switch ever looks like a tab again.
900
+ - **Tapping the tab you are on is quiet.** Telegram refuses an edit that changes
901
+ nothing; that refusal was logged as a failure and looked like a broken button.
902
+ - **A topic without a name says its id.** The head read "Тема: тема {n}" whenever
903
+ the name was not cached yet — the first turn after a restart always raced the
904
+ cache, and the literal `{n}` looked like a template that forgot to render. It
905
+ now says `Тема: id 337382`, in all three languages.
906
+
907
+ ## 1.26.0
908
+
909
+ - **The settings card stays.** A tap used to turn the whole card into one line
910
+ naming the change, which answered "what did I just do" and took away "what can
911
+ I do next": the menu vanished the moment it was used, and the answer to a door
912
+ like `/jobs` landed as a separate message while the line above it claimed the
913
+ press had only been recorded. A press now edits the card in place — same
914
+ message, same buttons — with the new value marked and one `✓ row: value` line
915
+ above the rows. A door's answer arrives under the card, which is where it
916
+ belonged all along.
917
+ - **A way out is a button, not a chore.** The card gained a full-width `✓ Done`
918
+ row that deletes the message. Before, "close it" meant deleting a chat message
919
+ by hand, and a card that cannot be put away is a card people learn to fear.
920
+ - **Only the value in force is marked.** Both the text row and the button now
921
+ carry `●` on the end that is on, and nothing at all on the ends that are not.
922
+ The old `○`/`●` pair marked every option, which said nothing about which one a
923
+ tap had left in place.
924
+ - **`/pin on|off` — the progress card in the pinned slot.** Telegram gives a chat
925
+ one pinned message, so the running card takes it and each turn's card replaces
926
+ the last: the clock, the speed and the steps are one tap away instead of a
927
+ scroll back. Off by default — pinning someone's chat uninvited is not a favour,
928
+ and a group needs the right to pin at all. The pin is silent, a refusal is
929
+ logged rather than shown, and `state.pin` reads `true`/`false` from an older
930
+ file the way the notes switch does.
931
+ - **A failed press says so on the card.** The redraw alone looks exactly like
932
+ success, so an error from the command behind the button is shown as `⚠️` in the
933
+ card's note line and is not repeated underneath it.
934
+ - **Two more doors on the agent tab**: `/cd` (which folder the topic works in) and
935
+ `/fallback` (who answers when a provider refuses), because both were reachable
936
+ only by remembering their names.
937
+ - Dead code out: the `reasoningOf` reader had no callers since the notes switch
938
+ moved to `notes.mjs`; the paths it was threaded through are gone.
939
+
940
+ ## 1.25.3
941
+
942
+ - **The decision trail can reach the chat itself.** `/reasoning` had two ends,
943
+ on and off, and "on" meant the last two 💭 lines inside the progress message —
944
+ which a person only sees if they are looking at that one message. It now has
945
+ three: `card` (the default, unchanged), `chat` (every line also arrives as its
946
+ own message, so a twenty-minute turn is read while it runs instead of scrolled
947
+ back to afterwards) and `off`. One switch, one name: a separate `/notify` would
948
+ have been the second name for one job that this surface spent a release
949
+ removing.
950
+ - **The prompt knows which end is on.** In `chat` mode every turn says so, so a
951
+ line is written to stand alone — and says what must never be in one: a token, a
952
+ key, a private path. The line reaches a chat, not a grey card.
953
+ - **A switch mid-turn does not replay the card.** Turning `chat` on while a turn
954
+ runs forwards from the next line written, not the ten already on screen; a turn
955
+ that starts in `chat` forwards from its first line. The forwarder keeps a set of
956
+ what went out, so an edit of the card never repeats a step, and a failed send
957
+ leaves the note in the card where it always lived.
958
+ - **The old value still reads.** `state.json` written by an earlier release holds
959
+ `true`/`false` for this switch; they now mean `card`/`off`, and `/reasoning on`
960
+ is still accepted as the old spelling of the card. A settings file must not need
961
+ editing by hand after an update.
962
+ - The settings card offers the three ends as buttons and marks the current one,
963
+ `/status` names the mode in words, and `test/notes.test.mjs` pins the mode
964
+ migration and the "every line of the turn, not just the two the card shows".
965
+
966
+ ## 1.25.2
967
+
968
+ - **A throttled route is no longer called a refused key.** The first live
969
+ `/fallback test` on a free route came back `key refused` while the provider's
970
+ own sentence said "This model is at its provider's per minute limit right
971
+ now" — the probe read the HTTP status before the words, and one router answers
972
+ a rate limit with a 403. That verdict sends a person to re-enter a key that
973
+ works. The words about a limit now win over the status; a bare 401/403 is
974
+ still a refused key, an empty balance still outranks both, and a 5xx with no
975
+ words of its own is `busy` instead of `unknown`.
976
+ - **`/fallback test` asks the routes at once.** Seven routes at a 15-second
977
+ timeout each is nearly two minutes of a command that looks frozen, with the
978
+ poller waiting behind it. One round of requests answers in the time of the
979
+ slowest route — and a rate limit on the router is itself a verdict, so a burst
980
+ of probes was the wrong way to learn about throttling.
981
+ - `test/probe-verdict.test.mjs` pins the four answers that used to be confused:
982
+ a limit behind a 403, a bare 403, an empty balance behind a 429, a 5xx with
983
+ no body.
984
+
985
+ ## 1.25.1
986
+
987
+ - **The failover chain fires on a refusal.** A turn that ended with
988
+ `dsh: INVALID_REQUEST: wikivibe API error (400)` stopped the walk on its first
989
+ iteration while six configured routes sat unused, and the log said nothing —
990
+ the trigger list knew 5xx, quota words, `AUTH` and an empty answer, and a 400
991
+ from a vendor's own validator matched none of them. Failures are now grouped
992
+ into named families (`refused`, `quota`, `auth`, `busy`, `rate`, `transport`,
993
+ `model`, `empty`), every family starts the chain, and every decision writes one
994
+ `fallback …` line, so "no route was left" can no longer look like "no route was
995
+ ever tried". The negative list stays explicit: the turn time cap, `/stop`, a
996
+ session or directory error and a missing `dsh` are not a route's fault and are
997
+ not replayed on six vendors.
998
+ - **A refusal costs one route, not the whole chain.** A 400 is replayed in full —
999
+ the same long conversation, the same tools — so one other vendor answers the
1000
+ only useful question, "is it this route or this prompt". If the second refuses
1001
+ identically the request is what is wrong, and the reply now says so and points
1002
+ at `/new` instead of suggesting a top-up. Busy, quota, rate and transport
1003
+ failures keep walking the whole chain: those are per-route facts.
1004
+ - **`/fallback`: the chain as a card.** The list was invisible from the chat, so
1005
+ the honest answer to "why did it not switch" was often "nothing was configured
1006
+ to switch to". The card shows the route this topic answers on, the numbered
1007
+ chain, how many routes a turn would really try (a switched-off route and one
1008
+ whose overlay file is missing are counted separately, not silently), what
1009
+ starts a switch and what does not. Every line has a button: `● n` switches a
1010
+ route off or on, `↑ n` / `↓ n` move it, `test` asks each route with a 1-token
1011
+ request, `add <provider>/<model>` writes the overlay and appends the route,
1012
+ `remove` asks for a second named press. A press and a typed line run the same
1013
+ verb, so the two cannot disagree.
1014
+ - **`/fallback test` is honest about what it proves.** A probe shows the key and
1015
+ the channel are alive; it does not show the provider accepts this conversation,
1016
+ and the card says exactly that — a route that answers `ping` can still refuse a
1017
+ long prompt with a 400.
1018
+ - **`fallbackEnabled`** switches the whole chain off without editing the list,
1019
+ and `runFallbackChain` reads it before sending anything, so a person who turned
1020
+ the chain off never sees a "running on another model" line. `off: true` does the
1021
+ same for one entry; both keep the route in `config.json` with its overlay.
1022
+ - **`/report` prints the chain the card shows**, from the same renderer: a report
1023
+ that counted routes a turn would skip is the report that hides the bug it was
1024
+ opened for.
1025
+ - `ctrl.fallback.*` moved into its own locale table (`i18n/<lang>/fallback.mjs`)
1026
+ when `ctrl.mjs` reached the 500-line ceiling; `/help` documents the command and
1027
+ the panel carries it under "Talk".
1028
+
1029
+ ## 1.25.0
1030
+
1031
+ - **A bound topic no longer writes the whole home directory.** `/cd my-app` used
1032
+ to change only the turn's working directory: the sandbox still pointed at the
1033
+ profile's own root, so a model that wandered into a sibling project was allowed
1034
+ to write there. On a permission-enabled profile `/cd` now writes
1035
+ `sandbox-policy.workspaceRoot` with the same directory, which makes the
1036
+ boundary real — measured, not assumed: a write outside the root comes back as
1037
+ `[sandbox: file access denied under workspace-write mode]`, and switching the
1038
+ turn's own `working-directory` does not move the boundary. `danger-full-access`
1039
+ is now an explicit per-topic choice (`/cd <dir> wide`, or `/permissions
1040
+ danger-full-access`) instead of the quiet default. A profile with no permission
1041
+ table keeps the old behaviour, and `/cd` says which of the two it is doing.
1042
+ - **One row is not a setting.** The `sandbox-policy` row alone is ignored when the
1043
+ profile also has a permission table: `mode: read-only` next to `defaultPreset:
1044
+ danger-full-access` still wrote outside the root. Both rows are now written by
1045
+ one function (`permission-rows.mjs`) from one preset, so a file cannot end up
1046
+ disagreeing with itself, and `/permissions` reads the *effective* preset rather
1047
+ than the table's current value. A preset with `approval: ask` is listed with the
1048
+ reason it cannot be used from a chat — a headless turn has no approval channel,
1049
+ and picking it used to mean a turn that failed closed.
1050
+ - **Per-topic permissions.** A topic bound to an agent set gets that set's preset
1051
+ on its own derived profile, so two topics can hold two presets without reading
1052
+ each other's row. `/permissions` writes the set when the topic is bound and the
1053
+ profile when it is not, and says which. `/settings` shows the topic's effective
1054
+ preset, not the install's.
1055
+ - **`/cd` survives a real filesystem.** Resolution moved into `control/cd-path.mjs`
1056
+ as a pure function: `~`, a drive letter, a UNC path, a POSIX absolute path, a
1057
+ bare project name under `projectsDir`, a relative path, `reset` — and the three
1058
+ failures a chat actually hits (empty, missing, exists-but-is-a-file) each get
1059
+ their own sentence. A bound directory that disappeared is reported as such
1060
+ instead of silently falling back to `config.cwd`.
1061
+ - **`/report` turns "it broke" into data.** One command collects version, node,
1062
+ platform, profile, preset, model, fallback chain, cwd, the turn's tool names,
1063
+ the topic's last failure and the last 120 log lines — then removes tokens, bot
1064
+ tokens, `Bearer` headers, private keys, home paths, chat ids, machine ids and
1065
+ email addresses before writing the file. In a direct chat it arrives as a
1066
+ document; in a group the answer is the path only. `test/report.test.mjs` runs
1067
+ the repo's own `scan-secrets.mjs` rules over a fixture that looks like a real
1068
+ log tail and fails if a single rule matches. `docs/SUPPORT.md` says what to
1069
+ send, what never to send, and how to tell the three kinds of silence apart.
1070
+ - **The docs say what is true.** README gained the three sandbox modes with what
1071
+ each one actually allows, the measured note that the sandbox row alone changes
1072
+ nothing, and an attachment table that names the one hidden prerequisite: voice
1073
+ needs `faster-whisper` and is off by default.
1074
+
1075
+ ## 1.24.0
1076
+
1077
+ - **The fallback chain could not cross providers.** `model-probe.mjs` read the
1078
+ *first* provider block of the profile and asked that host about every model in
1079
+ the chain. With one router that was right; the moment the chain mixed
1080
+ companies it became the bug: a 503 from the first router was reported as the
1081
+ verdict for a model that lives on a different company's host, and
1082
+ `handle-message.mjs` stopped the chain after one probe. The log of a live turn
1083
+ says it plainly — `channel down after 2 model(s): probe says ok; not trying
1084
+ kimi-k3:free`, then `all fallbacks exhausted … : 3 probe=n/a`, while a working
1085
+ provider sat right behind it. `providerFor(id)` now returns the named
1086
+ provider's row, `probeModel(model, { provider })` asks that company, and each
1087
+ entry is probed on its own route, so a dead pool skips only its own models.
1088
+ - **A chain that mixes companies is a documented shape.** Each `fallbackModels`
1089
+ entry may carry `provider`, and the switch notice names the route as
1090
+ `provider/model`, because the same model id on two routers is two different
1091
+ attempts. README explains the overlay file, the ordering rule (different
1092
+ companies next to each other, `:free` last) and why one vendor twice in a row
1093
+ is one outage rather than two chances.
1094
+ - **The walk lives in `fallback.mjs`.** `handle-message.mjs` was at the 500-line
1095
+ ceiling and the chain is a decision of its own — which model, on whose route,
1096
+ and when to stop asking. Its three regexes and the give-up condition are now
1097
+ exported and tested as data (`test/fallback-chain.test.mjs`), including the
1098
+ case that used to be silent: a short chain with no verdict must not claim
1099
+ "all models are unavailable".
1100
+
1101
+ ## 1.23.0
1102
+
1103
+ - **Buttons were never sent.** Every card built its keyboard as `{ text, data }`
1104
+ — a payload, not a Telegram field. Telegram wants `callback_data` and rejects
1105
+ the *entire message* when it sees `data`, and every send wrapped its API call
1106
+ in `.catch(() => {})`, so `/menu`, `/settings` and the task card drew nothing
1107
+ for four releases and said nothing about it. One conversion now happens at the
1108
+ transport edge (`inlineKeyboard`), a button with no payload is dropped instead
1109
+ of sinking the message, and a keyboard Telegram refuses is logged and retried
1110
+ as text without buttons. Verified against the live API, not only in a test.
1111
+ - **One typed command, one answer — across restarts.** `/update confirm` on
1112
+ 1.22.0 installed the release and then threw on an undefined name. It was never
1113
+ acked, so it stayed in the journal; each restart replayed it, it threw again,
1114
+ and one command produced "already on 1.22.0" three times. A command that
1115
+ throws is now answered in one line and acked, a replayed turn gets exactly one
1116
+ retry, and a journal entry older than the replay window is dropped instead of
1117
+ being re-run as a fresh turn.
1118
+ - **The parallel ceiling is reachable from the chat.** It was a config-file key
1119
+ (`maxParallel`, 1–8) nobody could find; a fourth topic simply said "waiting for
1120
+ a free slot" with no way to widen it. `/jobs 5` sets it, the `/jobs` card
1121
+ carries a row of buttons for 1–8, and both go through one function, so a tap
1122
+ cannot store a value the command would refuse. Written to `config.json`; a
1123
+ failed write still applies to the running process and says so.
1124
+ - **Three refactor casualties that `node --check` cannot see.** `saveState` was
1125
+ called but never destructured in `cmd-bridge.mjs` and `cmd-plugin.mjs`, `tg`
1126
+ was used but not imported in `steer.mjs`, and `deliverTurn` had been renamed to
1127
+ `redeliver` while two call sites kept the old name. A new guard test
1128
+ (`test/unresolved-calls.test.mjs`) scans every shipped module for a call to a
1129
+ helper it neither declares nor imports.
1130
+
1131
+ ## 1.22.0
1132
+
1133
+ - **💭 notes actually reach the progress card.** Two files exist for one topic:
1134
+ the turn's own (`DSH_TG_THOUGHT`) and the stable per-topic one that `say.mjs`
1135
+ writes whenever the tool shell lost the bridge's environment. The card read
1136
+ only the first, so the block stayed empty while the file on disk kept growing.
1137
+ Both are read now, filtered by the turn's start time, deduplicated, and a
1138
+ previous turn's line can no longer surface as this turn's decision.
1139
+ - **A turn that waits for a slot says so.** The parallel cap was a hard 3 and a
1140
+ fourth topic waited in total silence — not even "queued", which reads exactly
1141
+ like a dead bot. The cap is `config.maxParallel` (1–8, default 3) and a waiting
1142
+ turn posts one line in its own topic, removed the moment it starts.
1143
+ - **The notes instruction is not optional any more.** The per-turn prompt used
1144
+ to offer "skip it for one-step work", which turned into skipping it always.
1145
+ Now: a 💭 line at each decision point, and a `--note` line for the four things
1146
+ a person must not have to ask about — a release, a root cause, a blocker, and
1147
+ a turn running longer than a couple of minutes.
1148
+
1149
+ ## 1.21.1
1150
+
1151
+ - **The task list no longer freezes at 30.** The cap counted finished tasks as
1152
+ well as open ones, so once a goal ran long every new task was rejected in
1153
+ silence and the checklist stopped matching the work — the agent kept working
1154
+ while the list stood still. The cap is now on open work; ticked entries stay
1155
+ as history, and a goal that runs for months trims its oldest closed lines
1156
+ instead of refusing new ones. A rejected add says why in the log
1157
+ (`task rejected: 30 open`) instead of looking like a lost file.
1158
+
1159
+ ## 1.21.0
1160
+
1161
+ - **Four commands became two, and the argument picks the variant.** Going back
1162
+ was `/rewind` + `/fork` + `/branches` — three names for one job, and the
1163
+ desktop app calls all of it branching. It is now `/rewind 2` (cut),
1164
+ `/rewind fork [n]` (copy), `/rewind branches` (list). Switching a session is
1165
+ `/sessions <id>` instead of a separate `/resume`, and "am I current?" is
1166
+ `/update`, which now opens with the version card instead of needing
1167
+ `/version` first.
1168
+ - **The old spellings still work and are never advertised.** `control.mjs`
1169
+ rewrites them into the verb and its argument, and logs the rewrite, so an
1170
+ instruction written down months ago does not turn into an AI turn. `/help`
1171
+ and the panel list the two names; `menu-card.mjs` lost three buttons and no
1172
+ section fell below a usable size.
1173
+ - **`/help <command>` answers for the merged name too**: asking about `/fork`
1174
+ explains `/rewind`, because the sentence belongs to the job, not the spelling.
1175
+ - **One card for versions.** `/update` prints the bridge version, what npm has,
1176
+ the install directory and the update mode in a single message; the second
1177
+ half of that answer used to require a second command.
1178
+
1179
+ ## 1.20.6
1180
+
1181
+ - **All three locales checked, string by string.** 663 keys in each of `en`,
1182
+ `ru`, `zh`: the same keys, the same placeholders, nothing empty, no mojibake.
1183
+ Two real defects came out of it.
1184
+ - **`/help tasks` printed literal double quotes** around its sentence in every
1185
+ language — the string was written as a JS literal that already contained
1186
+ quotes, and nothing looked at the shape of a translated string, only at
1187
+ whether the key existed.
1188
+ - **The Russian plugin list said "(disabled)" in English.** Now "(отключён)".
1189
+ - A new test guards the shape rather than the key set: no string may be wrapped
1190
+ in ASCII quotes, none may leak `undefined`/`NaN` or an unsubstituted `${…}`,
1191
+ and a Russian or Chinese string may not be the English one unless it is pure
1192
+ formatting, a product name, or a model id.
1193
+
1194
+ ## 1.20.5
1195
+
1196
+ - **`/prices` has one source: OpenRouter.** The card used to mix models.dev with
1197
+ a scraped provider page, and could print `$0.0000` for the model the install
1198
+ actually runs — a free mirror standing in for a real price. A price that is
1199
+ wrong is worse than no price, because it gets believed.
1200
+ - **The number is labelled as a reference.** A private route (unorouter,
1201
+ wikivibe, any reseller) does not publish its own tariff, so the card shows
1202
+ OpenRouter's rate for the same model id and says in words that this is the
1203
+ market rate, not the invoice: `deepseek/deepseek-v4.1-flash — reference:
1204
+ OpenRouter price for the same model, not your route`. The id stays visible so
1205
+ the number can be checked in one click.
1206
+ - `pricesUrl` is retired: a second catalog only reintroduced the bug it was
1207
+ meant to fix — two numbers for one model, and a guess about which is yours.
1208
+
1209
+ ## 1.20.4
1210
+
1211
+ - **A prompt written in General ("Все") now starts its own topic.** The old
1212
+ lobby rule moved such a message into the most recently active topic — so text
1213
+ typed into the main stream ran in whatever project happened to be touched
1214
+ last, and the answer appeared in a conversation the person was not looking at.
1215
+ The owner hit this twice, once with a voice message.
1216
+ - **The topic is named from the first words of the message.** Six words or forty
1217
+ characters, whichever comes first, cut with an ellipsis; media without a
1218
+ caption gets a neutral name. A title is a handle in a sidebar, not a summary.
1219
+ - **The message itself becomes the first message of the topic.** It is copied
1220
+ with `copyMessage` — media included, no "forwarded from" header — and pinned,
1221
+ which also pins the topic to the top of the list. The copy is recorded as the
1222
+ topic seed, so the duplicate guard does not answer the same text twice.
1223
+ - **Commands are not prompts.** `/status` typed in General still answers where it
1224
+ was typed; a state-changing command is still refused with the name of the
1225
+ topic it would have changed. Only text without a leading slash opens a topic.
1226
+ - If Telegram refuses to create the topic (no topic permission, a rate limit),
1227
+ the old recovery runs instead, so the message is not lost.
1228
+
1229
+ ## 1.20.3
1230
+
1231
+ - **The Telegram menu is thirteen rows, and it is built from the registry.**
1232
+ It had thirty-six, written by hand inside `bot-menu.mjs` — a second list next
1233
+ to the one `commands-registry.mjs` already kept. That is how `/task` survived
1234
+ in the menu for a release after it had become an alias: two lists, one truth,
1235
+ and neither knew about the other. `MENU_COMMANDS` now lives beside the
1236
+ registry, `bot-menu.mjs` renders it with the `menu.cmd.*` strings, and a test
1237
+ fails if a row is an alias, a duplicate, one letter away from another row
1238
+ (`task`/`tasks`, `sessions`/`resume`), or written by hand again.
1239
+ - **Nothing was removed, only unadvertised.** Every command still works and
1240
+ `/help <name>` still explains it; the menu is what a person presses, not what
1241
+ exists. `/menu` draws the whole surface as sections.
1242
+ - The menu had also been replaced at some point by the 31-command list of
1243
+ `@xmanrui/dsh-im`; the bridge re-asserts its own list on start, and this is the
1244
+ list it now asserts.
1245
+
1246
+ ## 1.20.2
1247
+
1248
+ - **`/task` and `/tasks` are one command again, and the menu shows it once.**
1249
+ They had been split because `/tasks`, as an alias, swallowed the argument:
1250
+ `/tasks 1` added a task whose text was "1". Splitting fixed that and doubled
1251
+ the list — two nearly identical names, one of which did nothing the other could
1252
+ not. `/tasks` now takes the argument itself: a bare number ticks that task,
1253
+ `done|rm|edit <n>` say it out loud, any other text adds, and no argument shows
1254
+ the card. `/task` still works and is never advertised, the way `models` and
1255
+ `plugin` already work. `ctrl.help.about.task` folded into
1256
+ `ctrl.help.about.tasks`; `/help`, the panel, the README and the start guide
1257
+ teach one name.
1258
+
1259
+ ## 1.20.1
1260
+
1261
+ - **A voice note now arrives as a transcript, and says so.** The turn used to get
1262
+ the recognised words with nothing marking where they came from, so a misheard
1263
+ word was read as a deliberate one: "dodge" recognised as "дождь" turned a car
1264
+ into weather, and the answer was about the wrong subject. The prompt now opens
1265
+ with a line saying the text was produced by speech recognition, that names,
1266
+ Latin words and rare terms may be misheard, and that the model should ask what
1267
+ was meant instead of guessing. The echo in the chat is unchanged — the person
1268
+ still sees what was heard before the reply. `test/voice-marker.test.mjs`.
1269
+ - **The published package no longer names a provider.** `model-probe.mjs` fell
1270
+ back to a hard-coded provider environment variable while its own comment
1271
+ promised that nothing was hardcoded; the probe now reads the first provider row
1272
+ of the profile, with `DSH_PROBE_BASE_URL` and `DSH_PROBE_KEY_ENV` as the generic
1273
+ overrides.
1274
+
1275
+ ## 1.20.0
1276
+
1277
+ - **A turn shows its answer, not its reasoning.** When a turn ended without a
1278
+ final answer, the CLI's `final` event reported the last assistant text it had
1279
+ — the reasoning — and the bridge sent that as the reply. The chat then held a
1280
+ page of thinking with no answer under it. The answer is now compared with the
1281
+ reasoning block the panel already holds (whitespace-normalised, and only when
1282
+ it is at least 120 characters, so "ok" cannot be swallowed); an echo becomes
1283
+ one line saying the turn ended without an answer. `test/reasoning-echo.test.mjs`.
1284
+ - **Every shipped module fits in one screen.** `bridge.mjs` 3116 → 411 lines,
1285
+ `control.mjs` 2734 → 97, each dictionary 2024 → an 8-line header over
1286
+ `core.mjs` (214 keys) and `ctrl.mjs` (421). The ceiling is a test, not a
1287
+ promise: `test/module-size.test.mjs` fails above 500 lines and its `MIGRATION`
1288
+ set — which once carried the files still waiting — is empty, so there is no
1289
+ file left to exempt. The moves themselves change no behaviour; the process is
1290
+ in `docs/REFACTORING.md` and the archived change is
1291
+ `openspec/changes/archive/2026-10-28-split-giant-files/`.
1292
+ - **The pre-push scanner stopped flagging merged pull requests.** GitHub writes
1293
+ its own merge commits as `Committer: GitHub <noreply@github.com>`, and the
1294
+ exemption in `scan-secrets.mjs` was written where it could never match, so the
1295
+ first merged PR made every later push fail the check. The rule now reads the
1296
+ address from its `@` and allows the whole `github.com` domain; a personal
1297
+ domain is still a finding, and both cases are tested.
1298
+
1299
+ ## 1.19.12
1300
+
1301
+ - **The speed number added in 1.19.11 was wrong.** The harness reports
1302
+ `outputTokens` per step, not for the turn, so dividing the last step by the
1303
+ whole clock claimed 0.6 tok/s for a turn that was running at eighty. The panel
1304
+ now sums the per-step numbers and divides that, and the test asserts the sum
1305
+ rather than the assignment.
1306
+ - **The bot answers again.** 1.19.11 moved the allowlist check to the very front
1307
+ of every update and called `allowedSender(msg)` without the config, so the
1308
+ list of allowed users was read from `undefined` and came back empty: every
1309
+ message, the owner's own included, was logged as `ignored update` and dropped
1310
+ silently. One argument restores it, and the wiring test now asserts
1311
+ `allowedSender(msg, config)` rather than a bare call name, which is exactly
1312
+ how the regression got through.
1313
+
1314
+ ## 1.19.11
1315
+
1316
+ - **The turn panel shows how fast it is generating**, in tokens per second, next
1317
+ to the clock: `⏳ работаю… 412 с · 37 т/с`. The clock alone could not answer
1318
+ "почему так долго" — a slow provider and a turn that spends its minutes in a
1319
+ test run look identical. The number is the turn's average, output tokens over
1320
+ wall time, and it is absent below three seconds rather than wrong.
1321
+ - **A steer is confirmed the moment it is queued.** It used to produce nothing
1322
+ at all: the `steer-inbox` plugin hands the addition to the running agent at its
1323
+ next step, and a step can be a six-minute test run, so the addition looked
1324
+ lost. There is now one short line at queue time; the 90-second notice is kept
1325
+ for a job the plugin really has not picked up.
1326
+
1327
+ ## 1.19.10
1328
+
1329
+ - **A command typed in the General topic no longer changes another topic.**
1330
+ General ("Все") is the lobby: a message written there is moved into the most
1331
+ recently active topic so one project stays in one place, and the answer appears
1332
+ there. That is right for a prompt and for reading — but `/new` typed in General
1333
+ wiped the session of a topic the person was not looking at, and `/rewind` rolled
1334
+ one back. Reading commands and `/stop` still follow the work; everything that
1335
+ changes state is answered in General with the name of the topic it would have
1336
+ changed. A command never creates a topic.
1337
+
1338
+ ## 1.19.9
1339
+
1340
+ - **`/tasks` is a command of its own again.** It had been an alias of `/task`,
1341
+ which made the tappable checklist — the thing the README advertises —
1342
+ unreachable, and made `/tasks 1`, the obvious way to mean "task 1", add a task
1343
+ whose text was "1". The card also refused to draw for goals with fewer than
1344
+ three tasks, which is most goals.
1345
+ - **`/plugin add` installs into the topic's profile.** It wrote to the literal
1346
+ `desktop` whatever profile the topic ran on, so on a fresh machine the only
1347
+ in-chat install landed in a profile that does not exist. The `headless` /
1348
+ `desktop` word is now read at either end of the line, as the help text always
1349
+ said.
1350
+ - **`setup` refuses on macOS and Linux instead of failing obscurely.** It stops
1351
+ the old bridge with `taskkill` and registers autostart through `schtasks`, yet
1352
+ the README promised "any platform" and `launchd`/`systemd` from that command.
1353
+ It now names `install.sh` and exits 2; `--check` still runs everywhere.
1354
+ - **`init` calls a missing headless profile a blocker**, because with no profile
1355
+ the bot answers every message with an error. It names the one command that
1356
+ fixes it.
1357
+
1358
+ ## 1.19.8
1359
+
1360
+ - **Fixed: sync-runtime copied only the root .mjs files, so the dictionary
1361
+ split in 1.19.7 left the runtime directory with an import that could not
1362
+ resolve — the bridge would refuse to start after the next /restart confirm.**
1363
+ It now copies exactly what package.json says the package is made of,
1364
+ including subdirectories, and test/sync-runtime.test.mjs runs the real script
1365
+ into a temp directory and boots the result. Caught minutes after publishing
1366
+ 1.19.7, before anyone restarted into it.
1367
+
1368
+ ## 1.19.7
1369
+
1370
+ - **Fixed: three files promised Node 20 (and one promised 18) while the package
1371
+ requires 24.** `install.sh`, `install.ps1`, `QUICKSTART.md` and the sanity check
1372
+ inside `setup.mjs` each had their own idea of the floor, so a person on Node 22
1373
+ passed every check and then died on the first session read — the failure looked
1374
+ like a broken plugin, not a version requirement. All four now say 24, and
1375
+ `test/node-floor.test.mjs` fails the build if any of them drifts again.
1376
+ - **Changed: the dictionary is one file per locale.** `i18n.mjs` was 2024 lines
1377
+ and every translation change meant scrolling a wall; it is 94 lines plus
1378
+ `i18n/{en,ru,zh}.mjs` at ~640 each. No behaviour change — the existing parity
1379
+ test compares the three tables key by key, and `sync-runtime` learned to create
1380
+ the directory a nested `files[]` entry needs.
1381
+ - **New: `docs/REFACTORING.md`.** The order in which the two remaining big modules
1382
+ get split, what breaks during a move, and the rule that a refactor never shares
1383
+ a commit — or a release — with a behaviour change.
1384
+
1385
+ ## 1.19.6
1386
+
1387
+ - **Security: a stranger the bot can see could steer the owner's live turn.**
1388
+ `allowedUserIds` was checked inside `handleMessage`, but the mid-turn addition
1389
+ path (`steerRunningTurn`) runs one step earlier in the update loop and never
1390
+ reaches that check — so any Telegram user who could message the bot could put
1391
+ text inside a turn that already has shell and file tools. The allowlist is now
1392
+ the first thing every update meets, in `accept`, before any branch; the rule
1393
+ lives in `allowlist.mjs` so it can be tested without booting the bot.
1394
+ - **Fixed: `/update confirm` never worked, for anyone.** It read
1395
+ `<tmp>/package`, a layout npm stopped producing years before this project
1396
+ existed (the package goes to `node_modules/`), and copied every entry with
1397
+ `copyFileSync`, which throws on the first directory (`plugin/`, `skills/`).
1398
+ The copy is now `cpSync` over the real path, split into `copyRelease()` so the
1399
+ two faults are covered by tests instead of by hope.
1400
+ - **Fixed: a missing DSH app killed the bridge on every turn, silently.**
1401
+ `runTurn` spawned the desktop executable with no `error` listener; an
1402
+ unhandled `EmitError` terminates the process, so a moved install looked like a
1403
+ bot that answers nothing. The turn now fails with one line naming the exact
1404
+ path and the config key that points elsewhere.
1405
+ - **Fixed: `/task` and `/goal` printed the same card.** `/goal` is the plan
1406
+ (objective, checklist, progress) and `/task` is the list you tick — it now
1407
+ answers with the numbered checklist only, so typing either one tells you which
1408
+ command owns what.
1409
+
1410
+ ## 1.19.5
1411
+
1412
+ - **New: `/logs file` test no longer needs a machine that has run the bridge.**
1413
+ The test stat'ed the real `bridge.log`; on a laptop it exists, so the branch
1414
+ that answers when it does not was never exercised. It writes its own log into
1415
+ the sandbox home now.
1416
+ - **Fixed: `/thoughts` promised a disappearing message and sent a permanent one.**
1417
+ The title said the block would be gone in a few minutes while the send was an
1418
+ ordinary reply — the one thing a person cannot check until they scroll back a
1419
+ day later. The report now goes through the bridge's self-deleting send, the
1420
+ promise names the interval (three minutes), and a test asserts the block never
1421
+ leaves as a permanent message.
1422
+ - **Fixed: CI was red for the whole 1.19.x line.** Two faults, both invisible on a
1423
+ developer machine: the Node 20 leg died on the zstd import, and one test matched
1424
+ a whole statement against `\n` only, which a Windows checkout turns into CRLF.
1425
+ Both are fixed and the suite runs green on the real matrix.
1426
+
1427
+ ## 1.19.4
1428
+
1429
+ - **Fixed: the package claimed Node 20 and died on it.** Every command that touches
1430
+ a session reads zstd frames, and `node:zlib` only grew the zstd codec in Node 24 —
1431
+ the version DeepSeek Harness ships in its own runtime. The suite went red on the
1432
+ Node 20 leg of CI for a month of releases, which nobody saw because the badge was
1433
+ not part of the release gate. `engines.node` now says `>=24`, CI runs 24, and a
1434
+ test fails the build if the declared floor and the CI matrix ever drift apart
1435
+ again.
1436
+ - **Fixed: the failure is now readable.** Importing a missing export is a syntax
1437
+ error thrown before any code runs, so an old Node got
1438
+ `does not provide an export named 'zstdDecompressSync'` and nothing else. The
1439
+ zstd import is guarded: the message names the requirement.
1440
+ - **Fixed: a test only passed on one line ending.** `cli-sync` matched
1441
+ `const RUNTIME_FILES = ...;\n`, which is false on a Windows checkout that hands
1442
+ the test CRLF — so the test was green locally and red in CI. It matches either
1443
+ ending now.
1444
+
1445
+ ## 1.19.3
1446
+
1447
+ - **New: `/plugins info <name>` — what a package is before it gets in.** The card
1448
+ shows the version, what the package does, its licence, its repository, and the
1449
+ line that decides the outcome: whether the manifest declares `dsh.bundle`. A
1450
+ package that does not declare it is an ordinary npm package and DSH will not
1451
+ load it — the chat now says that instead of installing it hopefully.
1452
+ - **New: `/plugins update` — a report first, installs one at a time.** A wordless
1453
+ call compares every installed bundle with the registry and answers with a list
1454
+ plus one up-arrow button per package; the button runs
1455
+ `/plugins update <name>`, which is the only thing that starts pnpm. Saying one
1456
+ word must not start twenty installs.
1457
+ - **Fixed: a closed goal stayed closed only until someone fixed a typo.**
1458
+ `/goal <text>` reset the `done` flag, so editing the wording silently reopened
1459
+ the work. The mark now survives a re-wording, the card says the goal is still
1460
+ closed, and `/goal reopen` is the explicit way back.
1461
+ - **Fixed: the plugin tests could install into the desktop profile.** One test
1462
+ walked the real profile and ran pnpm for every bundle it found — while this
1463
+ release was being prepared it upgraded 14 packages on the development machine.
1464
+ Every test that imports `control.mjs` now gets a throwaway `DSH_HOME` from
1465
+ `test/sandbox-home.mjs`, and a guard test fails the suite if a new one forgets.
1466
+
1467
+ ## 1.19.2
1468
+
1469
+ - **Fixed: system commands answered a stranger in Russian.** `/restart`,
1470
+ `/stop`, `/cd`, `/new`, `/help`, the start greeting and reminders each
1471
+ carried their own `|| 'ru'` fallback, so an install whose owner never ran
1472
+ `/lang` — and whose config had no default — spoke Russian to everyone, while
1473
+ `resolveLang` promised English for an unknown reader. One rule now:
1474
+ topic language, then `config.lang`, then English. A topic that chose Russian
1475
+ still gets Russian; the difference is only what happens when nobody chose.
1476
+ - **New: `/task edit <n> <text>` rewrites a checklist line in place.** The
1477
+ desktop lets you edit a task; the chat could only delete it and add it again,
1478
+ which renumbered every line below and broke whatever the conversation had been
1479
+ quoting. An edit keeps the number, the position and the done mark;
1480
+ `/task set` is the same action, and an impossible number is refused instead of
1481
+ appending a line.
1482
+ - **Docs: the changelog no longer names anyone's providers.** The published
1483
+ changelog recorded the provider accounts and private channels of one install.
1484
+ The portability grep used to skip that file, which hid the one place a public
1485
+ reader could see them; both are fixed, and the grep now covers every file.
1486
+ - `package.json` gained the repository's homepage and issue tracker, and npm's
1487
+ own `pkg fix` shortened the `bin` path.
1488
+
1489
+ ## 1.19.1
1490
+
1491
+ - **Fixed: a tap in the panel ran an explanation instead of the command.** Every
1492
+ command that takes an argument opened its help page, so most of the panel
1493
+ answered with a paragraph — the buttons looked like text, not like commands.
1494
+ A press now runs the command bare, exactly as typing it would, and the command
1495
+ answers with its own usage line or its own card. Only `/new` and `/stop`
1496
+ still stop at their explanation: a stray tap must not start a session or kill a
1497
+ turn.
1498
+ - **Fixed: the English progress header was Russian.** `bridge.progress.topic`
1499
+ was left in the Russian block's spelling, so an English chat read
1500
+ "Тема: main (id 42)" above every tool line. Three new tests now check that each
1501
+ dictionary stays in its own language: no Cyrillic in the English or Chinese
1502
+ values, and no untranslated English sentence in the Chinese one.
1503
+ - **The panel leads with what is used daily.** `/menu` opens with four buttons —
1504
+ status, model, new session, stop — above the six sections, so the common case
1505
+ costs one tap instead of three. Nothing is listed twice.
1506
+ - **The Telegram command menu no longer advertises aliases.** `/tasks`,
1507
+ `/models`, `/plugin` and `/agentset` are still accepted, but they are gone
1508
+ from `setMyCommands` (and their two Russian descriptions with them), matching
1509
+ what the panel already did.
1510
+ - **New: `/plugins search <word>` — the marketplace, from the chat.** It asks the
1511
+ npm registry for the `dsh-plugin` keyword and answers with name, version and a
1512
+ line of description; each result carries a plus button that runs
1513
+ `/plugins add <name>`. A wordless search lists what exists at all. A refused
1514
+ registry is reported as a failure with its status, never as "nothing found" —
1515
+ the two send a person in opposite directions.
1516
+ - **Fixed: the failure rules live in `failures.mjs`.** Extracting them from
1517
+ `bridge.mjs` is what lets `TURN_TIME_CAP` be tested without starting a bot;
1518
+ the module is published with the rest.
1519
+
1520
+ ## 1.19.0
1521
+
1522
+ - **Fixed: a turn stopped by its own time ceiling no longer reads as a
1523
+ failure.** The bridge's clock reported `turn exceeded 75 min` as an unknown
1524
+ error and told the person to repeat the request — which throws away a finished
1525
+ hour of work that is, in fact, safely on disk. It is now its own cause,
1526
+ `TURN_TIME_CAP`, saying that nothing is lost and that Continue picks up where
1527
+ it stopped. The failure rules moved to `failures.mjs` so they can be tested
1528
+ without starting a bot.
1529
+ - **New: `/fork` and `/branches` — branches, as on the desktop.** `/fork`
1530
+ copies this topic's session as a session of its own and moves the topic onto
1531
+ the copy; `/fork 2` copies it as it stood two turns back. Nothing is cut: the
1532
+ session you were in stays byte for byte as it was, and `/branches` lists the
1533
+ branches with a button each, so going back is a tap and not a guess. The copy
1534
+ gets a new id in its header — a copy that kept the old one would be two
1535
+ sessions with one name. Same refusals as `/rewind`: a session being written,
1536
+ or one whose tail is half-written, is not copied.
1537
+ - **New: `/menu` is a real menu — six sections, pages, and a keyboard you can
1538
+ keep.** The old panel was one card of sixteen buttons that vanished on the
1539
+ first press. It is now a hub and six pages (work, sessions, goals, model,
1540
+ extensions, service), each page one card that edits itself as you move, with
1541
+ its commands as buttons, a way back and a way onward. Every documented command
1542
+ is reachable from it and nothing else is: a test fails if the panel hides one.
1543
+ - **New: `/menu on` puts four keys under the message field** — status, menu,
1544
+ stop, new — and `/menu off` takes them away, remembered per topic. A tap sends
1545
+ the key's own word, so the bridge maps those four words back to their commands
1546
+ in all three languages; any other word stays a prompt, exactly as before.
1547
+ - **Fixed: the `/help` body ran two lines together.** `/subscribe on|off` and
1548
+ `Other:` were printed as `on|offOther:` in all three languages — a missing
1549
+ newline from an earlier edit, which also made the whole body unparseable as a
1550
+ single line.
1551
+ - **The panel no longer advertises old spellings.** Buttons carry the command
1552
+ they run (`/model <id>`, `/rewind [n]`), which is also how the panel teaches
1553
+ the names — and a test walks every button of every page for a stale name.
1554
+
1555
+ ## 1.18.0
1556
+
1557
+ - **Fixed: "all models are unavailable" gave no reason.** After the probe found
1558
+ out *why* nothing answered, the hint was built by gluing the verdict onto a raw
1559
+ provider string, and the first thing in the message was the tail of an English
1560
+ error (the chat showed `in`, from `insufficient …`). The hint lives in
1561
+ `model-probe.mjs` now, is a sentence in the reader's language, and says which of
1562
+ four things is wrong: empty balance, overloaded provider, rejected key, dead
1563
+ network.
1564
+ - **Faster: a dead channel pool no longer costs a turn per model.** A
1565
+ `get_channel_failed` / `all providers are busy` 503 is the provider's own pool,
1566
+ not the model — it is down for every model in the chain. One probe after the
1567
+ first refusal now decides in seconds instead of four full turns: a real outage
1568
+ that took 741 seconds reports in under two minutes, and a pool that answers
1569
+ again lets the chain continue as before.
1570
+ - **Fixed: a chain that stopped early went silent.** The "all models are
1571
+ unavailable" message only fired when every model had been tried, so the new
1572
+ early stop would have ended the turn with nothing. A verdict now counts as the
1573
+ report, and a test pins the rule: no verdict and a short chain is not proof.
1574
+
1575
+ ## 1.17.0
1576
+
1577
+ - **Fixed: `/rewind` could cut a session the desktop app had open.** The first
1578
+ 1.16.0 rule only refused while a *bridge* turn was running, but the app keeps a
1579
+ write handle on a session it has open, and DSH then throws "stored log shrank
1580
+ below a previously observed prefix" at the next message. A session written to
1581
+ in the last half minute is now refused with a sentence that says to wait. The
1582
+ projection cache needs nothing: rows past the new end are discarded and the
1583
+ title is refolded from what remains.
1584
+ - **Fixed: two refusals were a key name or a sentence that said nothing.** Every
1585
+ refusal the planner can return now has words in all three languages, and a test
1586
+ holds the planner's own list to the translations, so a new refusal cannot ship
1587
+ wordless. Two Chinese messages were rewritten: they were correct but so short
1588
+ they did not say what to do.
1589
+
1590
+ ## 1.16.0
1591
+
1592
+ - **New: `/rewind [n]` — go back a turn and say it differently.** The desktop
1593
+ app can branch from an earlier turn; the bridge now can too, from Telegram.
1594
+ `/rewind 2` shows a card naming every turn that will go and the turn the
1595
+ session will continue from, with one button to confirm and one to cancel.
1596
+ Nothing is cut until the button is pressed, the file is never edited in place
1597
+ (a copy is written first, and `/rewind undo` puts it back), and a turn that is
1598
+ running refuses the whole thing — a session being written is the one file this
1599
+ must never touch. Every ambiguous case refuses with a reason instead of
1600
+ guessing: no session, too few turns, a half-written tail, a button from
1601
+ another session, a button pressed twice.
1602
+ - **New: `/menu` — the panel.** Four short screens of buttons (work, answers,
1603
+ session, service). A press runs the command a person would have typed, and the
1604
+ card is replaced by that command's answer, so it never lingers. A button that
1605
+ needs an argument opens its explanation instead of guessing.
1606
+ - **New: `/help <command>`.** One sentence per command, and the lookalikes
1607
+ explain each other: `/task` adds, `/tasks` is the list; `/model` switches,
1608
+ `/models` is the catalogue; `/plugins` is the command, `/plugin` its old
1609
+ spelling. The full list is still `/help`.
1610
+ - **Fixed: two crashes in unreleased work, found by an audit before release.**
1611
+ `/help <anything>` and `/rewind` both threw a `ReferenceError` — one on a
1612
+ function that was called and never written, one on a variable read outside its
1613
+ scope. `node --check` cannot see either. A test now calls the real dispatcher
1614
+ with every command and asserts that none of them throws.
1615
+ - **Fixed: the commit history carried a personal email address.** Two commits,
1616
+ one of them reachable from every release since v1.10.0, were authored with the
1617
+ maintainer's private address. The whole history was rewritten to the project
1618
+ identity and every tag moved with it; nothing in the published package changed.
1619
+ The secrets scan now fails on a commit author, not only on file contents.
1620
+
1621
+ ## 1.15.1
1622
+
1623
+ - **Fixed: `/settings` answered "Неизвестная команда".** It was in `/help`, in
1624
+ the Telegram menu and in the code that draws the card, but not in the list the
1625
+ bot checks before handling a command — the one list nothing compared against
1626
+ the other two. Now one test reads all three: a command in help or in the menu
1627
+ that the dispatcher does not know fails the build, and so does a command the
1628
+ dispatcher knows that nothing documents. The test was run against the broken
1629
+ code first, so it fails for the right reason.
1630
+
1631
+ ## 1.15.0
1632
+
1633
+ - **New: `/settings` is one card with four tabs.** What the bot says (reasoning,
1634
+ language, thinking), who answers and how hard it works (model, effort,
1635
+ permissions, preset, agent set, agents), new releases, and the health checks.
1636
+ Each row shows what the value is now and what a tap would change it to, and a
1637
+ tap runs the command a person would have typed — the card cannot drift from
1638
+ the commands because it is a view of them. After a change it collapses into one
1639
+ plain line that can be deleted.
1640
+ - **Fixed, and it was the worst kind: `/prices` printed a wrong number.** The
1641
+ catalog holds the same model on about a hundred gateways, 567 entries at cost 0,
1642
+ and the matcher took the shortest substring hit — a free mirror of DeepSeek. The
1643
+ install's own model was reported as `$0.0000 / $0.0000`. A price is now chosen
1644
+ in a fixed order (published and yours, published, yours at zero, nothing), every
1645
+ line says whose price it is, and a route nobody publishes says
1646
+ "no public price" and names gateways that do.
1647
+ - **Fixed: a Chinese question in an English client got an English answer.** The
1648
+ reply language now comes from the message itself before the Telegram locale:
1649
+ Cyrillic switches the topic to Russian, Han characters to Chinese. Three letters
1650
+ minimum, so a model name or a path does not flip it.
1651
+ - **Fixed: the first command a new reader runs was a 404.** QUICKSTART said
1652
+ `npx dsh-tg@latest` eight times; the package is `dsh-tg-bridge`. Every copy-paste
1653
+ line now works as written, and the `ERR_MODULE_NOT_FOUND` row says what a global
1654
+ install does and does not update.
1655
+ - **Fixed: `/status` said the context window was unknown.** It looked for
1656
+ `contextWindow` in the wrong block of `cordis.patch.yml`, and the advice it gave
1657
+ pointed at a file that never holds the setting. It now reads the model's row,
1658
+ then the provider's default, and says which one is in force.
1659
+ - **Fixed: every progress card was one more message in a chat that is already
1660
+ busy.** One card per turn, edited in place, now carrying the topic it belongs to
1661
+ — a card that lands in the wrong place says so instead of raising the question.
1662
+ - **`/agents` explains itself.** Who a subagent is, what depth and the tool filter
1663
+ change, whose model list the "routes" are, and the one command for each. The
1664
+ numbers are still there; the sentence above them is new.
1665
+ - **The release notice goes to the last topic that ran a turn**, not to whichever
1666
+ topic happened to be open when the check ran.
1667
+ - `scan-secrets` reads commit identities too (`--all`): an address in an
1668
+ `Author:` line is personal data that no file in the tree shows, and it used to
1669
+ pass every check. Docs corrected where they described behaviour that had
1670
+ changed: `/logs file`, `/profile` in `/help`, the module count in the release
1671
+ criteria, the menu-language fallback.
1672
+
1673
+ ## 1.14.0
1674
+
1675
+ - **New: updates have a policy.** The npm tag `latest` is a label, not an
1676
+ updater — installing pins a version on disk and nothing moves until something
1677
+ moves it. Now `/update` answers where the install stands, and takes a mode:
1678
+ `check` (the default: one message per new release), `auto` (the release installs
1679
+ by itself), `off` (no checks, nothing installs), and `confirm` (install now).
1680
+ The mode is per install, not per topic, because it is the install that updates.
1681
+ - In every mode the running process keeps its modules until `/restart confirm`,
1682
+ so a bad release never arrives in the middle of a chat. `confirm` and `auto`
1683
+ leave the replaced files in `update-backup-<date>`, and `/update` prints that
1684
+ path: one folder is the way back.
1685
+ - `/update off` pins the version it runs; `/update auto` refuses to be switched on
1686
+ top of a pending update, since that would mean two updates at once, one of them
1687
+ unattended.
1688
+ - `/subscribe on|off` is the same switch said plainly, for people who do not want
1689
+ to read `/update` first. It is not in the Telegram menu: a person who turned it
1690
+ off should not have to look for it there again.
1691
+ - The check rides the poll loop's idle and asks npm at most once a day (`check`)
1692
+ or once an hour (`auto`). The first check runs three minutes after a start so a
1693
+ restarting machine does not hit the registry on every boot.
1694
+ - Docs brought back in line with the code: `/models`, `/plugin`, `/tasks`,
1695
+ `/subscribe` and the whole `Sets:` and `Updates:` groups are in the README, in
1696
+ `/help` in all three languages, and in the Telegram menu; `/models` and
1697
+ `/plugin` were missing from the menu entirely.
1698
+
1699
+ ## 1.13.2
1700
+
1701
+ - `QUICKSTART.md`: from no Telegram account to an answering bot in twelve steps,
1702
+ with a table of what actually goes wrong and what each symptom means. It ships
1703
+ in the package and is linked from the top of the README.
1704
+ - `skills/dsh-tg-bridge-onboarding/SKILL.md`: the same path as a skill, so an
1705
+ agent next to a newcomer can ask three questions, run the install and verify it
1706
+ by asking the person to send `hi` — not by reading logs.
1707
+
1708
+ ## 1.13.1
1709
+
1710
+ - **Fix: the npm package could not start.** `format.mjs` was imported by
1711
+ `bridge.mjs` but missing from `files[]`, so `npm i -g dsh-tg-bridge` installed a
1712
+ package whose entry point fails on its first import. The check that would have
1713
+ caught it (does every shipped `.mjs` exist and does every relative import
1714
+ resolve?) now runs in the test suite.
1715
+ - `npm run secrets` and `npm run hooks` expose the scanner and the git hook
1716
+ installer from a published install.
1717
+ - Fix: a step note could land in another topic. Two turns running at once shared
1718
+ one note file per topic, and `say.mjs` learned the topic by picking the newest
1719
+ file on disk. Every turn now gets its own file, its path travels to the tools
1720
+ as `DSH_TG_THOUGHT`, and with no target `say.mjs` exits (7) instead of guessing.
1721
+ - **New: `/tasks` — the task list as buttons.** One tap closes a task, a second
1722
+ tap reopens it, and the card is redrawn from state, so a double tap cannot
1723
+ stack ✅ marks. The list is in the menu in all three languages.
1724
+ - Fix: `goal.mjs` took the topic from `--key`, which was easy to forget, so a
1725
+ task update could be written to the wrong topic or refused. It now takes
1726
+ `DSH_TG_KEY`, which the bridge passes to every turn.
1727
+ - A turn with no goal is told to set one before starting multi-step work, so the
1728
+ plan the person can see and the plan the agent follows are the same list.
1729
+ - **Security: a local push guard.** `scan-secrets.mjs` refuses tokens, private
1730
+ keys, paths that carry a user name and personal ids kept outside the repo;
1731
+ `.githooks/pre-commit` and `pre-push` run it, `install-hooks.mjs` installs them.
1732
+ `jev-gate` asked a remote model about secrets and only when run by hand, which
1733
+ is why an identifier reached a push earlier.
1734
+
1735
+ ## 1.13.0
1736
+
1737
+ - **New: `/agentset` — named settings for a topic.** A set holds a model, an
1738
+ effort, a permission preset, a DSH agent preset and a language; every field is
1739
+ a delta, so an empty one inherits the profile. `/agentset use <id>` binds it to
1740
+ the current topic, `/agentset off` returns to the profile, `/agentset new`,
1741
+ `copy`, `rm` and `/agentset model <value> [id]` edit it without a text editor.
1742
+ Four builtins ship read-only — `normal`, `careful`, `fast`, `reviewer`; copy one
1743
+ to change it. Two topics can now run two models on one profile, which was
1744
+ impossible before: each of those switches wrote the shared profile patch.
1745
+ - Sets live in `agentsets.json` next to `state.json`, with their own revision and
1746
+ one silent rebase when two processes write at once, so a set saved by a second
1747
+ bridge is not lost by the first.
1748
+ - The progress message says which set a turn runs on (`On it: … · 9 s ·
1749
+ Reviewer · glm-5.3/high`), and nothing when no set is bound.
1750
+ - **Security: every inline button now checks the allowlist.** A callback used to
1751
+ be accepted from any user in any chat the bot was in; the message path was
1752
+ guarded, the button path was not. A press from outside `allowedUserIds` (and
1753
+ outside an allowed chat) is answered with the same "unknown button" text and
1754
+ changes nothing.
1755
+ - Fix: `agentsets.json` is refused, not overwritten, when it cannot be parsed.
1756
+
1757
+ ## 1.12.1
1758
+
1759
+ - Fix: `bridge.mjs` spelled out one machine's secret name
1760
+ (`DSH_TELEGRAM_BOT_TOKEN_<hex>`, a per-install id), so a clone carried the
1761
+ original author's machine fingerprint. The suffix is now discovered from
1762
+ `~/.dsh/.credentials.yaml` instead of being written into the code.
1763
+
1764
+ ## 1.12.0
1765
+
1766
+ - Fix: a restart went silent. Extracting the formatting helpers into `format.mjs`
1767
+ took `langFor` with them while two call sites stayed behind, so `send()` threw
1768
+ on its first line and the restart confirmation was logged and swallowed. The
1769
+ bridge now sends `✅ Мост поднялся` again after `/restart confirm`.
1770
+ - Fix: the npm README linked to `docs/*` files that the tarball does not ship, so
1771
+ every such link opened a 404 right after install. The links now point at the
1772
+ GitHub sources, and the install scripts and SECURITY.md are published too.
1773
+ - New: `test/bridge-wiring.test.mjs` reads `bridge.mjs` and fails when a called
1774
+ name is neither defined nor imported, and checks that every i18n key used by
1775
+ the bridge exists in all three languages.
1776
+
1777
+ ## 1.11.0 — 2026-10-25
1778
+
1779
+ - The progress message opens with the request echoed back — `⏳ Принял: «…» · 3 с` — instead
1780
+ of a bare spinner. It is the first thing sent after a message arrives, so the person sees
1781
+ their own task named within a second, before the model has produced anything.
1782
+ - `say.mjs --note "…"` sends a real short chat message, for decisions that change what the
1783
+ person should expect: a release shipped, a cause found, a blocker. `--thought` stays the
1784
+ decision trail inside the panel, so the chat does not get one message per step.
1785
+ - The per-turn instruction now names both channels: 💭 for every significant step, `--note`
1786
+ only for what must be known now.
1787
+ - Two more panel tests (122 total).
1788
+
1789
+ ## 1.10.1 — 2026-10-25
1790
+
1791
+ - Long answers no longer arrive as literal `<b>` and `<code>`. The reply was turned
1792
+ into Telegram HTML first and then cut at 3800 characters, so a cut inside a
1793
+ `<pre><code>` block invalidated every part; Telegram rejected them and the fallback
1794
+ resent the same markup as plain text — which is what the chat showed.
1795
+ - The reply is now split as markdown: never inside a fence, with the fence re-opened
1796
+ and its language tag kept, and each part converted on its own.
1797
+ - The plain fallback strips tags and entities, so even a rejected formatted message
1798
+ arrives as readable text instead of markup.
1799
+ - `format.mjs` holds the conversion and the splitting, with seven tests that pin the
1800
+ old failure (120 in total).
1801
+
1802
+ ## 1.10.0 — 2026-10-25
1803
+
1804
+ - `/thoughts file` sends the **whole** reasoning of the last turn as a Markdown
1805
+ document (`reasoning-<date>-file.md`), and `/thoughts all` does the same for every
1806
+ turn of the session. Measured on a real session: the last turn was 15 steps /
1807
+ 30 317 characters, the whole session 164 turns / 1 559 steps / 2.2 MB — fine for a
1808
+ document, impossible for a message.
1809
+ - `/thoughts off` keeps the reasoning block out of the turn panel: it shows
1810
+ `🧠 Размышления · N · /thoughts file` instead, and `/thoughts on` brings the block
1811
+ back. The switch is per topic and lives in `state.json`.
1812
+ - A cut block now points at `/thoughts file`, and the plain `/thoughts` reply ends
1813
+ with the hint that lists the three modes.
1814
+ - Logs are built from the session file on demand and pruned after a week.
1815
+
1816
+ ## 1.9.3 — 2026-10-25
1817
+
1818
+ - Reading a block no longer gets interrupted. Telegram re-collapses an expanded
1819
+ `<blockquote>` on every edit of its message, so tapping the reasoning open and
1820
+ then the next 3.5 s edit landed the chat back on an older message. Blocks now
1821
+ appear only in the final edit of a turn, which nothing edits again; while the
1822
+ turn runs the panel shows a reasoning counter (`🧠 Размышления · 4821`) and the
1823
+ last three steps. Edits are also skipped when the text did not change and the
1824
+ cadence dropped from 3.5 s to 5 s.
1825
+
1826
+ ## 1.9.2 — 2026-10-25
1827
+
1828
+ - Step lines name the work instead of the shell plumbing: the `cd <dir>` prefix and
1829
+ the shell wrapper are dropped and the arguments kept, so a row reads
1830
+ `pwsh: node sync-runtime.mjs` rather than `pwsh: node`. A call that only changed
1831
+ directory is not a step at all, and repeats fold into the line above as `×3`.
1832
+ A 35-row wall of `pwsh: cd` is now six rows of what actually ran.
1833
+ - A cut reasoning block says where the rest is (`… · /thoughts`) instead of starting
1834
+ mid-sentence with no explanation.
1835
+ - `/thoughts` sends the whole reasoning of the last turn in parts (up to 20k
1836
+ characters) rather than stopping at 4000 with an ellipsis.
1837
+
1838
+ ## 1.9.1 — 2026-10-25
1839
+
1840
+ - `/remind list` lists the reminders instead of failing as an unreadable time, and
1841
+ the hint line mentions it.
1842
+ - `/help` shows the real `/agents set model|depth|filter … @tool` form, which was
1843
+ still documented as `/agents <id>`.
1844
+
1845
+ ## 1.9.0 — 2026-10-25
1846
+
1847
+ - The turn message shows the whole turn: the reasoning block plus, when a turn
1848
+ makes more than three tool calls, the complete step list in a second collapsed
1849
+ block. Short turns keep their three inline steps; long ones no longer end at
1850
+ "…and 37 more" with no way to see them.
1851
+ - Both blocks are budgeted against Telegram's 4096-character limit (reasoning
1852
+ 2000, steps 1600, panel 3900) and keep their tails with a "beginning hidden"
1853
+ note, so the newest part of the turn is always the part on screen.
1854
+
1855
+ ## 1.8.1 — 2026-10-25
1856
+
1857
+ - The turn panel respects `plainText: true`: it was sending the reasoning block as
1858
+ HTML regardless, which is exactly what someone who turned markup off does not
1859
+ want. Such an install now gets the same content without the tags.
1860
+
1861
+ ## 1.8.0 — 2026-10-25
1862
+
1863
+ The settings the desktop app exposes as panels, and the reasoning it streams as a
1864
+ section, reach the chat — each as one edited message instead of a stream of
1865
+ notifications.
1866
+
1867
+ - **`/agents set model|depth|filter <value> @<tool>`** writes a delegation row in
1868
+ the profile patch: which model a child runs, its `maxDepth`, its tool filter
1869
+ (`deny:` list). A single row needs `@tool`, because a bare list of names is
1870
+ ambiguous with a filter list. An unknown tool is named back with the list of
1871
+ real rows instead of a wrong "depth" error. The patch is written atomically
1872
+ with a rolling `.bak`: it decides every later turn, so a half-written file must
1873
+ never exist.
1874
+ - **`/effort`** reads the ids the route itself declares (`reasoningEfforts` in
1875
+ the model catalog), offers exactly those, shows the current one and writes or
1876
+ removes `reasoningEffort`. A value the route does not declare is refused; a
1877
+ route that declares nothing gets the value written with an explicit warning
1878
+ that nobody promised it works.
1879
+ - **`/permissions`** lists the sandbox/approval presets in the profile, marks the
1880
+ current one and switches it. On an app-managed profile the table is owned by
1881
+ the bundle and the card says so instead of inventing a config row.
1882
+ - **`/preset`** lists the agent presets a profile declares and switches the
1883
+ pinned registry default; a profile that declares none is described, not
1884
+ guessed at.
1885
+ - **`/plan`** reads the session's plan projection: whether plan mode is on, what
1886
+ it is waiting for, and how to ask for a plan. It is read-only on purpose —
1887
+ headless cannot dispatch a mode change, and saying "off" when the truth is
1888
+ "unknown" would be worse than saying "unknown".
1889
+ - **`/jobs`** is the jobs panel for this bridge: running turns with their topic,
1890
+ the queue depth and the parallelism cap. DSH jobs live inside the per-turn
1891
+ child process and die with it, so a panel that claimed otherwise would lie.
1892
+ - **`/remind`** adds, lists, deletes and clears reminders (`+15m`, `+2h`, `+1d`,
1893
+ `HH:MM`). The scheduler is the bridge's own: the headless host exits after each
1894
+ turn, so a DSH schedule would never fire. Entries are per chat, capped at 20,
1895
+ and delivery is a plain message in the topic that asked.
1896
+ - **Live reasoning**: the CLI's `thinking` events are folded into the turn's
1897
+ progress message as a native `<blockquote expandable>` — collapsed it is one
1898
+ line, tapped it shows the whole trail, and it stays with the turn after the
1899
+ turn ends. Edits are throttled, text is escaped, long reasoning keeps its tail
1900
+ with a "beginning hidden" note, and a rejected markup falls back to plain text
1901
+ rather than freezing the panel.
1902
+ - `profile-edit.mjs` (indent-aware YAML row editor, `.bak`, atomic rename),
1903
+ `reminders.mjs` (parser + schedule helpers) and `panel.mjs` (the turn view) are
1904
+ separate modules with their own tests; the panel was split out because
1905
+ importing `bridge.mjs` claims the pid file and exits when a bridge is running.
1906
+ - Six new commands in the menu and `/help` in all three languages; i18n parity is
1907
+ enforced by a test, not by review.
1908
+
1909
+ ## 1.7.7 — 2026-10-25
1910
+
1911
+ - `/agents` answers the question the desktop sidebar answers: who can this
1912
+ session delegate to, on which model, how deep, with which tool filter, which
1913
+ routes a child may pick, and which children this session actually started
1914
+ (read from the catalog the delegation tools themselves publish). `/agents <id>`
1915
+ opens one child with its label, mode and the `/resume` line that continues it
1916
+ here.
1917
+ - `/profile show [name]` is the profile card: model, rows in its patch, disabled
1918
+ rows, bundle count, delegation tools, child routes, and the file that owns them
1919
+ all. `/profile` alone says which profile you are on; this says whether the one
1920
+ you are about to switch to is the one you want.
1921
+ - `agents.mjs` reads the delegation rows out of a profile patch (the bridge
1922
+ already edited those patches by hand for `/model` and plugin toggles). It is
1923
+ parse-only and tested, because a wrong indent assumption here reports the wrong
1924
+ model to a person setting a cost budget.
1925
+ - The command menu and `/help` carry `/agents` in all three languages.
1926
+
1927
+ ## 1.7.6 — 2026-10-25
1928
+
1929
+ - The status card names the session ("Название: Отвечай по игре сюда"). The
1930
+ bridge only knew the titles it had set itself, so a session resumed from the
1931
+ desktop, or seeded before the title was written, showed none — while
1932
+ `/sessions` had it all along. It now falls back to DSH's projection cache.
1933
+
1934
+ ## 1.7.5 — 2026-10-25
1935
+
1936
+ - `/version` adds one line when the modules on disk are newer than the running
1937
+ process: the version number comes from `package.json`, the answers come from
1938
+ the code loaded at start, and after `sync-runtime.mjs` or `/update` those two
1939
+ disagree until `/restart confirm`. Say it instead of letting a fresh number
1940
+ read as live code.
1941
+ - The `/logs` menu entry mentions `/logs file`.
1942
+
1943
+ ## 1.7.4 — 2026-10-25
1944
+
1945
+ - `/logs file` sends `bridge.log` as a document instead of pasting a slice of it:
1946
+ when the question is "what exactly happened", the chat is the wrong container.
1947
+ - `/logs errors` shows the bridge's own faults. It used to match every tool
1948
+ result line, so a routine non-zero exit buried the four real failures under
1949
+ four hundred lines of work the agent had already reported.
1950
+ - A pending update that makes the replay throw is now logged and dropped. Before,
1951
+ it stayed in the journal forever: the bridge replayed it, died, was restarted,
1952
+ replayed it again — a crash loop every ninety seconds with nothing in the chat.
1953
+ - `/logs` filtering moved into `filterLogLines()` and is covered by tests
1954
+ (seven new).
1955
+
1956
+ ## 1.7.3 — 2026-10-25
1957
+
1958
+ - Report headers carry one glyph each (📊 status, 🩺 diagnostics, 🗂 sessions,
1959
+ 📦 versions, 🧠 reasoning), so a chat full of answers can be scanned the way a
1960
+ dashboard is.
1961
+ - `/status` says whether the agent is working right now ("Агент работает: нет
1962
+ (0 ходов)") and prints the full session id, because that id is what people copy
1963
+ into `/resume`.
1964
+
1965
+ ## 1.7.2 — 2026-10-25
1966
+
1967
+ - A voice note or photo that arrived while a turn was running, but finished
1968
+ downloading after that turn ended, is now delivered as a turn of its own. It
1969
+ used to be written as a steer job and then sit in the directory until the
1970
+ watcher noticed ninety seconds later — long enough to look like the message
1971
+ was swallowed. The prepared text (transcript, file path, caption) is already
1972
+ the whole request, so it runs directly instead of re-transcribing the audio.
1973
+ - An album flush no longer decides "steer or turn" from the state at upload
1974
+ time: the buffer holds photos for up to four seconds, and a turn that ended in
1975
+ that window must still get an answer.
1976
+ - The mid-turn photo disclaimer ("only the path is attached") is left out when
1977
+ the text ends up as a fresh turn, where the image is readable after all.
1978
+
1979
+ ## 1.7.1 — 2026-10-25
1980
+
1981
+ - `/status` is a card now, not a key dump: session title, when it was created and
1982
+ last active, how full the context is (`Context: 78,450 / 1,000,000 (8%)`, with
1983
+ the window taken from `contextWindow` in `config.json`), how many tokens the
1984
+ session billed over its whole life, how many turns it holds, and whether the
1985
+ working notes are on. The numbers come from the session log itself
1986
+ (`sessionStats` in `thoughts.mjs`), so they are right even for a session this
1987
+ process does not hold.
1988
+ - `/thoughts` no longer dead-ends on a turn that planned nothing (a one-word "ok"
1989
+ has no reasoning part): it says so and shows what that turn answered instead.
1990
+ - `/cd` with nothing bound printed an empty line where the directory belongs. It
1991
+ now says the bridge default is in use, or that nothing is set at all, and
1992
+ `/doctor` marks a default directory as inherited rather than silently shown.
1993
+ - `sync-runtime.mjs`: one command copies the repo modules over the live bridge
1994
+ directory with a timestamped backup. Several fixes in this release had landed
1995
+ in the repo while the running copy kept the old file, so `npm test` passed and
1996
+ the bot still answered from stale code.
1997
+
1998
+ ## 1.7.0 — 2026-10-25
1999
+
2000
+ - A command typed during a long turn is answered at once, not after it. The
2001
+ immediate set was a list of six "safe" reports; everything else queued, so
2002
+ `/model`, `/goal` or a mistyped command sat in the queue behind a turn that
2003
+ could run for twenty minutes — which is indistinguishable from a dead bot.
2004
+ The rule is inverted: only `/new`, `/resume`, `/seed`, `/send` and plugin
2005
+ mutations queue, because those replace or feed the session the running turn is
2006
+ writing. The list lives in `immediate.mjs`, and a test walks `CONTROL_COMMANDS`
2007
+ so a new command is never silently left in the queue.
2008
+ - `/thoughts` shows what the model was thinking in the last turn, read straight
2009
+ from the session log (`thoughts.mjs` walks the zstd frames of
2010
+ `session.v4.jsonl.zstd` backwards to the last `turn/start`), so it works for any
2011
+ session, even one this process no longer holds. The reply deletes itself after
2012
+ a few minutes; so does an unknown command's menu.
2013
+ - `/version` reports the bridge version, the latest on npm and where the
2014
+ bridge lives. `/update` says whether a newer release exists; `/update confirm`
2015
+ installs it into the bridge directory (fetched into a temp dir and copied over,
2016
+ with the previous files in `update-backup-*`). Until `/restart confirm` the old
2017
+ code keeps serving, so a bad release cannot take the chat down by itself.
2018
+
2019
+ ## 1.6.0 — 2026-10-25
2020
+
2021
+ - A photo is read by the turn's own model, not by a second, billed one. The
2022
+ automatic switch to `vision.patch` dated from a text-only default model; a
2023
+ plain `headless` turn read the Chinese captions off a 720×1560 screenshot and
2024
+ answered with them verbatim. The overlay is now opt-in (`vision.enabled`) and
2025
+ mid-turn photos are honestly described as "here is the path" instead of "the
2026
+ model cannot see it".
2027
+ - `/models` is gone from the menu: bare `/model` lists the models and
2028
+ `/model <id>` switches, the way every other command works. `/models` still
2029
+ answers as an alias so old habits do not break. `/app` and `/restart` now say
2030
+ which one restarts the desktop app and which one restarts the bridge.
2031
+ - The package ships `profiles.mjs` and `cli-args.mjs`. Both are imported by
2032
+ `bridge.mjs`, and `files` in `package.json` did not list them: an install from
2033
+ npm would have died with `ERR_MODULE_NOT_FOUND` on the first turn.
2034
+ - Model overlays that are materialised as profiles no longer show up in
2035
+ `/profile`, and they keep the base profile's plugins through a `node_modules`
2036
+ junction instead of booting a bare host without the steer inbox.
2037
+ - Photo turns work again, and so does the fallback-model path: both passed
2038
+ `--patch` to `dsh` *after* `--json`, and the launcher hands everything from
2039
+ the first flag it does not know to the app, which rejected it with
2040
+ `unknown option '--patch'` and exited 1 in about five seconds ("CLI exited
2041
+ with code 1 and no output"). Launcher options now come first; `turnArgs()` in
2042
+ `cli-args.mjs` builds the argument list and a test pins the order.
2043
+ - A button press answers in the topic's language. A callback carries no message,
2044
+ so `resolveLang` only had the config default there and answered in English
2045
+ under a Russian card ("Send /doctor — it collects the full report."). The
2046
+ first message in a topic now teaches the bridge what it speaks, the choice is
2047
+ kept in `state.lang`, and an explicit `/lang` still wins.
2048
+ - The whole surface speaks en / ru / zh, not just the menu and the greeting:
2049
+ every `/command` reply in `control.mjs` (98 `ctrl.*` keys) and every runtime
2050
+ line in `bridge.mjs` — progress steps, the fallback-model notice, the failure
2051
+ explainer, approval buttons and callback answers (38 `bridge.*` keys). The
2052
+ Russian wording is unchanged; English and Chinese are new. A `/logs errors`
2053
+ filter keeps its Russian alternatives because it matches the bridge's own log
2054
+ text, not user output.
2055
+ - An album is one hand-over, not ten. Telegram sends one update per file with a
2056
+ shared `media_group_id`; `albums.mjs` collects the group (1.2 s quiet, 4 s
2057
+ ceiling) and delivers it as one steer into a running turn or one turn when the
2058
+ topic is idle. Four tests cover ordering, separate albums, the ceiling and a
2059
+ single-item group.
2060
+ - A turn stopped by the time ceiling is now a pause, not a dead end: the status
2061
+ message shows `⏱` with the localised explanation and a **Continue** button,
2062
+ which enqueues a continuation prompt in the same session instead of re-running
2063
+ the whole task from scratch (that is what Retry does). `runTurnLive` reports
2064
+ `reason: 'timeout'` so the button choice is made on a fact, not on parsing an
2065
+ error string.
2066
+ - Attachments are a first-class part of a running turn, not just typed text.
2067
+ - A caption no longer downgrades a file to a text-only message. `handleMessage`
2068
+ only called the media helper when the message had no text, so every
2069
+ captioned document was silently dropped — idle and mid-turn alike.
2070
+ - Small text files (`.md`, `.json`, `.csv`, `.py`, `.log`, source, config, up
2071
+ to 60 KB) are pasted into the prompt as content, so a steer can use them
2072
+ without a tool round-trip; bigger or binary files keep the path.
2073
+ - Audio sent as a document is transcribed like a voice note; video, video
2074
+ notes and animations are saved under `inbox/` and handed over by path.
2075
+ - A photo steered mid-turn now carries one honest line: a running turn cannot
2076
+ apply the vision overlay, so the model says it cannot see the image instead
2077
+ of quietly ignoring it.
2078
+ - `inlineText()` lives in `media-text.mjs` with six tests.
2079
+ - `/reasoning on|off` controls the `💭` decision trail per topic. On by default:
2080
+ each turn carries one instruction to leave a line at each decision point. Off
2081
+ removes both the instruction and the display, so nothing is written either.
2082
+ New i18n keys (`prompt.reasoning`, `msg.reasoning*`) in en/ru/zh.
2083
+ - `/profile` ports the app's profile switcher into a topic: list, switch
2084
+ (`/profile research`), create from a shipped template
2085
+ (`/profile new research from web`), and return to the install default
2086
+ (`/profile default`). Turns, `/model`, `/plugins`, `/prices` and steering pick
2087
+ the topic's profile instead of the global one. A created profile is written
2088
+ with `dsh <name> --from-default-profile <template> --dump-config`, so nothing
2089
+ boots at creation time.
2090
+ - Fixed a latent bug: `handleControl` destructured `profile` from its context but
2091
+ the bridge never passed it, so every profile-aware command silently used the
2092
+ install default.
2093
+ - Steering covers attachments, not just typed text. A voice note sent while a
2094
+ turn runs is transcribed (`🎤 <transcript>` is echoed first) and the transcript
2095
+ is handed to the live agent; a photo or a file is downloaded and its local
2096
+ path is steered. Both go through the same helper an idle turn uses, so the
2097
+ agent sees the same text either way.
2098
+ - The voice/photo/document conversion moved out of `handleMessage` into
2099
+ `mediaPrompt()`, which returns `{ text, extraArgs }`. A steer cannot apply the
2100
+ vision patch to a turn that is already running, so a photo steered mid-turn
2101
+ carries only its path.
2102
+
2103
+ ## 2026-10-25 — v1.5.4
2104
+
2105
+ - Portability: no command depends on one provider any more.
2106
+ - `/prices` reads the public models.dev catalog; a provider page is optional
2107
+ and configured with `pricesUrl` (default `""`). The vendor was previously
2108
+ hardcoded.
2109
+ - Provider keys passed to a turn are declared per install with
2110
+ `"providerKeys": ["NAME"]` and read from `~/.dsh/.credentials.yaml`. The
2111
+ four fixed provider names are gone, so a fresh install sends no foreign keys.
2112
+ - `config.example.json` ships with `fallbackModels: []` and an empty vision
2113
+ patch instead of one vendor's free models and vision model.
2114
+ - README: the command menu is installed by `init`/`setup`, not refreshed by a
2115
+ plain restart; run `dsh-tg menu` after upgrading.
2116
+
2117
+ ## 2026-10-24 — v1.5.3
2118
+
2119
+ - `say.mjs --thought` no longer depends on environment variables: tool shells
2120
+ do not inherit the bridge's env, so it falls back to the newest active
2121
+ thought file and needs no chat/thread ids.
2122
+
2123
+ ## 2026-10-24 — v1.5.2
2124
+
2125
+ - Fix a crash window in v1.5.1: the thought poller could fire before the
2126
+ progress scheduler was initialized. `schedule` is now a hoisted function.
2127
+
2128
+ ## 2026-10-24 — v1.5.1
2129
+
2130
+ - Live thoughts: `say.mjs --thought "..."` appends a note to the turn's thought
2131
+ file, and the progress message shows the last two as `💭` lines. No extra
2132
+ Telegram messages, and chat/thread come from the turn environment.
2133
+
2134
+ ## 2026-10-24 — v1.5.0
2135
+
2136
+ - Desktop-style goals per topic: `/goal <text>`, `/goal`, `/goal done`,
2137
+ `/goal clear`; `/task <text>`, `/task done <n>`, `/task rm <n>`.
2138
+ - The goal and checklist are prepended to every turn, so they survive `/new`
2139
+ and a restart. The agent ticks tasks through `goal.mjs`; job files keep the
2140
+ bridge the only writer of `state.json`.
2141
+ - `/status` shows goal progress; the Telegram command menu lists both commands.
2142
+
2143
+ ## 2026-10-24 — v1.4.1
2144
+
2145
+ - Manifest corrected against DSH's actual compatibility gate: only
2146
+ `engines.dsh` is read, and it now carries an explicit `0.2.2-*` prerelease
2147
+ branch. The inert `dsh.manifestVersion` / `dsh.compatibility` fields are
2148
+ gone. Docs no longer present the market's display cache as the install gate.
2149
+
2150
+ ## 2026-10-24 — v1.4.0
2151
+
2152
+ - The package is now a valid DSH bundle: `engines.dsh` declares the supported
2153
+ harness range, `dsh.bundle.patch` points at `cordis.patch.yml`, and
2154
+ `plugin-bridge.mjs` starts one bridge when DSH boots and stops it on
2155
+ shutdown. A live `bridge.pid` wins, so the plugin and the scheduled task
2156
+ never poll the same bot twice.
2157
+ - Installation no longer embeds a GitHub account: `init` and `setup` run
2158
+ through `npx dsh-tg-bridge@latest`, and `install.sh` / `install.ps1`
2159
+ download the npm tarball instead of cloning a repository.
2160
+ - README: supported harness range, ecosystem links to the Chinese DSH plugin
2161
+ catalogs, corrected autostart description (one guarded task, five-minute
2162
+ tick), no raw personal URLs.
2163
+ - `docs/MARKETPLACE.md`: what the catalog checks, the exact listing entry, and
2164
+ the remaining blockers.
2165
+
2166
+ ## 2026-10-24 — v1.3.5
2167
+
2168
+ - Supervisor fix: `bridge-kick.mjs` starts the bridge with `spawn()` +
2169
+ `unref()` instead of `spawnSync()`. The blocking call kept the tick alive
2170
+ for as long as the bridge ran, held `restart.lock` for hours and left the
2171
+ supervisor skipping every tick; the bridge was then started by a second
2172
+ timer without the lock, producing Telegram 409 conflicts.
2173
+ - The restart lock now expires after 180 s even if its holder is alive, and a
2174
+ late holder only deletes a lock that still carries its own pid.
2175
+ - Healthy ticks cost one `kill(0)`; the PowerShell process scan runs only when
2176
+ the pid file is missing or stale.
2177
+ - `setup` points the scheduled task at the guarded hidden launcher
2178
+ (`wscript` + `bridge-kick.mjs`) instead of starting `node` directly, so
2179
+ starts go through the lock and no console window appears at logon.
2180
+
2181
+ ## 2026-10-24 — v1.3.4
2182
+
2183
+ - `/prices` no longer assumes one provider: it merges the provider catalog and
2184
+ models.dev, prices the model of the configured profile, answers in the
2185
+ topic language, and does not crash when both catalogs are unusable.
2186
+ - `/plugins add|remove|disable|enable` launch the DSH CLI the same way turns
2187
+ do (Electron + `cli.js`); spawning the `dsh.cmd` shim failed with `EINVAL`
2188
+ on Node 20 and newer.
2189
+ - `/status`, `/models` and `/model` read and write `config.profile` instead of
2190
+ a hardcoded `headless`; the desktop line appears only when that profile
2191
+ exists.
2192
+ - `/sessions` follows the topic's `/cd` directory.
2193
+ - Turn telemetry reports the real model instead of a hardcoded id.
2194
+ - `init` writes absolute voice and vision paths, and existing configs are
2195
+ repaired at bridge start. Relative paths silently disabled voice and photos
2196
+ after a fresh install.
2197
+
2198
+ ## 2026-10-24 — v1.3.3
2199
+
2200
+ - All documentation is now English: README, setup, cost, roadmap, release
2201
+ criteria, UX analysis, injection notes and changelog.
2202
+ - Removed personal data from the public repo: example Telegram ids are now
2203
+ `123456789`, project examples use `my-app`, the internal status log and
2204
+ archive notes are out of the tree, and `LICENSE` names the contributors.
2205
+ - `allowedUserIds` defaults to an empty list, so a config-less bridge answers
2206
+ nobody instead of one hardcoded id.
2207
+ - `/cd` lists projects from `projectsDir` (default `~/Projects`) instead of a
2208
+ hardcoded Windows path.
2209
+
2210
+ ## 2026-10-24 — v1.3.2
2211
+
2212
+ - A steer message is now accepted by DSH: the bridge sends a full message with
2213
+ `id: randomUUID()` and `role: 'user'`. Without them every later turn failed
2214
+ with `event at seq N lacks an identified message` and the topic stayed dead
2215
+ until the session log was repaired by hand.
2216
+ - The session log backup lives next to the session file.
2217
+
2218
+ ## 2026-10-24 — v1.3.1
2219
+
2220
+ - A steer message is no longer lost when a turn ends before the plugin picks
2221
+ the job up. If the job is still unclaimed 90 seconds after the turn ended,
2222
+ the bridge runs it as a separate turn. Previously it expired after 10 minutes
2223
+ and the user got nothing.
2224
+ - While the turn is running the bridge rechecks once a minute and does not post
2225
+ extra messages.
2226
+
2227
+ ## 2026-10-24 — v1.3.0
2228
+
2229
+ - Steer while a turn is running: a message sent mid-turn is handed to the live
2230
+ agent on its next step (`dsh-steer-inbox`) instead of waiting in the queue.
2231
+ The agent posts a short line in the topic saying what it is doing now and
2232
+ where the addition went.
2233
+ - `say.mjs` sends that line; with `--steer <id>` it takes chat and topic from
2234
+ the job and marks it so the bridge does not duplicate the confirmation.
2235
+ - If the mark is missing after 90 seconds the bridge posts one neutral line in
2236
+ the topic language (ru/en/zh), so silence never happens.
2237
+ - Without the plugin in the profile the bridge does not write the job (it would
2238
+ expire) and behaves as before: the message joins the queue. Guarded by
2239
+ `steerAvailable()`. The plugin ships in the repo at `plugin/steer-inbox`.
2240
+ - Tests: 12, three of them new (steer job write).
2241
+
2242
+ ## 2026-10-24 — v1.2.10
2243
+
2244
+ - Informational commands no longer wait for a turn: `/plugins`, `/models`,
2245
+ `/sessions`, `/skills`, `/prices`, plus `/soul` and `/lang` without arguments,
2246
+ answer immediately during a long turn. Previously they queued and arrived
2247
+ twenty minutes later, which looked like a failure.
2248
+ - `/plugins add|remove|disable|enable` stay queued: they change the profile and
2249
+ must not run concurrently with a turn.
2250
+ - The rule lives in `immediate.mjs` and is covered by `npm test` (9 tests).
2251
+
2252
+ ## 2026-10-24 — v1.2.9
2253
+
2254
+ - Fixed a race when removing the queue notice. If a turn started exactly while
2255
+ "⏳ Previous turn is running…" was being sent, the notice stayed until the
2256
+ turn ended. The staleness rule moved to `queue-notice.mjs` and has a test
2257
+ (`npm test`, 4 cases).
2258
+ - `queue-notice.mjs` added to the npm package files.
2259
+
2260
+ ## 2026-10-24 — v1.2.8
2261
+
2262
+ - "⏳ Previous turn is running…" no longer clutters the chat. A topic now gets
2263
+ one such message instead of one per queued message, and the bridge deletes it
2264
+ once a turn picks up the user's message.
2265
+ - `send()` returns the sent message id, which is required to remove the notice.
2266
+ - If deletion fails (no rights in a group) it is logged and does not affect the
2267
+ turn.
2268
+
2269
+ ## 2026-10-24 — v1.2.7
2270
+
2271
+ - Localization extended to automatic messages: restart confirmation, the queue
2272
+ notice, the cache line and "…and N more" in progress, new-topic log,
2273
+ "Transcribing…" and the unknown-command hint now come from i18n (ru/en/zh).
2274
+ - Removed the duplicate Russian `CONTROL_COMMAND_HINT`: the hint is built from
2275
+ `help.body` in the topic language. Dead import in `bridge.mjs` dropped.
2276
+ - Dictionary audit: 53 keys × 3 languages with no missing keys or placeholder
2277
+ mismatches; the command menu holds the same 20 commands in all languages.
2278
+ - Long reports (`/status`, `/sessions`, `/models`, `/plugins`, `/prices`) are
2279
+ still Russian — a planned next step.
2280
+
2281
+ ## 2026-10-24 — documentation
2282
+
2283
+ - **docs/TELEGRAM-SETUP.md**: what must be enabled in Telegram for the bridge
2284
+ to behave as designed — privacy mode, topics, bot rights, `allowedUserIds`,
2285
+ a single instance, a one-minute check, and what does not need configuring.
2286
+ - README: short "Telegram bot setup" block linking to the document.
2287
+
2288
+ ## 2026-10-24 — v1.2.6
2289
+
2290
+ - The progress message no longer has "Stop" and "Logs" buttons: `/stop` and
2291
+ `/logs` work during a turn now, so buttons would only duplicate them. The
2292
+ "Retry", "Doctor" and permission-confirmation buttons remain.
2293
+ - Handlers for the old buttons are kept so pressing a button in an already sent
2294
+ message does not fail silently.
2295
+
2296
+ ## 2026-10-24 — v1.2.5
2297
+
2298
+ - No more silence after `/restart confirm`: the old process wrote "Restarting
2299
+ the bridge…", exited and said nothing. It now leaves `restart-notice.json`
2300
+ with chat and topic, and the new process replies there first with
2301
+ "✅ Bridge restarted — online (pid N)". If the replacement never starts there
2302
+ is no reply, which is the honest signal.
2303
+ - The notice is deleted right after sending and ignored if older than 10 minutes.
2304
+
2305
+ ## 2026-10-24 — v1.2.3
2306
+
2307
+ - `/stop` now stops a turn instead of waiting for it. Commands used the topic
2308
+ queue, so `/stop` sent during a 26-minute turn reached the handler when there
2309
+ was nothing left to stop. Six commands — `stop`, `logs`, `status`, `help`,
2310
+ `doctor`, `restart` (including glued forms) — run off-queue and do not get a
2311
+ "message queued" notice.
2312
+ - Commands that change session state (`/new`, `/model`, `/lang`) still go
2313
+ through the queue.
2314
+
2315
+ ## 2026-10-24 — v1.2.2
2316
+
2317
+ - The queue no longer looks like a hang: if a turn is already running, the
2318
+ notice states how long ("running for 24 min") and mentions `/stop`. It now
2319
+ arrives after 30 s instead of 45 s.
2320
+ - Hard turn limit raised from none to 40 minutes (`turnTimeoutMs`), so a hung
2321
+ child process cannot hold a topic forever; the 2-minute inactivity watchdog
2322
+ remains.
2323
+
2324
+ ## 2026-10-24 — v1.2.1
2325
+
2326
+ - Menu and `/plugins` changes are now in the repository. Edits that merged
2327
+ `/plugin` into `/plugins` existed only in the working directory
2328
+ `~/.dsh/tg-bridge`, while npm still shipped the old version. `control.mjs`
2329
+ and `bot-menu.mjs` were moved into the repo: 21 commands in the dispatcher
2330
+ (alias `/plugin`), 20 in the menu, `/plugins` described as
2331
+ "List and manage: add/remove/disable/enable".
2332
+ - `setup` code sync can no longer revert these changes: the repository is the
2333
+ source of truth.
2334
+
2335
+ ## 2026-10-24 — v1.2.0
2336
+
2337
+ - One-command install: `dsh-tg init --token <t> --user <id>` writes the token to
2338
+ `~/.dsh/.credentials.yaml` (`refs.DSH_TELEGRAM_BOT_TOKEN`), creates
2339
+ `config.json` with the user id and working directory, and checks the
2340
+ `headless` profile. Also `--cwd`, `--voice`, `--dry-run`. Other sections of
2341
+ credentials are untouched and `config.json` is never overwritten.
2342
+ - Token lookup accepts any `DSH_TELEGRAM_BOT_TOKEN*` name and the environment;
2343
+ a fresh install no longer fails with "token not found" right after `init`.
2344
+ - `cli.mjs` copies the code to `~/.dsh/tg-bridge` from any clone location, so
2345
+ `setup` no longer answers "bridge not found".
2346
+ - Autostart in `install.sh`: `launchd` (macOS) and `systemd --user` (Linux) with
2347
+ `--no-autostart`; Windows keeps the `DSH-TG-Bridge` task and `DSH-Bridge-Kick`.
2348
+ - Error codes `INSUFFICIENT_QUOTA`, `TG_CONFLICT`, `MISSING_CREDENTIAL`,
2349
+ `NO_DSH_CLI`, `NETWORK`, `SANDBOX_DENY`, `UNKNOWN_MODEL`, `EMPTY_RESPONSE`,
2350
+ `TURN_FAILED`, each with a single action at the end of the failure message.
2351
+ - `/plugins` is a single command: `add/remove/disable/enable` are forwarded to
2352
+ `/plugin`, which was removed from the Telegram menu (20 commands per language).
2353
+ - `/lang` added to `CONTROL_COMMANDS` (it was reported as unknown) and to the
2354
+ command hint.
2355
+ - `bridgePids` compares the full script path, so a second installation with its
2356
+ own `DSH_HOME` and bot is not treated as a duplicate bridge and killed.
2357
+ `DSH_HOME`/`DSH_TG_HOME` are honoured in `bridge.mjs`, `setup.mjs` and
2358
+ `bot-menu.mjs`.
2359
+
2360
+ ## 2026-10-24 — v1.1.0
2361
+
2362
+ - Three languages: `i18n.mjs` (en/ru/zh), `t()`, normalization of `zh-hans → zh`.
2363
+ - Menu in three languages: `setMyCommands` for default, `en` and `zh` (Telegram
2364
+ rejects `zh-hans`).
2365
+ - `/lang en|ru|zh`: language is stored per topic; a new user gets one from
2366
+ `language_code`, anything outside ru/zh falls back to `en`.
2367
+ - Localized: start message, progress headers, turn failure, `/cd`, `/new`,
2368
+ `/stop`, unknown-command reply and the Stop/Logs, Retry/Doctor buttons.
2369
+ - An unknown command no longer starts the model — it returns a hint.
2370
+ - Watchdog: 25 s pause and pid recheck before alerting; `requireDesktop: false`
2371
+ and the alert mentions the bridge, not the desktop app.
2372
+ - Fixed the i18n import in `bridge.mjs` (`resolveLang is not defined` left the
2373
+ message stuck).
2374
+
2375
+ ## 2026-10-23
2376
+
2377
+ - Timeouts reworked: the hard ceiling is gone (`turnTimeoutMs: 0`), silence no
2378
+ longer kills a turn, any stdout/stderr byte extends the window, and a
2379
+ heartbeat refreshes the status every 2 idle minutes.
2380
+ - Fallback chain extended to 7 models (opus-5-5, glm-5.3-flash:free,
2381
+ qwen3.6-35b-a3b, free-mimo, deepseek-v4.1-flash:free, opus-4-7, sonnet-4-7
2382
+ across the configured providers).
2383
+ - New switch triggers `AUTH`, `403`, `insufficient_user_quota`, `UNKNOWN_MODEL`,
2384
+ `MISSING_CREDENTIAL`, with a chat message when falling back to a free model.
2385
+ - Extra providers added to the headless profile; keys live in
2386
+ `.credentials.yaml` and are passed to the CLI child environment.
2387
+ Subagents run on a cheaper model than the topic.
2388
+ - Commands come from the single `CONTROL_COMMANDS` list; `/cd`, `/prices` and
2389
+ `/seed` were missing from the old hardcoded whitelist and were sent to the
2390
+ model as plain text.
2391
+ - `restart.lock` prevents `setup` and the kick from starting two pollers at once
2392
+ (the cause of 409s).
2393
+ - On a "was recorded in … not …" session error the bridge resets the session and
2394
+ starts a new one.
2395
+ - Docs: UX-ANALYSIS.md and ROADMAP.md updated.
2396
+
2397
+ ## 2026-10-22
2398
+
2399
+ - Turn journal in `pending/` with ack after send and replay on start.
2400
+ - Two-phase restart: `restart.pending` → exit(75) → supervisor; one-minute
2401
+ `DSH-Bridge-Kick`.
2402
+ - `/cd` binds a topic to a project; `setup.mjs` finds bridges by pid file (an
2403
+ elevated process has an empty cmdline).
2404
+ - Files: `/send` (sendDocument) and incoming documents saved to `inbox/`.
2405
+ - IPv4 forced (`dns` + `net`), polling backoff, error codes `TG_NET`/`TG_POLL`.
2406
+ - Sandbox: `workspace-write` with an explicit `permission` preset (the service id
2407
+ is `permission`, not `permission-presets`).
2408
+ - Progress: single status message, step list, cache stats in the final message.
2409
+ - Vision: gemini declares `input: [text, image]`; canary test with "red, 42".
2410
+ - Config and project backups to private GitHub repositories.