telecoder 0.0.0-stage → 1.3.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.
Files changed (235) hide show
  1. package/.env.example +375 -0
  2. package/CHANGELOG.md +1867 -0
  3. package/LICENSE +22 -0
  4. package/README.md +130 -2
  5. package/dist/audio/transcribe.js +41 -0
  6. package/dist/bin/mcp-server.js +363 -0
  7. package/dist/bin/tool-result.js +22 -0
  8. package/dist/bot/access/group-access.js +147 -0
  9. package/dist/bot/bot.js +573 -0
  10. package/dist/bot/command-catalog.js +263 -0
  11. package/dist/bot/deleted-threads.js +103 -0
  12. package/dist/bot/file-access.js +150 -0
  13. package/dist/bot/handlers/album.handler.js +128 -0
  14. package/dist/bot/handlers/branch.handler.js +1096 -0
  15. package/dist/bot/handlers/command/access.js +407 -0
  16. package/dist/bot/handlers/command/admin.js +803 -0
  17. package/dist/bot/handlers/command/all-view.js +33 -0
  18. package/dist/bot/handlers/command/auto-approve.js +138 -0
  19. package/dist/bot/handlers/command/background.js +37 -0
  20. package/dist/bot/handlers/command/botname.js +76 -0
  21. package/dist/bot/handlers/command/btw.js +175 -0
  22. package/dist/bot/handlers/command/cleanup.js +329 -0
  23. package/dist/bot/handlers/command/model.js +226 -0
  24. package/dist/bot/handlers/command/prefs-scope.js +362 -0
  25. package/dist/bot/handlers/command/project.js +458 -0
  26. package/dist/bot/handlers/command/resume.js +325 -0
  27. package/dist/bot/handlers/command/session.js +299 -0
  28. package/dist/bot/handlers/command/settings.js +657 -0
  29. package/dist/bot/handlers/command/shared.js +207 -0
  30. package/dist/bot/handlers/command/tasks.js +681 -0
  31. package/dist/bot/handlers/command/thread.js +128 -0
  32. package/dist/bot/handlers/command/topic-store.js +74 -0
  33. package/dist/bot/handlers/command/topic.js +27 -0
  34. package/dist/bot/handlers/command/usage.js +382 -0
  35. package/dist/bot/handlers/command-fallback.js +179 -0
  36. package/dist/bot/handlers/command.handler.js +446 -0
  37. package/dist/bot/handlers/loop.handler.js +389 -0
  38. package/dist/bot/handlers/media-fallback.js +126 -0
  39. package/dist/bot/handlers/message/replies.js +56 -0
  40. package/dist/bot/handlers/message/shared.js +95 -0
  41. package/dist/bot/handlers/message/turn-notify.js +135 -0
  42. package/dist/bot/handlers/message/turn-runner.js +56 -0
  43. package/dist/bot/handlers/message.handler.js +114 -0
  44. package/dist/bot/handlers/newbot.handler.js +230 -0
  45. package/dist/bot/handlers/photo.handler.js +286 -0
  46. package/dist/bot/handlers/prompts.handler.js +343 -0
  47. package/dist/bot/handlers/running-note.js +44 -0
  48. package/dist/bot/handlers/session-guard.js +78 -0
  49. package/dist/bot/handlers/suggestion.handler.js +84 -0
  50. package/dist/bot/handlers/tree.handler.js +480 -0
  51. package/dist/bot/handlers/view.js +41 -0
  52. package/dist/bot/handlers/voice.handler.js +147 -0
  53. package/dist/bot/kept-threads.js +51 -0
  54. package/dist/bot/middleware/admin-only.js +49 -0
  55. package/dist/bot/middleware/album-collector.js +69 -0
  56. package/dist/bot/middleware/auth.middleware.js +122 -0
  57. package/dist/bot/middleware/group-mention.middleware.js +145 -0
  58. package/dist/bot/middleware/group-role.middleware.js +75 -0
  59. package/dist/bot/middleware/message-batcher.js +87 -0
  60. package/dist/bot/middleware/queued-messages.js +1082 -0
  61. package/dist/bot/middleware/stale-filter.js +9 -0
  62. package/dist/build-info.json +8 -0
  63. package/dist/claude/ask-user-form.js +517 -0
  64. package/dist/claude/ask-user.js +363 -0
  65. package/dist/claude/auto-approve.js +225 -0
  66. package/dist/claude/auto-topic-haiku.js +143 -0
  67. package/dist/claude/available-commands.js +156 -0
  68. package/dist/claude/background-hint.js +91 -0
  69. package/dist/claude/branch-tree.js +393 -0
  70. package/dist/claude/carry-over.js +25 -0
  71. package/dist/claude/ccr-shim.js +48 -0
  72. package/dist/claude/charter-judge.js +214 -0
  73. package/dist/claude/claude-auth.js +117 -0
  74. package/dist/claude/command-parser.js +206 -0
  75. package/dist/claude/cost-overlay-scraper.js +134 -0
  76. package/dist/claude/effort-level.js +5 -0
  77. package/dist/claude/enabled-plugins.js +52 -0
  78. package/dist/claude/in-flight-tracker.js +82 -0
  79. package/dist/claude/ipc-server.js +192 -0
  80. package/dist/claude/mcp-bridge.js +481 -0
  81. package/dist/claude/memory-guard.js +400 -0
  82. package/dist/claude/message-offsets.js +88 -0
  83. package/dist/claude/modal-relay.js +817 -0
  84. package/dist/claude/model-catalog.js +102 -0
  85. package/dist/claude/monitor-relay.js +712 -0
  86. package/dist/claude/native-commands.js +40 -0
  87. package/dist/claude/pending-branches.js +93 -0
  88. package/dist/claude/pending-suggestions.js +50 -0
  89. package/dist/claude/permission-gate.js +338 -0
  90. package/dist/claude/permission-mode.js +152 -0
  91. package/dist/claude/poll-user.js +51 -0
  92. package/dist/claude/prewarm.js +70 -0
  93. package/dist/claude/project-commands.js +69 -0
  94. package/dist/claude/prompt-hold.js +124 -0
  95. package/dist/claude/prompt-suggestion-scraper.js +89 -0
  96. package/dist/claude/pty-idle-reaper.js +96 -0
  97. package/dist/claude/pty-provider.js +2499 -0
  98. package/dist/claude/pty-spawn-config.js +343 -0
  99. package/dist/claude/pty-stream.js +363 -0
  100. package/dist/claude/pty-watch.js +201 -0
  101. package/dist/claude/request-queue.js +107 -0
  102. package/dist/claude/rewind.js +111 -0
  103. package/dist/claude/scheduled-runner.js +89 -0
  104. package/dist/claude/scheduler.js +241 -0
  105. package/dist/claude/scope-guard.js +279 -0
  106. package/dist/claude/screen-marks.js +83 -0
  107. package/dist/claude/screen-render.js +96 -0
  108. package/dist/claude/secret-request.js +576 -0
  109. package/dist/claude/session-history.js +288 -0
  110. package/dist/claude/session-jsonl.js +1067 -0
  111. package/dist/claude/session-manager.js +216 -0
  112. package/dist/claude/session-move.js +70 -0
  113. package/dist/claude/session-scan.js +270 -0
  114. package/dist/claude/setup-token.js +285 -0
  115. package/dist/claude/shell-mode-gate.js +60 -0
  116. package/dist/claude/side-call-options.js +45 -0
  117. package/dist/claude/side-question.js +252 -0
  118. package/dist/claude/stage-images.js +62 -0
  119. package/dist/claude/subagent-tools.js +12 -0
  120. package/dist/claude/synthetic-ctx.js +51 -0
  121. package/dist/claude/tasks-overlay-scraper.js +217 -0
  122. package/dist/claude/thread-judge-haiku.js +88 -0
  123. package/dist/claude/tip-scraper.js +77 -0
  124. package/dist/claude/tui-modal.js +746 -0
  125. package/dist/claude/tui-state.js +456 -0
  126. package/dist/claude/turn-end.js +105 -0
  127. package/dist/claude/turn-prose.js +64 -0
  128. package/dist/claude/typed-answer.js +104 -0
  129. package/dist/claude/update-banner-relay.js +70 -0
  130. package/dist/cli/commands/doctor.js +338 -0
  131. package/dist/cli/commands/help.js +34 -0
  132. package/dist/cli/commands/init.js +126 -0
  133. package/dist/cli/commands/service.js +710 -0
  134. package/dist/cli/commands/start.js +63 -0
  135. package/dist/cli/commands/version.js +11 -0
  136. package/dist/cli/commands/watch.js +322 -0
  137. package/dist/cli/dispatch.js +84 -0
  138. package/dist/cli/init/env-file.js +99 -0
  139. package/dist/cli/init/flow.js +705 -0
  140. package/dist/cli/init/prompter.js +124 -0
  141. package/dist/cli/init/telegram.js +120 -0
  142. package/dist/cli/service/render.js +212 -0
  143. package/dist/cli.js +18 -0
  144. package/dist/config-report.js +107 -0
  145. package/dist/config.js +525 -0
  146. package/dist/index.js +443 -0
  147. package/dist/launcher.js +960 -0
  148. package/dist/node-version-check.js +27 -0
  149. package/dist/providers/ccr-health.js +119 -0
  150. package/dist/providers/ccr-introspect.js +142 -0
  151. package/dist/providers/ccr-provider.js +59 -0
  152. package/dist/providers/claude-provider.js +10 -0
  153. package/dist/providers/prefs-sync.js +121 -0
  154. package/dist/providers/project-favorites.js +74 -0
  155. package/dist/providers/provider-router.js +128 -0
  156. package/dist/providers/provider-switch.js +91 -0
  157. package/dist/providers/spawn-settings.js +45 -0
  158. package/dist/providers/types.js +8 -0
  159. package/dist/providers/user-preferences.js +322 -0
  160. package/dist/restart-when-idle.js +173 -0
  161. package/dist/startup/auto-continue.js +67 -0
  162. package/dist/startup/auto-resume.js +161 -0
  163. package/dist/startup/notices.js +120 -0
  164. package/dist/startup/shared.js +44 -0
  165. package/dist/startup/verify-token.js +31 -0
  166. package/dist/telegram/access-request.js +153 -0
  167. package/dist/telegram/action-logger.js +522 -0
  168. package/dist/telegram/admin-mention.js +107 -0
  169. package/dist/telegram/background-activity-card.js +502 -0
  170. package/dist/telegram/botname-settings.js +282 -0
  171. package/dist/telegram/button-text.js +26 -0
  172. package/dist/telegram/client-options.js +26 -0
  173. package/dist/telegram/deduplication.js +33 -0
  174. package/dist/telegram/entities.js +295 -0
  175. package/dist/telegram/force-reply-tracker.js +96 -0
  176. package/dist/telegram/lettered-options.js +87 -0
  177. package/dist/telegram/markdown.js +362 -0
  178. package/dist/telegram/message-sender.js +1019 -0
  179. package/dist/telegram/prompt-label.js +148 -0
  180. package/dist/telegram/prompt-suggestion.js +54 -0
  181. package/dist/telegram/send.js +123 -0
  182. package/dist/telegram/streaming-turn.js +103 -0
  183. package/dist/telegram/suggestions-settings.js +30 -0
  184. package/dist/telegram/table-lists.js +56 -0
  185. package/dist/telegram/task-list.js +367 -0
  186. package/dist/telegram/task-tracker.js +128 -0
  187. package/dist/telegram/terminal-renderer.js +667 -0
  188. package/dist/telegram/thread-titles.js +262 -0
  189. package/dist/telegram/threads-setup.js +117 -0
  190. package/dist/utils/admins.js +143 -0
  191. package/dist/utils/agent-timer.js +55 -0
  192. package/dist/utils/atomic-write.js +24 -0
  193. package/dist/utils/bot-icon.js +248 -0
  194. package/dist/utils/bot-token.js +77 -0
  195. package/dist/utils/bounded-map.js +55 -0
  196. package/dist/utils/build-info.js +57 -0
  197. package/dist/utils/caffeinate.js +53 -0
  198. package/dist/utils/claude-env.js +53 -0
  199. package/dist/utils/claude-version.js +48 -0
  200. package/dist/utils/config-home.js +62 -0
  201. package/dist/utils/download.js +137 -0
  202. package/dist/utils/exit-codes.js +59 -0
  203. package/dist/utils/file-type.js +149 -0
  204. package/dist/utils/format.js +78 -0
  205. package/dist/utils/home-project.js +30 -0
  206. package/dist/utils/host-stall.js +51 -0
  207. package/dist/utils/id-list.js +44 -0
  208. package/dist/utils/idle-restart.js +92 -0
  209. package/dist/utils/install-mode.js +63 -0
  210. package/dist/utils/instance-config.js +148 -0
  211. package/dist/utils/instances.js +95 -0
  212. package/dist/utils/json-store.js +140 -0
  213. package/dist/utils/keyed-settings.js +62 -0
  214. package/dist/utils/legacy-env.js +35 -0
  215. package/dist/utils/memory-pressure.js +60 -0
  216. package/dist/utils/npm-version.js +134 -0
  217. package/dist/utils/prefs-relay.js +107 -0
  218. package/dist/utils/proc-children.js +102 -0
  219. package/dist/utils/resolve-bin.js +86 -0
  220. package/dist/utils/resolve-claude-bin.js +52 -0
  221. package/dist/utils/respawn-backoff.js +28 -0
  222. package/dist/utils/sanitize.js +91 -0
  223. package/dist/utils/session-key.js +37 -0
  224. package/dist/utils/stale-launcher.js +109 -0
  225. package/dist/utils/state-dir-migration.js +92 -0
  226. package/dist/utils/systemd.js +126 -0
  227. package/dist/utils/telegram-proxy.js +72 -0
  228. package/dist/utils/uploads-dir.js +27 -0
  229. package/dist/utils/user-roster.js +275 -0
  230. package/dist/utils/verbosity.js +118 -0
  231. package/dist/utils/version-check.js +166 -0
  232. package/dist/utils/workspace-guard.js +44 -0
  233. package/dist/worker-restart.js +141 -0
  234. package/instances.json.example +41 -0
  235. package/package.json +75 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,1867 @@
1
+ # Changelog
2
+
3
+ Notable changes per release. Each entry links the commit that carries the full
4
+ reasoning — the commit bodies are the long form, this is the index.
5
+
6
+ ## Unreleased
7
+
8
+ ## [1.3.0] — 2026-12-01
9
+
10
+ Upgrading from 1.2.0: several commands have new names, listed under *Changed*,
11
+ and the old names are gone. Every chat now runs Claude Code in a terminal, so
12
+ the SDK settings no longer do anything. A `.env` that still sets a removed
13
+ setting gets a line at startup saying it can go.
14
+
15
+ ### Added
16
+
17
+ - **`/ctrlb` is Claude Code's Ctrl+B.** In a terminal, Ctrl+B moves the shell
18
+ command or subagent a turn is waiting on to the background, so the turn
19
+ carries on while it runs. A chat had no such key: a slow test run held the
20
+ turn until it ended or ran into the ten-minute cap. `/ctrlb` presses the
21
+ key. The status line offers it for as long as Claude Code's own screen
22
+ shows *ctrl+b to run in background*, and the bot presses only then, and the
23
+ key the screen names. The command then shows in `/tasks` like any other
24
+ background task, dated from when it started.
25
+
26
+ - **Dialogs with tabs can be used.** Claude Code's `/permissions` keeps its
27
+ allow, ask and deny rules on a tab each, and `/status`, `/config` and
28
+ `/usage` are tabs of one settings dialog. The relay had no way along the
29
+ tabs, and `/permissions` opened with a single button, Esc. Each tab now has
30
+ a button. Which tab is open is drawn in colour only, so the bot reads how
31
+ the screen is drawn as well as what it says. The footer's `↓ to select`,
32
+ the way from the tabs into the list, is a button too. A tab that names no
33
+ keys at all, like Stats, is read as a dialog by its tabs, which are the way
34
+ back out of it.
35
+
36
+ - **`/cc <command>` runs Claude Code's own command** where the bot has one of
37
+ the same name. The bot's `/model` and `/usage` answer first, and nothing
38
+ could reach Claude Code's: `/cc model`, `/cc usage`. `/projectcommands`
39
+ points to it under the names it shadows.
40
+
41
+ - **`/rewind` works from the chat.** Claude Code's own command to go back to
42
+ an earlier prompt and restore the conversation, the files Claude edited
43
+ since, or both. Its dialog reached the chat before, but could not be used:
44
+ each prompt in its list takes two lines and was read as two rows, so the
45
+ walk to a prompt ended on another one and was refused, and its fifth choice
46
+ was never offered. Both screens are read as drawn now. The bot says what was
47
+ restored, since the command prints nothing, and takes the prompt Claude Code
48
+ hands back out of the input box, where the next message would have been
49
+ typed onto the end of it. Turns taken back no longer show in `/recap` and
50
+ `/prompts`. `/rewind` is in the `/` menu.
51
+
52
+ - **A dialog that takes text takes a message.** The relay only had buttons,
53
+ so `/add-dir` without a path, `/export`'s file name and the search in
54
+ `/config` could be opened and not used. A message sent while such a dialog
55
+ is open is typed into its field, in place of what the field holds, and the
56
+ dialog comes back as it then stands for a tap to commit. At a permission
57
+ prompt a message is the note that goes with No, Claude Code's *No, and tell
58
+ Claude what to do differently*. It never goes to Yes.
59
+
60
+ - **A list that shows a window of its rows can be scrolled.** `/rewind` draws
61
+ five of its six choices and marks the edge with a bare arrow. Such a list
62
+ now gets its edge row and a scroll button that brings in the next one.
63
+
64
+ - **Files sent together reach Claude as one message.** Telegram delivers
65
+ files picked together one message each, with the caption on just one, so
66
+ each became a turn of its own: an answer per file, none knowing about the
67
+ others, and all but one without the caption. The bot now gathers the parts
68
+ of an album and sends them as one prompt, images attached and the rest named
69
+ for Read. A part it can't take, such as a video, is listed and the rest
70
+ still go.
71
+
72
+ - **`telecoder watch` shows the live Claude Code screen behind a chat.** Each
73
+ chat has a real `claude` in a pty, whose screen existed only inside the
74
+ bot. Now the bot serves it read-only on an owner-only socket in
75
+ `~/.telecoder/watch`, and `telecoder watch` shows it in your terminal as it
76
+ changes. `--list` lists the sessions; `PTY_WATCH=false` turns it off.
77
+
78
+ - **Claude Code starts when the conversation is chosen, not on the first
79
+ message.** The first message after `/project`, `/clear` or `/resume` used to
80
+ wait for Claude Code to start, a few seconds and more for a long resumed
81
+ conversation. The bot now starts it as those commands finish, and the
82
+ message finds it ready or waits out only what is left. When memory is under
83
+ the guard's floor the early start is skipped: nothing is ended for it and
84
+ nobody is asked. A new session id is recorded with the first message, as
85
+ before, so an early start nobody uses leaves nothing behind and is ended by
86
+ the idle timeout. `PREWARM_CLAUDE=false` turns it off.
87
+
88
+ - **A new bot gets the TeleCoder icon.** `telecoder init` gives it to a bot
89
+ that has no profile picture yet, without asking, and a bot made with
90
+ `/newbot` starts with it. A plain letter on a coloured disc is hard to tell
91
+ from the next bot's. `--icon` replaces a picture the bot has; `--no-icon`
92
+ leaves it alone. A picture that's already there is never replaced unasked.
93
+
94
+ - **Your own Claude Code setup comes along on a bot without guests.** Claude
95
+ in Telegram knew the project and what the bot handed it, and nothing of the
96
+ account it runs as: no `~/.claude` (`CLAUDE.md`, skills, commands, agents,
97
+ `settings.json`), none of your MCP servers or a project's `.mcp.json`, no
98
+ plugin servers and no claude.ai connectors. `CLAUDE_PLUGINS` and
99
+ `EXTRA_MCP_CONFIG` brought single pieces back. Now the Claude of your
100
+ terminal is the one in Telegram. On a bot with guests the setup stays out
101
+ as before, since a guest would otherwise work with your instructions and
102
+ with connectors signed in as you; admitting a first guest takes it out from
103
+ each conversation's next message. `CLAUDE_USER_SETUP` is `auto` by default,
104
+ and `on` or `off` force it. `CLAUDE_PLUGINS` and `EXTRA_MCP_CONFIG` stay,
105
+ for a bot where the setup stays out or for something only the bot should
106
+ have.
107
+
108
+ - **`/model` and `/effort` reach one thread, new threads, a whole chat, or
109
+ everywhere.** A `/model` in a thread pinned only that thread, and "apply to
110
+ all bots" set a chat-wide value that every thread with a pin of its own kept
111
+ shadowing, so switching back meant `/model opus` in each of them. A choice
112
+ now has four levels, as a word at the end or a button on the confirmation:
113
+ nothing for this thread only, `new` for this thread and new threads in the
114
+ chat, `chat` for every thread in the chat, and `all` for every chat on every
115
+ bot (admins only). A wider level clears the narrower choices under it. A
116
+ thread with a conversation open switches on its next message, and one in
117
+ the middle of a reply when the reply is done. A bare `/model fable` sets
118
+ only the thread it is typed in, in the All view too, where Telegram opens a
119
+ new thread for it. The picker and `/status` say where the value comes from.
120
+
121
+ - **A set-aside message can be sent sooner.** The notice under a message set
122
+ aside with `/later`, or with Ask me after, had only Take back, so changing
123
+ your mind before the question came meant taking it back and typing it again.
124
+ It now has ⚡ Interrupt & send while a turn runs, which stops the turn and
125
+ sends the message in its place as `/steer` does, and 📤 Send now while
126
+ nothing runs.
127
+
128
+ - **A memory guard before a message starts a new `claude`.** Every chat keeps
129
+ its own `claude`, a few hundred MB each, and on a machine already in swap
130
+ the one that starts next can take it down. A message that would start a new
131
+ one now reads the kernel's available memory first. Under the floor
132
+ (`MEMORY_GUARD_MIN_AVAILABLE_MB`), claudes idle for five minutes
133
+ (`MEMORY_GUARD_REAP_IDLE_MS`) are ended, which costs their chats a few
134
+ seconds of resume. Only when that still leaves too little is the chat
135
+ asked: start anyway, end the longest-idle claude first, or drop the
136
+ message. A message to a running claude never asks, and `0` turns the guard
137
+ off. `/botstatus` shows the machine's available memory and swap, and how
138
+ many claudes are running.
139
+
140
+ - **`/commands <words>` searches the commands, and a mistyped command gets
141
+ "did you mean" buttons.** Telegram's `/` menu only matches the start of a
142
+ name, so `/kill` found nothing and neither did `/task`. `/commands kill`
143
+ searches names and descriptions. A slash command the bot doesn't have used
144
+ to go to Claude as a prompt; now, when it is a typo or a prefix of a bot
145
+ command and Claude Code's own command list doesn't know it either, the
146
+ likely commands come back as buttons, and a tap runs the one you meant with
147
+ the arguments as typed.
148
+
149
+ - **`/tasks` shows a background task's output.** Claude Code's `/tasks` lets
150
+ you open a task and read what it has printed so far; TeleCoder's showed
151
+ only its details. A task now has 📄 Output, which opens that view in the
152
+ chat's Claude Code and relays its status, runtime, command and output. The
153
+ 🔎 Ask claude list has a button per row that does the same, so work the bot
154
+ never saw start (a shell Claude backgrounded itself, anything from before a
155
+ restart) can be read too.
156
+
157
+ - **Several questions arrive as one form.** Each question Claude asked through
158
+ `telecoder_ask_user` was a message of its own, and a tap on it was final.
159
+ Related questions (two to four) now come as one message, as Claude Code's
160
+ own question dialog does it: a tap records the answer and moves to the next
161
+ question, a numbered row goes back to any of them to change it, and nothing
162
+ reaches Claude until you tap Submit.
163
+
164
+ - **`/deletethread`, and threads deleted by hand are let go.** Telegram tells
165
+ a bot nothing when a thread is deleted, so a deleted thread's session lived
166
+ on: its `claude` ran until the next restart, and a turn still working sent
167
+ its replies nowhere. `/deletethread` deletes the thread it's sent in with
168
+ all its messages and ends its session, mid-turn too; the conversation stays
169
+ in `/resume`. A thread deleted from Telegram's own menu is let go the first
170
+ time a send into it fails. One deleted while idle sends nothing, so an idle
171
+ `claude` is now ended after an hour (`CLAUDE_PTY_IDLE_TIMEOUT_MS`) and
172
+ resumes on the next message, never while a turn, background task or
173
+ background shell runs.
174
+
175
+ ### Changed
176
+
177
+ - **Claude Code's interactive-only commands get past the typo fallback.**
178
+ The fallback took a name for a typo when Claude Code's headless command list
179
+ lacked it, and that list leaves out interactive-only commands and every
180
+ alias: `/export` got "did you mean /effort", `/hooks` `/loops`, `/theme`
181
+ `/tree`, `/skills` `/shells`, `/rc` `/cc`. The bot now knows Claude Code's
182
+ own command names and lets them through, and the "did you mean" reply has a
183
+ last button that sends the command to Claude Code as typed, for a name it
184
+ doesn't know yet.
185
+
186
+ - **Claude Code's `/cd` works from the chat, and the bot follows it.** `/cd`
187
+ moves the conversation to another directory, transcript and all. The bot
188
+ kept the old one: the typo fallback took `/cd` for `/cc`, and after a move
189
+ `/branch`, `/history`, `/tree` and `/resend` read the transcript where it
190
+ no longer was, and the next restart of Claude resumed in the old directory.
191
+ Now `/cd` reaches Claude Code, and its CwdChanged hook moves the bot's
192
+ record of the conversation, the live Claude's, the background relay's and
193
+ the thread's name with it, once the transcript is in its new place.
194
+
195
+ - **`/schedule` is `/loop`, Claude Code's name for it**, and reads its input the
196
+ way Claude Code's `/loop` does: `/loop 5m <prompt>` or `/loop <prompt> every
197
+ 20m`, run once at once and then on the interval. Times of day and raw cron
198
+ still work and wait until due. `/loops` lists the loops with a button to
199
+ stop each, in place of `/schedules` and `/unschedule`; `/proactive` is
200
+ Claude Code's alias. A `/loop` without an interval, where Claude Code lets
201
+ Claude pick when to run again, says how to give one: that runs on a tool
202
+ the bot blocks, since its runs fire inside `claude` and never reach the
203
+ chat.
204
+
205
+ - **`/clear` starts the new conversation at once**, as Claude Code's does,
206
+ instead of asking first and warning that it can't be undone: the previous
207
+ conversation stays in `/resume`, and the ↩️ button under the reply goes back
208
+ to it. `/clear <name>` starts it under that topic, as Claude Code's
209
+ `/clear <name>` names the new session, and `/branch <name>` names a branch
210
+ the same way. `-y` is accepted and ignored.
211
+
212
+ - **Claude Code's aliases reach the bot's command too**, as `/cost` already
213
+ did for `/usage`: `/stats` is `/usage`, `/reset` and `/new` are `/clear`,
214
+ `/continue` is `/resume`, `/undo` and `/checkpoint` are `/rewind`, and
215
+ `/bashes` is `/tasks`. Before, they went to Claude Code past the bot, so
216
+ `/new` skipped what the bot's `/clear` does: the topic, the thread's name
217
+ and the ↩️ button back.
218
+
219
+ - **The line under each reply is the footer**, in the bot's words as in its
220
+ command: its `/footer` menu, the agent's topic tool and the docs no longer
221
+ call it the status line, which is Claude Code's name for something else.
222
+ The live message during a turn is the live status message.
223
+
224
+ - **Commands were renamed, so that a Claude Code name means in the chat what
225
+ it means in Claude Code.** Ten bot commands had a name Claude Code uses for
226
+ something else, which kept Claude Code's own out of reach except through
227
+ `/cc`. They have new names: `/status` is `/info`, `/permissions` is `/gate`,
228
+ `/fork` is `/branch`, `/schedule` is `/loop`, `/project` is `/dir`, `/recap`
229
+ is `/history`, `/statusline` is `/footer`, `/version` is `/botversion`,
230
+ `/update` is `/botupdate`, and `/stop` is gone as an alias of `/cancel`. The
231
+ bot keeps a Claude Code name only where its command does the same thing, as
232
+ `/model`, `/clear`, `/resume` and `/tasks` do. `/usage` is one of those now,
233
+ beside `/cost`, which is Claude Code's alias for it. The old names are
234
+ Claude Code's now: `/status` opens its settings dialog, and a habitual
235
+ `/fork` or `/schedule` starts an agent there.
236
+
237
+ - **Related commands start alike**, so that Telegram's `/` menu, which filters
238
+ on the start of a name, lists a family at once: `/botrestart`, `/botrebuild`,
239
+ `/botversion` and `/botupdate` join `/botstatus` and `/botname`;
240
+ `/threaddelete`, `/threadcleanup` and `/threadkeep`; `/loop` and `/loops`;
241
+ `/branch`, `/branchaccept` and `/branchdecline`. `/sync`
242
+ is `/resend`, and `/ping` is no longer an alias of `/botstatus`. The old
243
+ names are gone: `/restartbot`, `/rebuildbot`, `/deletethread`, `/cleanup`,
244
+ `/keep`, `/accept`, `/decline`, `/schedules`, `/unschedule`, `/sync` and
245
+ `/ping`. Entries below this one use the names of their time.
246
+
247
+ - **A copy of a conversation is a branch, not a fork.** Claude Code calls it
248
+ that, and its `/fork` now starts a background agent. The button under every
249
+ reply is `🌱 Branch`, a waiting message has `🌱 Ask in a branch`, and the
250
+ bot's messages, the docs and the guide (now *Threads and branches*) say
251
+ branch throughout. New branch threads are named with 🌱 in front; threads
252
+ made before keep their 🍴.
253
+
254
+ - **Buttons from before the renaming no longer work.** What a button sends
255
+ back was still named after the old commands (`fork:`, `statusline:`,
256
+ `restartbot:`…), so that buttons already in a chat kept working. It follows
257
+ the commands now, and so do the code and its file names. A button on a
258
+ message from before this build that belongs to a renamed command (Branch
259
+ under an old reply, Ask in a branch, an open `/footer`, `/dir`,
260
+ `/botrestart`, `/botrebuild`, `/botupdate`, `/threaddelete` or
261
+ `/threadcleanup` menu) answers *This button is from before an update and no
262
+ longer works*, as does any button nothing recognises, which used to leave
263
+ the tap spinning. A branch sent to another bot and not accepted yet has to
264
+ be sent again. Two paths kept only for older buttons went with it: the
265
+ thread choice of branch pickers from before threads were the default, and
266
+ the single *apply to all bots* button of early model and effort messages.
267
+
268
+ - **`/teleport` is `/terminal` now.** Claude Code has a `/teleport` of its
269
+ own (alias `/tp`): send the session to the cloud, or resume one from
270
+ claude.ai. The bot's command of that name is older, a Claudegram one, and
271
+ does something else: it gives the `claude --resume … --fork-session` line
272
+ to carry on in a terminal. A bot command wins over Claude Code's of the
273
+ same name, so Claude Code's could not be reached from a chat. The bot's is
274
+ now `/terminal`, still admin-only, and `/teleport` goes to Claude Code like
275
+ any other of its commands.
276
+
277
+ - **`/context` is Claude Code's own.** It used to be a report the bot built
278
+ itself, a Claudegram feature: token counts and dollars from the last reply,
279
+ or, with none cached, a second `claude -p /context` on a fork of the
280
+ session, without the chat's MCP tools or settings, whose output the bot no
281
+ longer parsed. Now `/context` goes to the chat's Claude Code like `/compact`
282
+ does, and the reply is the report it gives in a terminal: what fills the
283
+ context window by category (system prompt, tools, MCP, memory files,
284
+ skills, messages, free space), then the MCP tools and skills, each table
285
+ one line per row. Like any prompt it waits for a running turn; the status
286
+ line under every reply still shows how full the context is.
287
+
288
+ - **`TERMINAL_UI_VERBOSE` is now `FULL_TOOL_INPUTS`.** The old name dates from
289
+ `/terminalui`, which is gone; what the setting still does is show a tool's
290
+ full input (the whole Bash command, the full path) in the live status
291
+ message. The old name keeps working, and a startup line says to rename it.
292
+ `.env.example` no longer claims it lengthens session-restore previews, which
293
+ it hasn't done for a while.
294
+
295
+ - **`/ping` is `/botstatus` now.** Claudegram's `/ping` answered "🏓 Pong!" and
296
+ an uptime, which `/botstatus` already shows next to the version, memory and
297
+ Claude processes, and both answer mid-turn.
298
+
299
+ - **On macOS the screen can sleep while the bot runs.** The bot ran
300
+ `caffeinate -di` from its first day, a habit from running Claudegram on a
301
+ laptop: `-i` keeps the Mac from idle-sleeping, which the bot needs, and
302
+ `-d` kept the display lit as well for as long as the bot ran, which it
303
+ doesn't. It now runs `caffeinate -i -w <pid>`, so caffeinate also ends with
304
+ the bot rather than outliving a crash.
305
+
306
+ - **The wizard says what the background service will be before asking.** The
307
+ question at the end of `telecoder init` used to name only the command. It now
308
+ says what `telecoder service install` would set up on this machine first: a
309
+ systemd user service, and that it will ask about lingering (or that lingering
310
+ is already on), or a LaunchAgent on macOS. Where it can't install one, on a
311
+ platform without systemd or launchd or where `systemctl --user` can't be
312
+ reached, it says why instead of asking a question that would end in an error.
313
+
314
+ - **A voice note without a Groq key says how to turn transcription on.**
315
+ Declining voice in `telecoder init` is the common answer. A voice note or
316
+ `/transcribe` then got a "Transcribing..." ack followed by a raw
317
+ "GROQ_API_KEY not configured" error. Now it says where to get a key and
318
+ how to add it: run `telecoder init` again, which keeps the other answers,
319
+ or put it in the .env file and `/restartbot`. The wizard's voice question
320
+ is worded as optional and says it can be turned on later.
321
+
322
+ - **Files you send are saved under `~/.telecoder/uploads/`, not in the project.**
323
+ A photo sent in a chat used to land in `<project>/.telecoder/uploads/`, leaving
324
+ a folder in every project someone had sent a picture to, with a `.gitignore`
325
+ of its own to keep the pictures out of commits. They now go to
326
+ `~/.telecoder/uploads/<project name>/`, and Claude gets the path as before.
327
+ It is the one part of `~/.telecoder` the scope guard lets Claude read without
328
+ asking, since what's in it is yours, not the bot's. Nothing is written to a
329
+ project any more.
330
+
331
+ - **The memory guard's question can wait for room.** When memory is tight and
332
+ reaping the idle claudes isn't enough, the chat used to have three answers:
333
+ start anyway, end the longest-idle claude, or drop the message — and letting
334
+ it sit dropped it. Two more now: **Check again** reaps and reads the machine
335
+ again, and re-asks over the same message with the fresh numbers when it still
336
+ doesn't fit; **Wait for room** does that every 30 s and starts Claude the
337
+ moment it fits, with start anyway and drop still under the message meanwhile.
338
+ What a wait is really waiting for is the other claudes to cross the reap
339
+ window, so a claude that was busy when the question went up is ended as soon
340
+ as it has sat idle long enough. A wait that runs out asks again instead of
341
+ dropping: the chat said it wanted that message.
342
+
343
+ - **The memory guard counts the claude it just let through.** A new `claude`
344
+ takes its memory over its first seconds, and MemAvailable doesn't move until
345
+ it does, so two threads started together both read the same figure and both
346
+ passed. Every spawn the guard lets through now counts as a few hundred MB
347
+ spent for half a minute. The floor is `auto` by default, a quarter of RAM
348
+ with a 1 GB minimum: with 1 GB left, an 8 GB box is usually deep in swap
349
+ already. `MEMORY_GUARD_MAX_SWAP_USED_MB` can make heavy swap use a trigger
350
+ too; it's off by default because swap stays full long after the squeeze.
351
+
352
+ - **CCR runs in the pty.** A chat on Claude Code Router took the Agent SDK
353
+ path whatever its `/method`, so the PTY-only features stayed behind on it.
354
+ The pty now spawns CCR's wrapper around the same `claude`, so everything
355
+ carries over. A session still never crosses backends: the pty refuses to
356
+ resume one the other backend minted and starts fresh.
357
+
358
+ - **The status line is on by default**, with its topic line. Project, effort,
359
+ model, context and cost show nowhere else in Telegram, and a new user
360
+ doesn't know `/statusline`. It's sent silently now: the reply above it
361
+ already rang the phone. `STATUS_LINE_DEFAULT=false` restores the old
362
+ default; the last-prompts and `claude --resume` lines stay opt-in.
363
+
364
+ - **`/status` shows what a Telegram user acts on**: bot, project, topic,
365
+ effort, model, provider, context, cost and last activity. The
366
+ session id is one tap away under `/statusline`'s "Show session", and the
367
+ bot's uptime is `/botstatus`'s. Created, Working Directory and Uptime are
368
+ gone from it.
369
+
370
+ - **`/status` names the effort and model that served the last reply, and who
371
+ picked them.** "Effort: Default" and "Model: Claude Code default" said only
372
+ that the chat had set neither, not what the reply ran with. Both are now
373
+ read from the session log, so `/status` says "High (Claude Code's default)"
374
+ or credits `/effort` and `/model` when the chat chose. Before the first
375
+ reply it says the pair is known after it. The model no longer shows as a
376
+ placeholder after a bot restart, and the status line under each reply shows
377
+ the logged effort in place of "Auto".
378
+
379
+ - **`/botname` renames the bot, and the name no longer follows the project.**
380
+ The display name used to be rebuilt as "name — project" on every project
381
+ switch, resume and topic reset. Telegram throttles renames so hard that one
382
+ could be refused and dropped, leaving the wrong project showing for hours,
383
+ and the project is in the status line and the thread names anyway.
384
+ `/botname <name>` (admins only) now sets a fixed name, kept per bot, that
385
+ wins over `BOT_NAME`. A rename Telegram refuses is reported with the
386
+ cooldown left and sent again when it ends. `/botname reset` goes back to
387
+ `BOT_NAME`, and `/botname` alone shows the name Telegram has.
388
+ `DYNAMIC_BOT_NAME` is gone.
389
+
390
+ - **The turn log says a backgrounded shell is running.** A command Claude
391
+ started in the background returns at once with no output, and the live log
392
+ drops an empty result, so it looked like a command that finished with
393
+ nothing to say. One moved to the background at the foreground time limit
394
+ looked finished with whatever it had printed so far. Both now get the line
395
+ Claude Code's own tool row shows, "Running in the background", pointing at
396
+ `/tasks` for the output so far.
397
+
398
+ - **`/rebuildbot idle` also waits for background shells, topic naming and
399
+ thread renames.** Its idea of "nothing left to finish" was turns, queued
400
+ messages, self-started turns and background tasks. A shell command Claude
401
+ left running, the Haiku call naming a turn's topic and a thread rename
402
+ waiting out Telegram's cooldown slipped past it, and a restart over the
403
+ last two left the thread under its old name. Each now holds the restart and
404
+ is named in the tally.
405
+
406
+ - **An answer to a ForceReply prompt is routed by the prompt's id**, not by
407
+ phrases in its text ("Set Project Directory", "Download File", "Transcribe
408
+ Audio") that had to stay in step with the handlers. The tracker that already
409
+ knew which messages were prompts, for the group mention gate, now also knows
410
+ which flow each opened. An answer to a prompt from before a restart goes to
411
+ Claude as a message; re-open the prompt.
412
+
413
+ ### Removed
414
+
415
+ - **`/provider`.** It opened a picker of backends, from Claudegram's days of
416
+ several. Two are left, Claude and CCR, and `/ccr` already switches a chat
417
+ between them in one tap, with the same confirmation before a live session is
418
+ left behind and the same summary carried over. `/ccr` is now the one switch,
419
+ and `/status` shows which backend a chat is on. Without `CCR_ENABLED` a typed
420
+ `/provider` used to be dropped without a reply; it now goes to Claude Code
421
+ like any other command the bot doesn't own.
422
+
423
+ - **`CANCEL_ON_NEW_MESSAGE`.** Claudegram's switch to have every new message
424
+ stop the running turn. In Claude Code a message sent mid-turn waits its
425
+ turn, and TeleCoder already has the per-message choice: `/steer`, or
426
+ ⚡ Interrupt & send on a waiting message. A `.env` that still turns it on
427
+ gets a line at startup.
428
+
429
+ - **Settings that did nothing.** `AGENT_WATCHDOG_ENABLED`,
430
+ `AGENT_WATCHDOG_WARN_SECONDS`, `AGENT_WATCHDOG_LOG_SECONDS`,
431
+ `AGENT_QUERY_TIMEOUT_MS`, `AGENT_SILENCE_TIMEOUT_MS`,
432
+ `AGENT_STALE_TOOL_TIMEOUT_MS` and `CLAUDE_REASONING_SUMMARY` were read only
433
+ by the SDK transport, and `STREAMING_DEBOUNCE_MS` by nothing since February,
434
+ yet all of them were still parsed and still in `.env.example`. A startup
435
+ line names any that are still set. Gone with them is the step that cut a
436
+ trailing "Reasoning Summary" off every reply: only Claudegram's SDK prompt
437
+ asked for one, so all it could still do was cut a reply that really ended
438
+ with that heading.
439
+
440
+ - **Spoken replies (`/tts`) and `/transcribe`.** Both came from Claudegram
441
+ and stand in for nothing Claude Code does: `/tts` read each reply aloud
442
+ through Groq Orpheus or OpenAI, and `/transcribe` turned audio into text
443
+ without Claude ever seeing it. Voice notes still become prompts, which is
444
+ the phone's way of typing. An audio file now gets a reply saying to record
445
+ a voice note instead. Gone with them: the `openai` dependency, `ffmpeg` on
446
+ the service's `PATH`, `TTS_ENABLED` and the other `TTS_*` settings,
447
+ `OPENAI_API_KEY` and `TRANSCRIBE_FILE_THRESHOLD_CHARS` (a startup line says
448
+ so while they are still in `.env`).
449
+
450
+ - **`/handoff`.** It wrote the conversation to a markdown file in the project and
451
+ sent it as a document. Claude Code's own `/export` does the same from the pty,
452
+ `/terminal` carries a session to a terminal, and `/fork` and `/spinoff` carry
453
+ it to another chat. It was also the last thing that wrote to a project's
454
+ `.telecoder/` folder.
455
+
456
+ - **The SDK transport.** Every chat runs Claude Code in a pty now: the real
457
+ `claude` CLI, on your own login, with your `CLAUDE.md`, skills, plugins and
458
+ slash commands. The Agent SDK path was Claudegram's custom agent with a
459
+ system prompt of its own, it lagged the pty on every feature (`/shells`,
460
+ task output, `/btw` without a running turn, scheduled prompts, the live
461
+ screen), and Anthropic's SDK terms do not allow third-party products to
462
+ offer claude.ai login on it. The SDK stays only for the one-shot Haiku
463
+ side calls. Gone with it: `/method`, `telecoder init`'s transport question
464
+ and `--transport`, `CLAUDE_METHOD_DEFAULT`, `CLAUDE_SDK_LOG_LEVEL` and
465
+ `CLAUDE_SDK_LOAD_USER_SETTINGS` (a startup line says so while they are
466
+ still in `.env`), `/cost`'s per-turn tally (the live session's totals
467
+ replace it), and the one-tap "switch to CCR and retry" offer on a Max
468
+ throttle with `CCR_AUTO_PROMPT_ON_THROTTLE` — it read the error off the
469
+ SDK's result, which the pty never sees; `/ccr` is the switch. `/mode`'s
470
+ default is `auto` everywhere, Claude Code's own.
471
+
472
+ - **The `/file` prompt.** Sent bare, `/file` posted a "Download File" card
473
+ with eight guessed-at files and waited for a reply. Nobody browses a project
474
+ that way when Claude can send the file by name; `/file <path>` stays, for a
475
+ file you know while Claude is busy, and bare `/file` says how to use it.
476
+
477
+ - **`/terminalui` and `TERMINAL_UI_DEFAULT`.** The "classic" mode it switched
478
+ to was Claudegram's: a bare "Thinking…" bubble and Telegram's "typing…"
479
+ indicator, with no sign of what Claude was doing. Every turn now has the
480
+ live status line, and `/verbosity` sets how much it shows. The typing
481
+ indicator, which Telegram Desktop animates on the CPU for the whole turn, is
482
+ gone with it. `TERMINAL_UI_VERBOSE` stays: it is a verbosity override.
483
+
484
+ - **`/newproject`.** Making a folder under the workspace is file management,
485
+ not Claude Code: ask Claude to create the project, or `mkdir` it, and open it
486
+ with `/project`. `/newbot` says so too for a project folder that isn't there.
487
+
488
+ - **Claudegram's agent modes, session list and process controls.** TeleCoder
489
+ is for the real Claude Code experience in Telegram, and these came over from
490
+ the fork it started as, each standing in for something Claude Code now does
491
+ itself. `/plan`, `/explore` and `/loop` wrapped the prompt — a pasted
492
+ "PLAN MODE — STRICT" directive, an "Explore the codebase and answer:"
493
+ prefix, a re-prompt until Claude said "DONE" (`MAX_LOOP_ITERATIONS`) — where
494
+ `/mode plan` is Claude Code's own plan mode and Claude Code works until a
495
+ task is done; its `/loop` skill reaches it now that the bot no longer
496
+ shadows the name. `/sessions` and `/continue` listed and resumed the bot's
497
+ own session history, which `/resume` covers with Claude Code's real list; the
498
+ ▶️ Continue button under a restart notice still works. `/streaming` and
499
+ `STREAMING_MODE=wait` held a whole reply back until the turn ended, which the
500
+ status line and the action log were never written for: replies stream.
501
+ `DANGEROUS_MODE`, Claudegram's auto-approve-all, only ever moved the SDK
502
+ transport's default; `/mode` and `/autoapprove` are the controls, and
503
+ `/status` and `/botstatus` lose the rows that reported these. `BOT_MODE` and
504
+ `scripts/telecoder-botctl.sh` were its dev/prod process control: a checkout
505
+ runs under pm2 or systemd, which restart the bot when it exits, and
506
+ `/restartbot` in a terminal says so instead. A `.env` that still sets one
507
+ of the settings gets one line at startup.
508
+
509
+ - **Telegraph.** With `TELEGRAPH_ENABLED=true`, every reply over 2,500
510
+ characters, every `/handoff` note and every closed action log was also
511
+ published to telegra.ph as a public, undeletable Instant View page, and
512
+ Claude was told to write for Telegraph's renderer. The idea came over from
513
+ Claudegram; it was off by default since 1.2.0, and the reply it duplicated
514
+ already arrives in the chat in full. The `/telegraph` command and its
515
+ per-chat toggle, `/telegraph <path>`, the `telecoder_publish_telegraph`
516
+ agent tool, the `--telegraph` init flags and the setting are gone. The
517
+ action log stays in the chat, drawn one last time when the turn ends. A
518
+ `.env` that still sets `TELEGRAPH_ENABLED` gets one line at startup saying
519
+ so.
520
+
521
+ ### Fixed
522
+
523
+ - **A row past the first in `/config` can be tapped.** The dialog opens with
524
+ its keys in the search box and the list's cursor resting, drawn grey, and
525
+ the first ↓ moves to the list without moving down it. The walk to a row was
526
+ counted from the cursor and stopped one short, so every row but the first
527
+ was refused. The bot now sees that the list is resting and gives it the keys
528
+ first.
529
+
530
+ - **A search typed into `/config` after a row was picked is typed into the
531
+ search box.** Picking a row leaves the keys on the list, where Space means
532
+ "change this setting". The bot presses `/` first, as the footer says to.
533
+
534
+ - **`/memory` offers all four of its rows.** It draws a cursor on its
535
+ Auto-memory switch and another on its list, one of them grey, and read as
536
+ text that was two cursors: one row was offered.
537
+
538
+ - **A command sent by its alias goes through.** `/allowed-tools`, `/undo`,
539
+ `/routines` and the like were refused with "Claude Code's input box didn't
540
+ take your message". The menu under the box shows the command's own name,
541
+ `/permissions (allowed-tools)`, and its marked row was read as the box.
542
+
543
+ - **`/config` can be sent again, and so can any command with a long menu of
544
+ matches.** While a slash command is typed, Claude Code draws the commands it
545
+ could mean under the input box, in the footer's place. With plugins that
546
+ add commands of similar names the menu ran to ten rows, which put the box
547
+ above the rows the bot reads to check its text arrived. Every attempt was
548
+ reported as "Claude Code's input box didn't take your message". The box is
549
+ now found above a menu of that shape, and above nothing else.
550
+
551
+ - **A turn Claude seemed to have started itself no longer holds a bot up for
552
+ good.** Such a turn opens on a record in the session log and only a record
553
+ closes it, so one opened by mistake stayed open until the bot restarted:
554
+ `/rebuildbot idle` waited on it ("answering a background task"), the idle
555
+ reaper kept its claude running, and a message could wait behind it. Once
556
+ Claude has sat at its prompt for two minutes, doing nothing and with its
557
+ log still, the turn now counts as over, and anything it wrote goes out.
558
+
559
+ - **A bot starting up during a Telegram outage is no longer killed over and
560
+ over.** Under the launcher, a bot only began telling it "still alive" once
561
+ it had finished starting, and on Telegram errors startup can take longer
562
+ than the 90 seconds the launcher waits. The launcher then took the bot for
563
+ stuck and force-stopped it, every two minutes until Telegram recovered,
564
+ each time cutting off its Claude sessions. Bots now send that signal from
565
+ their first second, and a restart asked for during startup is a clean exit.
566
+
567
+ - **A pause in the middle of a reply no longer ends the turn.** Claude can
568
+ stop for a second or two while writing an answer, with no spinner on
569
+ screen, and the bot took that for the end. It sent an empty "Done" a
570
+ moment before Claude finished, and the answer never reached the chat.
571
+ Without Claude's Stop signal, a turn now ends only once the session log
572
+ shows it over, or after 15 seconds of quiet when that signal was lost.
573
+
574
+ - **A task's details in `/tasks` no longer say "Status: running" and
575
+ "Backgrounded: yes".** The list holds the tasks still running in the
576
+ background and nothing else, so both lines said the same for every task.
577
+ The view starts with when the task began.
578
+
579
+ - **`telecoder init` and `telecoder doctor --live` reach Telegram through the
580
+ proxy.** Both asked Telegram about the bot token directly, whatever
581
+ `TELEGRAM_PROXY_URL` or `HTTPS_PROXY` said. On a network that blocks
582
+ Telegram, which is what the proxy is for, the wizard stopped at the token
583
+ and the check reported Telegram as unreachable. Both now go through the
584
+ proxy the bot would use, and say so. A proxy the wizard finds in your
585
+ shell's environment is written to the `.env` as `TELEGRAM_PROXY_URL`,
586
+ because a service starts the bot without that environment. Without a proxy,
587
+ a failure to reach Telegram now names the setting.
588
+
589
+ - **Files sent to the bot come through the proxy too.** With
590
+ `TELEGRAM_PROXY_URL` set, or `HTTPS_PROXY` in the environment, the bot
591
+ reached Telegram's API through the proxy but downloaded a photo, a document
592
+ or a voice note directly. On a network that blocks Telegram, which is what
593
+ the proxy is for, every upload failed. The download now goes through the
594
+ same proxy.
595
+
596
+ - **The `/` menu and `/verbosity` no longer speak of a second transport.**
597
+ `/shells` was listed as "(PTY mode)" and the debug tier as reserved for
598
+ "SDK internals", from when a chat could run on the Agent SDK instead of in
599
+ a pty. Every chat runs in a pty now, so both are gone. So are "the terminal
600
+ mode" in what `telecoder doctor` says when node-pty doesn't load, and "PTY
601
+ chat" in the configuration reference and `.env.example`.
602
+
603
+ - **The "Context Compacted" notice no longer suggests `/handoff`.** The
604
+ command was removed, but the notice sent when Claude Code compacts a
605
+ conversation by itself still ended with a tip to run it first.
606
+
607
+ - **The proxy hint no longer suggests a SOCKS proxy.** When the bot can't
608
+ reach Telegram at startup it suggests `TELEGRAM_PROXY_URL`, and gave
609
+ `socks5://127.0.0.1:1080` as the example. The bot connects through an HTTP
610
+ or HTTPS proxy only, so that value could never work. The hint now names an
611
+ HTTP proxy, and the setting is in the configuration reference.
612
+
613
+ - **The status line no longer ends in `💰 $0.00`.** The cost in the status
614
+ line, in the verbose usage footer and on a "Session Cost" line in `/status`
615
+ was a figure the SDK transport read off each reply. Claude Code writes no
616
+ pricing into the session log, so with every chat in a pty there was nothing
617
+ to fill it: the status line showed `$0.00` under every reply, the footer
618
+ `$0.0000`, and the `/status` line never appeared. All three are gone.
619
+ `/cost` is where Claude Code says what a conversation cost.
620
+
621
+ - **A `!command` runs, and the permission gate checks it.** A message that
622
+ starts with `!` is Claude Code's shell mode: the rest runs as a shell
623
+ command, with no tool call. Through the bot it mostly didn't run, and ended
624
+ in "Claude Code's input box didn't take your message", because the bot
625
+ didn't recognise the input box in shell mode. And what did run skipped the
626
+ permission gate and the scope guard, which are tool hooks: on a shared bot a
627
+ guest's `!sudo …` ran where Claude's own would wait for an approver. Such a
628
+ message now goes through the same gate before it is typed, and one that is
629
+ denied or left unanswered never runs. Telegram still gets Claude's reply to
630
+ the command, not the command's own output.
631
+
632
+ - **Claude no longer asks before a destructive command when the mode says not
633
+ to.** The note the bot adds to Claude's system prompt told it to confirm
634
+ anything irreversible (`rm -rf`, `sudo`, a force-push, `DROP TABLE`) with a
635
+ question first, whatever the permission mode. In bypass mode that overruled
636
+ what the chat had picked with `/mode`. The line is gone: how much Claude
637
+ asks is `/mode`'s to say, and on a shared bot the permission gate still
638
+ holds those commands for an approver.
639
+
640
+ - **`/terminal` (`/teleport` until this release) forks the session, as it
641
+ said it did.** Its message promised that Telegram and the terminal could
642
+ each carry on, but the command it gave
643
+ was a plain `claude --resume`, which reopens the same session the chat's own
644
+ Claude Code still has open, with both of them writing to one log. It now
645
+ adds `--fork-session`: the terminal gets the conversation under a new id.
646
+
647
+ - **The 🍴 Fork button is under the reply, every time.** A turn that asked a
648
+ question and had nothing to add after the answer put the button on the
649
+ "✅ Done" bubble above the question, where it read as a stray button rather
650
+ than the reply's fork point. It is now under the prose that went out ahead
651
+ of the question. And a turn Claude started itself, when a background task
652
+ reported back, got no button at all; its reply forks like any other now.
653
+
654
+ - **Claude's send-file tool follows the same rules as `/file`.** It checked
655
+ only that the path was under the workspace or `/tmp`, and the scope guard
656
+ that prompts for a credential path watches Read and Bash, not MCP tools. So
657
+ a guest who asked Claude for `~/.ssh/id_rsa` got it, unless Claude happened
658
+ to read it first. Both routes now refuse credential and bot-state paths
659
+ for everyone and confine a guest to the chat's project, as `/file` has.
660
+
661
+ - **The wizard's typed answer stays next to its question.** After a question
662
+ long enough to wrap, `telecoder init` parked the cursor at the right edge of
663
+ the screen, and the `y` or `n` typed there sat a line's width away from its
664
+ `[Y/n]`. readline was never told the terminal's width.
665
+
666
+ - **A background task claude stopped no longer shows as running forever.**
667
+ Claude writes no task-notification for a task it ends with TaskStop, and
668
+ that notification was the only thing that retired a task, so "🔄 Running in
669
+ background" stayed under every later reply until the bot restarted, and the
670
+ idle restart waited for it. A Bash call's response now records claude's own
671
+ id for the task, and TaskStop on that id retires it as stopped.
672
+
673
+ - **`TTS_ENABLED=false` turns spoken replies off.** The setting was read
674
+ but never checked, so a chat with `/tts` on kept getting voice replies.
675
+ Now it stops them for every chat, `/tts` says they're off, and the
676
+ command leaves the `/` menu.
677
+
678
+ - **`TRANSCRIBE_ENABLED=false` turns off voice notes too**, not only
679
+ `/transcribe`. A voice note was still downloaded and transcribed.
680
+
681
+ - **`telecoder help <command>` lists the command's options.** It showed only
682
+ the one-line summary, though the install docs pointed to it for the
683
+ flags. `<command> --help` shows the same.
684
+
685
+ ## [1.2.0] — 2026-11-14
686
+
687
+ ### Install
688
+
689
+ - **`npm install -g telecoder`** — TeleCoder installs as an npm package with
690
+ a `telecoder` command: `telecoder start` runs one bot, or every bot in
691
+ `instances.json` when there is one; `telecoder doctor` checks Node, the
692
+ `claude` CLI and its login (without spending anything), node-pty and the
693
+ toolchain it needs, and the config, with `--live` asking Telegram about the
694
+ token; `telecoder --version` and `telecoder help` do what they say.
695
+ - **`telecoder service install`** runs the bot in the background: a systemd
696
+ user unit on Linux (enabled, with lingering after asking, so it survives
697
+ logout and reboot) or a LaunchAgent on macOS, pointing at the `node` and
698
+ `telecoder` it was installed with and a `PATH` that finds `claude` and
699
+ `git`. `/restartbot` restarts it from chat; a configuration error stops it
700
+ instead of crash-looping (exit 78, `RestartPreventExitStatus=`; exit 0
701
+ under launchd, which can't single out one code). A changed unit is shown
702
+ as a diff before it is replaced; `status`, `logs`, `restart` and
703
+ `uninstall` go with it, and `--name` allows several installs. Under
704
+ `sudo -u` (no `XDG_RUNTIME_DIR`) it points `systemctl --user` at the
705
+ user's running manager itself, found by its bus socket in
706
+ `/run/user/<uid>`; when no manager runs (no login, no lingering) it leads
707
+ with the fix, `sudo loginctl enable-linger <user>`. Without
708
+ `systemd --user` it prints the unit and a manual fallback; npx installs
709
+ are pointed at `npm install -g` first.
710
+ - **`telecoder init` sets a bot up in a few questions** — it runs doctor's
711
+ checks (offering `claude auth login` when Claude Code isn't logged in),
712
+ takes the bot token masked and checks it with Telegram, and finds your user
713
+ id by having you send the bot `/start`, so there is no @userinfobot step
714
+ (the bot answers that `/start` at once, pointing you back to the terminal).
715
+ Then the workspace, SDK or PTY, and voice transcription and Telegraph if you
716
+ want them. It writes a `.env` with only those settings, readable by you
717
+ only, and the bot messages you to say it's set up. An existing `.env` can
718
+ be kept, edited with its values as defaults, or started over (backed up
719
+ first). `--token-env VAR`, `--owner-id`, `--workspace`, `--transport` and
720
+ `--yes` run it from a script. When the Claude login is a variable in the
721
+ shell's environment (`CLAUDE_CODE_OAUTH_TOKEN`, `ANTHROPIC_API_KEY`,
722
+ `ANTHROPIC_AUTH_TOKEN`) rather than stored credentials, it offers to save
723
+ it in the `.env` too (`--yes` does), since a background service never sees
724
+ that environment and would start logged out; `telecoder doctor` warns
725
+ about such a login as well.
726
+ - **Config lives in `~/.telecoder`** for an npm install (`TELECODER_HOME`
727
+ moves it): `.env`, `instances.json` and the Telegraph account file sit next
728
+ to the existing state files. A source checkout with a `.env` or
729
+ `instances.json` next to `package.json` keeps using those, exactly as
730
+ before.
731
+ - **An npm install updates and restarts without a checkout** — `/update`
732
+ also offers `npm install -g telecoder@latest`, `/version` compares the
733
+ installed version with the latest release, and `/restartbot` exits for the
734
+ service manager to start it again (`telecoder service install` sets one
735
+ up; pm2 works too). `/rebuildbot` is for source checkouts
736
+ only and says so elsewhere.
737
+ - **A shorter README** — the README is now the pitch, how TeleCoder compares,
738
+ a three-command quick start and links; the reference moved to `docs/`
739
+ (install, features, commands, multiple bots, providers, sharing,
740
+ configuration, security, architecture). Corrected on the way: the
741
+ `CLAUDE_SDK_LOG_LEVEL` and Groq `TTS_VOICE` defaults, `HOME_PROJECT`,
742
+ `/spinoff` and `/autoapprove` in the command list, and which commands are
743
+ admin-only.
744
+
745
+ ### Security
746
+
747
+ - **`/file` and `/telegraph <path>` can't hand out credentials** — both
748
+ accepted any path under `WORKSPACE_DIR`, which defaults to your home
749
+ directory, so any guest on a shared bot could fetch
750
+ `~/.claude/.credentials.json` with `/file`, or publish `~/.ssh/id_rsa` as a
751
+ public page with `/telegraph`. Guests are now confined to the chat's project
752
+ directory, admins keep the whole workspace, and the scope guard's list of
753
+ credential and bot-state paths (`.env` files, `~/.ssh`, `~/.aws`,
754
+ `~/.claude`, `~/.telecoder`, cloud CLI configs and so on) is refused for
755
+ everyone, admins included. Symlinks are followed before anything is
756
+ decided. `/telegraph <path>` is admin-only; `/telegraph` on its own still
757
+ shows the per-chat toggle to everyone.
758
+
759
+ - **Telegraph is off unless you turn it on** — `TELEGRAPH_ENABLED` defaulted
760
+ to `true`, so every reply over 2500 characters, every `/handoff` and every
761
+ verbose action log became a public telegra.ph page without anyone choosing
762
+ that. It now defaults to `false`, in the code and in `.env.example`; set it
763
+ to `true` to get Instant View links back. Off, long replies arrive in full
764
+ as chunked messages, as they already did underneath the link, and `/handoff`
765
+ sends just the file. Turning it off globally now also stops chats that had
766
+ switched it on with `/telegraph`, and `/handoff` follows the chat's setting.
767
+
768
+ - **ID lists are checked at startup, and strangers are told their ID** —
769
+ `ALLOWED_USER_IDS=@alice` used to parse to `NaN` and start a bot nobody
770
+ could use ("Allowed users: NaN"), and the `.env.example` placeholder
771
+ `123456789` was taken as a real admin. A non-numeric entry in
772
+ `ALLOWED_USER_IDS`, `ADMIN_USER_IDS`, `APPROVER_USER_IDS` or
773
+ `ALLOWED_GROUP_IDS`, or the placeholder in a user list, now stops startup
774
+ with a message saying what belongs there. Someone not on the list who
775
+ messages the bot privately is told their numeric ID to pass on, and it is
776
+ logged; a group that isn't allow-listed gets no reply at all, where it used
777
+ to get "not authorized" for every message when privacy mode was off.
778
+
779
+ - **The bot token stays out of `ps` and out of error messages** — photos,
780
+ documents and voice notes were fetched with `curl`, whose command line
781
+ carried `https://api.telegram.org/file/bot<token>/…` for any local user to
782
+ read, and a failed download sent that command line, token and all, back to
783
+ the chat. Downloads now use Node's own `fetch`, with the same timeouts and
784
+ retries. `sanitizeError` also redacts Telegram bot tokens, API keys, bearer
785
+ headers and credentials in URLs from anything it is given.
786
+
787
+ ### First run
788
+
789
+ - **A missing or wrong setting is explained, not dumped** — with no `.env`, a
790
+ first start printed Zod's raw JSON (`invalid_type`, "expected string,
791
+ received undefined") instead of saying a token was needed. Startup now
792
+ prints one plain report: which `.env` was read, or that none was found;
793
+ each missing or invalid setting with where to get it (`@BotFather` for the
794
+ token, `@userinfobot` for your ID); and `telecoder init` or copying
795
+ `.env.example` when there is no file. The ID-list and admin checks report
796
+ the same way. It exits 1, with no stack trace.
797
+
798
+ - **A bad bot token is caught before anything starts** — a placeholder or
799
+ revoked token ended in `Fatal error: GrammyError: Call to 'getMe' failed!
800
+ (401)` and a stack trace, after the IPC server had started. A token that
801
+ isn't shaped like one now fails the config check, and a well-formed one is
802
+ checked with `getMe` before any other service starts: a rejected token says
803
+ to get a fresh one from @BotFather, and a network failure says
804
+ api.telegram.org couldn't be reached and points at `TELEGRAM_PROXY_URL`.
805
+ The token is never printed. Under the multi-bot launcher, a bot that stops
806
+ on its configuration says so under its own name and isn't respawned into
807
+ the same error; fixing its `instances.json` entry starts it again.
808
+
809
+ - **"Claude Code isn't logged in" says how to log in** — on a machine where
810
+ nobody had signed in, every message came back as `❌ Error: Claude error:
811
+ Claude Code returned an error result: Not logged in · Please run /login`,
812
+ and in PTY mode the CLI's first-run theme and login screens were relayed to
813
+ the chat as dialogs that led nowhere. Both transports now reply that Claude
814
+ Code on the bot's machine isn't logged in, and to run `claude` and /login
815
+ there (or `claude setup-token` for a long-lived token); an invalid API key
816
+ or a 401 from the API gets the same reply. Startup also warns when there is
817
+ no `~/.claude/.credentials.json` and no `ANTHROPIC_API_KEY` or
818
+ `CLAUDE_CODE_OAUTH_TOKEN`, without refusing to start (macOS keeps the login
819
+ in the keychain, where the check can't see it).
820
+
821
+ - **`doctor` sees a login kept in the `.env`** — a `CLAUDE_CODE_OAUTH_TOKEN`
822
+ or `ANTHROPIC_API_KEY` set in the `.env` works for the bot, but `doctor`
823
+ ran `claude auth status` without it and reported "not logged in". It now
824
+ hands claude the login variables from the `.env` (and nothing else from
825
+ it), its hint mentions `claude setup-token`, and its install hint is the
826
+ native installer: `npm install -g @anthropic-ai/claude-code` fails with
827
+ EACCES for a normal user on a distro's Node.
828
+
829
+ - **A fresh install keeps the name you gave the bot** — the startup name sync
830
+ renamed every bot to "TeleCoder", BOT_NAME's default, so the name picked in
831
+ BotFather was gone on the first start. It only renames now when BOT_NAME
832
+ is set, or when dynamic names are on (they're built from it).
833
+
834
+ - **Node.js 22 or newer is required** — Node 20 reached end of life in April
835
+ 2026. `engines.node` is now `>=22`, CI runs on Node 22 and 24, and the bot
836
+ and the launcher check the version before loading anything else, saying
837
+ which version they found and what to install instead of failing somewhere
838
+ further in.
839
+
840
+ ### Multiple bots
841
+
842
+ - **`instances.json` is read while the launcher runs** — adding a bot used to
843
+ mean restarting the launcher, and with it every bot it ran. It now watches
844
+ the file: a bot you add starts, one you take out stops, and one whose token,
845
+ name or settings change restarts on its own and picks its sessions back up.
846
+ The others carry on. Bots are matched by bot id, so a replaced token is the
847
+ same bot restarting rather than one leaving and another arriving, and when a
848
+ bot is taken out of the middle of a `tokens` list, the next one takes over
849
+ its name once it has stopped. A file that doesn't parse, lists no bots, or
850
+ gives two bots one name is ignored until it's fixed.
851
+
852
+ - **`/newbot` creates a bot for a project** — a bot per project meant a
853
+ BotFather chat each time: pick a name, copy the token, paste it into
854
+ `instances.json`. Now `/newbot sjs` offers a button that opens Telegram's own
855
+ create-a-bot screen with the name and username filled in, and once you
856
+ confirm, the bot that sent it fetches the new token, restricts the new bot to
857
+ you, and adds it to `instances.json`, which the launcher picks up. It needs
858
+ Bot Management Mode on in BotFather's Mini App for the bot you send it to,
859
+ and Threaded Mode, which Telegram offers no API for, is still switched on
860
+ there by hand. Only a bot an admin created is adopted: anyone can create one
861
+ managed by ours through a link. Asking Claude for a bot works too: its
862
+ `telecoder_create_bot` tool sends the same button. The new bot sends the
863
+ steps for turning threads on with the first message you send it, then
864
+ checks once a minute and says so when they're on, taking the setting in
865
+ without a restart.
866
+ - **A bot can have a home project** — `HOME_PROJECT`, which `/newbot` sets. A
867
+ conversation with nothing to restore starts there instead of asking for
868
+ `/project`, and the project is left out of the thread names and the bot's
869
+ display name while you're in it, since the bot's own name already says it.
870
+ That leaves the thread names their full width for what they're about. A
871
+ thread that moves to another project gets that one in front again.
872
+
873
+ ### Threads
874
+
875
+ - **Each thread keeps its own model, effort, backend, transport and
876
+ permission mode** — in a bot with threads, a `/model` in one thread used to
877
+ switch every thread in the chat, because these were stored per chat. Now
878
+ they're stored per thread. A thread that never picked one follows the chat's
879
+ setting, so a new thread starts out the way the chat was before threads, and
880
+ resetting one in a thread goes back to the default, not the chat's choice.
881
+ Verbosity and the status line toggles stay per chat. Chats without threads
882
+ are unchanged, and "apply to all bots" still applies to the other bots'
883
+ chats as a whole.
884
+
885
+ - **Threads are named after what they're about** — a message sent from a
886
+ bot's "All" view starts a thread Telegram calls "New chat", and every one of
887
+ them looked the same in the list. The bot now renames a private chat's
888
+ thread to its session topic, and follows the topic as the conversation
889
+ moves on, at most once a minute so the thread isn't filled with rename
890
+ notices. A name you gave the thread yourself, when creating it or by
891
+ renaming it later, is never replaced. Group forum topics keep their names.
892
+ The name is the topic's first half, the broad area, which holds still
893
+ while the second half follows each message. The project's folder name goes
894
+ in front, `telecoder · Thread naming`, since one bot's threads can each be
895
+ in a different project; it's left out when the topic already names it, and
896
+ after a project switch it's the whole name until the new topic comes in.
897
+ Haiku is told the project, so the topic's area names a part of it rather
898
+ than repeating it, and a topic Claude or `/topic` sets while Haiku is still
899
+ summarizing the message is no longer overwritten by Haiku's late answer.
900
+
901
+ - **A fork opens a thread of its own** — on a bot with threads, the 🍴 Fork
902
+ button and `/fork` go straight to a new thread, with no picker and no
903
+ confirmation: someone who turned threads on wants them, and a thread you
904
+ didn't want is deleted as easily as a confirmation is cancelled. It opens a
905
+ thread named after the topic with 🍴 in front, loads the conversation up to
906
+ that point into it with the settings the thread you forked from chose, and
907
+ replies with a link to it. The thread you forked from carries on unchanged,
908
+ so both stay open side by side instead of one going to `/resume`. Bots
909
+ without threads keep the picker.
910
+
911
+ ### Renamed
912
+
913
+ - **The last Claudegram names** — the agent's tools are now `telecoder_*`
914
+ (`telecoder_ask_user`, `telecoder_send_file` and so on) on a server called
915
+ `telecoder-tools`. The state directory is `~/.telecoder`: the launcher moves
916
+ `~/.claudegram` across on its first start, before any bot runs, and leaves a
917
+ link at the old path for anything still holding it. Files sent in the chat
918
+ and `/handoff` notes go to `.telecoder/` in the project, which gets its own
919
+ `.gitignore`, so they stay out of git even in a project that only ignores
920
+ `.claudegram/`. Existing `.claudegram/` folders in projects are left alone.
921
+
922
+ ### Removed
923
+
924
+ - **`/medium`, `/reddit`, `/vreddit` and `/extract`, and the agent tools behind
925
+ them** — these content fetchers came from Claudegram: Medium articles through
926
+ the Freedium mirror, which exists to get around Medium's paywall, Reddit threads
927
+ through a bot account's OAuth app, Reddit videos, and YouTube, Instagram and
928
+ TikTok downloads through `yt-dlp`. None of them has to do with driving Claude
929
+ Code, which can read a link itself. The `claudegram_fetch_reddit`,
930
+ `claudegram_fetch_medium` and `claudegram_extract_media` tools went with them,
931
+ so a bare YouTube, TikTok, Instagram or Reddit video link is now an ordinary
932
+ message to Claude instead of opening a download menu. Their settings
933
+ (`REDDIT_*`, `REDDITFETCH_*`, `VREDDIT_ENABLED`, `MEDIUM_*`, `FREEDIUM_*`,
934
+ `EXTRACT_*`, `YTDLP_*` and `ALLOW_PRIVATE_NETWORK_URLS`) are ignored if they're
935
+ still in your `.env`, and `yt-dlp` and `ffprobe` are no longer needed.
936
+
937
+ ### Agent
938
+
939
+ - **`/steer` and `⚡ Interrupt & send`** — a correction no longer has to
940
+ wait for the turn it corrects. `/steer <text>` stops the running turn and
941
+ sends the text in its place; Claude keeps the stopped prompt and what it did
942
+ so far, so the text can refer to it. The same button sits on a `⏳ Queued`
943
+ notice, for a message already waiting
944
+ ([7cb7197](https://github.com/telecoderbot/telecoder/commit/7cb7197)).
945
+ - **The status line turns amber, then red, as the context grows** — the
946
+ `📊 34%` stat looked the same at 15% as at 80%, and with the 1M window even
947
+ 80% is far past the point where turns get slower, costlier and less sharp.
948
+ The chart now becomes `🟡` from 150k tokens or 60% of the window, and `🔴`
949
+ from 300k or 80%, whichever comes first, a cue to `/clear`, fork or
950
+ `/compact`. The usage footer and `/context` bars follow the same rule.
951
+
952
+ - **Fable gets a 💎 while it's on** — the model showed as one more `🤖` stat
953
+ in the status line, easy to read past, and not at all with the status line
954
+ off, so a Fable picked for one hard task went on spending the plan's limits
955
+ on the easy ones after it. The live status now ends its first line with
956
+ `· 💎 fable` every turn, the status line shows `💎 FABLE-5-1` in place of
957
+ the robot, and picking it in `/model` says what the badge means. Under CCR
958
+ the alias says nothing about the backend, so it's left unbadged.
959
+
960
+ - **The activity card says at its bottom whether anything is still running** —
961
+ the running tasks were listed at the top of the card and the events grew
962
+ below them, so on a long card only the events were on screen, and a card
963
+ whose tasks had all finished looked the same as a busy one. It now ends on
964
+ `⏳ 2 tasks running` or `✅ All done`. A card left behind when a turn starts
965
+ says its tasks run on below it, since their end lands on the next card.
966
+
967
+ - **The reply shows while it is being written** — a reply used to reach the
968
+ chat only once the turn had ended. It now appears in the status bubble as
969
+ Claude writes it and is edited every second or two (every few seconds in a
970
+ group, and less often after Telegram asks the bot to slow down), with the
971
+ status line, or `✍️ Writing…` without the terminal UI, underneath as the sign
972
+ that it isn't final yet. A reply that outgrows one message carries on in a
973
+ silent message below. At the end the final text takes its place; a cancelled
974
+ turn keeps what was written, with the banner under it. The SDK streams it as
975
+ it is typed. PTY mode takes finished blocks from the session log and the one
976
+ being written from the screen, a line at a time, and leaves out tool rows,
977
+ the spinner and Claude Code's own notices. `CLAUDE_SDK_INCLUDE_PARTIAL` is
978
+ gone: streaming needs it on.
979
+
980
+ - **Formatting that can't break a message** — every message used to go out as
981
+ MarkdownV2, which needs escaping, so an underscore in a path or a backtick in
982
+ a command could get a reply refused and resent unformatted, and a long reply
983
+ cut in the middle of bold text or a link broke both halves. Messages now go
984
+ out as plain text with the formatting alongside as entities, from replies to
985
+ menus, edits, `/status`, `/project`, `/recap` and the background-task and
986
+ monitor messages. Nothing needs escaping, and a long reply can be split
987
+ anywhere: bold, links and code blocks carry on in the next part. A link
988
+ Telegram won't take, such as `http://localhost:3000`, is written out as text
989
+ instead of failing the whole message. Code blocks now show their language.
990
+
991
+ - **The task list is back** — Claude Code stopped using `TodoWrite` and keeps
992
+ its list with `TaskCreate`, `TaskUpdate`, `TaskList` and `TaskGet` instead, so
993
+ the live checklist never appeared on a current CLI. The card now reads the
994
+ list from where Claude Code keeps it (`~/.claude/tasks/<session id>/`), in
995
+ both transports, and draws it the way the terminal does: a `3 tasks (1 done,
996
+ 1 in progress, 1 open)` header, `✔` struck through for done, `◼` in bold for
997
+ the one in progress, `◻` for the rest, and `› blocked by #2` while a blocker
998
+ is open. It is posted on a turn's first change and edited in place after
999
+ that. A restored session (`/resume`, `/continue`, a restart, going back to a
1000
+ branch in `/tree`) shows its whole list again. `TodoWrite` support is gone.
1001
+
1002
+ - **Secrets that stay out of the chat** — a task that needed a key or a token
1003
+ used to end in instructions to open a terminal on the machine over SSH and
1004
+ type it there, since anything sent in the chat, or run there with `!`, lands
1005
+ in the session log, in the model's context and in the Telegram history. The
1006
+ new `claudegram_request_secret` tool has Claude name the secret and the
1007
+ command that consumes it, and shows you both. You send the secret as an
1008
+ ordinary message: the bot takes it out of the stream before anything can
1009
+ queue or forward it, deletes it, and runs the command with it in `$SECRET`
1010
+ and on stdin. Claude gets the exit code and the output with the secret
1011
+ blanked out. For a long-lived Claude token the bot runs `claude setup-token`
1012
+ itself: it sends you the sign-in link, you approve on your phone and send
1013
+ back the code the page shows, and the token goes from the CLI straight into
1014
+ the command without passing through Telegram. It works in private chats with
1015
+ an admin, one request at a time, and `/cancel` or the Cancel button
1016
+ withdraws it.
1017
+
1018
+ ### Sessions
1019
+
1020
+ - **Every reply ends with the status line** — it only came after a message you
1021
+ typed. A reply to a voice note, a photo or a file, to `/plan`, `/explore` or
1022
+ `/loop` with the task on the same line, and the one Claude writes on its own
1023
+ when a background agent or task reports back, all left you on the tail of the
1024
+ answer with nothing to say where things stood. That last one is often the
1025
+ answer you were waiting for, and it tends to arrive while you're in another
1026
+ chat, with no prompt of yours above it. Each now closes the way a typed turn
1027
+ does: your last prompts, the project, the model and the context, which under
1028
+ a background reply is the figure that reply left and not the one from the
1029
+ turn before. They get the compaction and new-session notices a typed turn
1030
+ gets as well, and a `/loop` shows the model and the context, which the line
1031
+ under one never had. A scheduled fire closes with a short line, the stats
1032
+ and the context bar alone: a schedule can fire every minute, and each fire
1033
+ counts as a prompt, so the list would soon show nothing else. A background
1034
+ turn that says nothing still posts nothing.
1035
+
1036
+ - **The action log follows you past a question** — when Claude asked you
1037
+ something mid-turn and you answered, the turn carried on in the action log
1038
+ posted before the question, so its next actions landed above the question
1039
+ and your answer, where you'd scrolled past them, and the bottom of the chat
1040
+ looked like nothing was happening. Answering (or the question timing out,
1041
+ or a secret request settling) now collapses that log and the next action
1042
+ opens a new one under your answer, with the status line and the prompt.
1043
+
1044
+ - **The status line names the project** — a bot moves between projects and its
1045
+ display name only says where it is now, so scrolling back left you guessing
1046
+ which project an older answer belonged to. `📁 telecoder` now leads the stats
1047
+ under each answer. After a switch it already names the new project, where your
1048
+ next message goes.
1049
+
1050
+ - **A turn ends in one message** — with the status line on under `/verbosity
1051
+ verbose`, a turn closed with two messages that both gave the context and the
1052
+ cost, and each one notified you. The context bar now sits at the bottom of the
1053
+ status line, whose own 📊 and 💰 make way for it. With the status line off, the
1054
+ bar still comes on its own.
1055
+
1056
+ - **`/recap` ends like a turn** — after a long reply, `/recap` left you on the
1057
+ tail of an answer with the prompt it answers scrolled away, and it said
1058
+ nothing about the context, which is what has changed when you've just gone
1059
+ back to a fork or an earlier point. It now closes with the same status message
1060
+ as a normal turn: your last prompts, then the figure for the point the chat is
1061
+ at. In PTY mode that figure comes from the session log when no turn has cached
1062
+ one, so `/status` now shows its context line straight after
1063
+ a jump or a restart too, and `/context` answers from the log at those moments
1064
+ instead of starting a separate `claude` to ask.
1065
+
1066
+ - **A restart carries on instead of asking** — a chat quiet for between an hour
1067
+ and a week came back from a restart with "Continue where you left off, or
1068
+ start fresh?", and a `/rebuildbot all` left that choice waiting in every bot
1069
+ you hadn't used in the last hour. Every chat used in the past week now
1070
+ carries straight on in its conversation, as it would have with no restart at
1071
+ all; `/clear` is there when you'd rather start fresh. A project you'd picked
1072
+ but not talked in yet comes back with your next message too, where an hour
1073
+ on it used to answer "No project set". A "Start fresh" still standing on an
1074
+ old prompt now runs `/clear`.
1075
+
1076
+ - **A fork stands out where it starts** — loading a fork left one plain line,
1077
+ "✅ Fork loaded from …" or "✅ Branched into a new conversation", between two
1078
+ conversations that otherwise read as one thread when you scroll back. A
1079
+ branch taken in the same chat was the worst of it: the messages just above
1080
+ carry on past the point the branch starts from. The confirmation is now a
1081
+ banner — 🍴 Forked from … or 🌱 New branch, between heavy rules — that says
1082
+ outright a new conversation starts there and says the conversation above is
1083
+ in `/resume`. It shows the exchange the fork picks up after: your prompt on
1084
+ one line, and the reply whole in a collapsed quote that opens on a tap — so
1085
+ a fork to another bot doesn't leave that reply behind in the other chat, and
1086
+ the last reply above your next message is one the fork actually has. No
1087
+ summary: that would be a model call, and a retelling of the one thing you
1088
+ need verbatim. A reply too long to fit is cut at a word, pointing to
1089
+ `/recap` for the rest. The "✅ Forked to …" message in the sending chat now
1090
+ says that conversation carries on unchanged.
1091
+
1092
+ - **A fork can be forked again from either chat** — both messages confirming a
1093
+ fork now carry a 🍴 Fork button of their own: "✅ Fork loaded" or
1094
+ "✅ Branched" where the branch continues (after Accept, `/accept` or 🌱 New
1095
+ branch here), and "✅ Forked to …" in the chat it was sent from. Forking the
1096
+ same point a second time — to a third bot, or into another branch — used to
1097
+ mean scrolling back through the source bot's history to the message the fork
1098
+ was first taken from. Each button forks that same point, whatever either
1099
+ conversation has done since, so it hands over exactly what that message's
1100
+ own button would.
1101
+
1102
+ - **A fork offer previews the reply it was taken from** — the "Fork received"
1103
+ message quoted the source chat's latest reply as the last assistant message,
1104
+ so a fork taken from any earlier point arrived introduced by text it doesn't
1105
+ contain. The preview is now read out of the cut transcript itself.
1106
+
1107
+ - **`/resume` says which session each button is** — a session is named
1108
+ `project · topic`, which is routinely wider than the single line Telegram
1109
+ renders a button on, and the client ellipsises the rest away with no way to
1110
+ expand it. Two conversations in the same project therefore arrived as the
1111
+ same half-line and you picked between them blind. The picker now writes every
1112
+ session out in the message body keyed A/B/C — name and age — and the same
1113
+ letter keys its button, the rule `claudegram_ask_user` has followed since
1114
+ options moved into the body. Short names still ride on their own buttons
1115
+ (`A · telecoder`); the moment one is too wide the whole keyboard drops to
1116
+ bare letters, packed four to a row. Both features build that keyboard through
1117
+ one function now, so a question and a session list clip at the same place
1118
+ instead of each keeping its own threshold.
1119
+
1120
+ - **The other two pickers that hid text on a button** — the same rule now
1121
+ covers the "back to previous" button under `/clear` and `/project`, and the
1122
+ `/fork` target list. The back button named its session inside its own label
1123
+ and trimmed it at 45 characters, well past what a button renders, so the
1124
+ moment a session had a topic you were offered "back to" something you could
1125
+ not read. It keeps the name on the button while it fits — `↩️ Back to
1126
+ telecoder (2h ago)`, the common case, adding nothing to the chat — and past
1127
+ that width puts the name in the message and a fixed label on the button. The
1128
+ fork picker listed sibling bots by name only on their buttons, so two bots
1129
+ sharing a prefix arrived as the same clipped line; targets are now written
1130
+ out A/B/C in the picker message. "New branch here" moved the bot's own name
1131
+ off its label, which was single-handedly costing that keyboard its labels.
1132
+ Six commands offered the back button with four lines of identical
1133
+ keyboard-spreading each; that is one call now.
1134
+
1135
+ - **`/prompts` reaches further back** — it lists the last 15 prompts by
1136
+ default instead of 5, and `/prompts N` goes up to 25 instead of 20. Most
1137
+ prompts are a short line, so five used a fraction of the room one message
1138
+ has. Across 40 recent sessions, 15 always fit in one message, at
1139
+ about two phone screens. 25 fit in all but 5 of them, and in those the
1140
+ oldest are dropped to fit, as before, and the header says how many.
1141
+
1142
+ - **The status line shows your last five prompts** — with "Show last prompt"
1143
+ on in `/statusline`, the line after each answer showed only the prompt that
1144
+ turn answered, and a turn often starts from an "ok" or a "yeah" that says
1145
+ nothing on its own. It now lists the last five, oldest first. They are read
1146
+ from the session log, so they reach back past a restart. A `/compact` and
1147
+ the notes Claude Code writes in your place, like "[Request interrupted by
1148
+ user]", don't take one of the five; a paste shows its text and an upload its
1149
+ caption, the way `/tree` labels a branch.
1150
+
1151
+ - **The live action log says what the turn is for** — in verbose mode the
1152
+ action log grows below your prompt until it pushes it off screen, so
1153
+ remembering what a long turn was working on meant scrolling back up to
1154
+ find it. The log now ends with that prompt, under the status line, as the
1155
+ same italic ▸ line the status line uses. A paste shows its text and an
1156
+ upload its caption; a skill run with a slash command shows as typed. It
1157
+ goes when the turn ends, with the answer posted below the log by then.
1158
+
1159
+ - **A prompt shows whole, and a long one its start and its end** — the
1160
+ status line and the bottom of the live action log cut every prompt at 100
1161
+ characters. Across 100 recent sessions that caught a third of the prompts
1162
+ written as one paragraph, and a cut that keeps only the start drops what a
1163
+ long prompt usually ends on: the question. A prompt now shows whole up to
1164
+ 300 characters, enough for 93% of those; past that it shows its start and
1165
+ its end with … between, cut between words. Five prompts under an answer
1166
+ take a median of 15 rows on a phone instead of 11. `/prompts` and
1167
+ `/recap` cut the same way, at the 300 and 500 characters they already
1168
+ allowed.
1169
+
1170
+ - **`/tree` shows each point's prompt, not its first few words** — a line of
1171
+ the tree had room for about 23 characters of the prompt a point starts
1172
+ from, so on the forked conversations on disk 38 of 44 points showed cut,
1173
+ most of them to a few words. The prompt now wraps onto lines of its own
1174
+ inside the drawing, with the branches carried on down beside it, and shows
1175
+ whole up to 300 characters; past that, its start and its end, the way
1176
+ `/prompts` shows one. Those trees take a median of 17 lines now, at most
1177
+ 47, where they took a line per point. A tree too big for one message gives
1178
+ every prompt the same shorter cut, so the longest give way first. Opening a
1179
+ point shows the prompt it ends on the same way, up to 300 characters
1180
+ instead of 160, and the list of forked conversations its prompts up to 300
1181
+ instead of 80.
1182
+
1183
+ - **A fork's banner shows your prompt the way `/tree` does** — the banner
1184
+ where a fork or a branch starts showed the prompt it picks up after cut at
1185
+ 120 characters, keeping only its start, and as the session log has it: a
1186
+ paste in its `<pasted_content>` tags, an upload as the note it reached
1187
+ Claude in, a reply under the quote it answers. It now shows whole up to
1188
+ 300 characters, past that by its start and its end, a paste by its text,
1189
+ an upload by its caption and a reply by the words written under the quote,
1190
+ the same as the point's view in `/tree`. With the longest reply a banner
1191
+ holds, it still fits in one message.
1192
+
1193
+ - **`/prompts` goes back to any prompt** — the list was something to read and
1194
+ nothing more: going back to an earlier point meant scrolling up past every
1195
+ reply since to that one's 🍴 Fork button. Each prompt is now keyed A/B/C
1196
+ the way `/tree` keys its points, with a button per letter. A letter opens
1197
+ the prompt — its reply in a collapsed quote — with 🌱 New branch from
1198
+ here, which carries on just after that reply in a new conversation and
1199
+ leaves this one in `/resume`: the same banner and the same branch the
1200
+ reply's own 🍴 makes. Anything sent after that reply stays out of the
1201
+ branch, a `/compact` included. A prompt where a branch already splits off
1202
+ is marked 🌿, and 🌳 shows the tree, where that branch can be carried on.
1203
+ Prompts read the way `/tree` and the status line show them, a reply under
1204
+ a quote by the words written under it. `/prompts` also answers while a
1205
+ turn runs, where it used to wait for the turn to finish, and after a
1206
+ restart lists where the chat left off, as `/tree` does. Built from the
1207
+ transcripts on disk, 180 lists and 494 prompt views fit in a message, the
1208
+ longest at 3,325 characters.
1209
+
1210
+ - **`/prompts` gives the prompt after a `/compact` its own line** — a
1211
+ `/compact` leaves three records in the session log: the command, Claude
1212
+ Code's record of it, and what it printed. `/prompts` read them as part of
1213
+ the next prompt, so that prompt's line opened with some 200 characters of
1214
+ `<command-name>…</local-command-stdout>`, terminal escape codes included,
1215
+ and only about 85 of its 300 were yours. Each prompt now gets a line of
1216
+ its own. Commands and the notes Claude Code writes in your place, like
1217
+ "[Request interrupted by user]", are left out and don't count toward N. A
1218
+ prompt interrupted before any reply was folded into the next one; it now
1219
+ gets its own line, marked ⏳. A paste shows without the `<pasted_content>`
1220
+ tags around it, in `/recap` too.
1221
+
1222
+ - **`/recap` and `/handoff` show only what you sent** — the exchange after a
1223
+ `/compact` opened with the command's three records, terminal escape codes
1224
+ and all, and an interrupted prompt carried "[Request interrupted by user]"
1225
+ into the next one. Both are left out now, there and wherever else
1226
+ exchanges are read off the log: a fork's banner, a `/tree` point, and the
1227
+ conversation carried over when you switch providers. A command that got a
1228
+ reply, like a skill run with a slash command, keeps its exchange.
1229
+ `/handoff` also writes a paste without the `<pasted_content>` tags around
1230
+ it. Across 312 recent sessions, 26 of 1,430 exchanges had such records in
1231
+ the prompt; the replies are unchanged.
1232
+
1233
+ ### Sharing a bot
1234
+
1235
+ - **The permission gate runs on the SDK transport and CCR** — it was a hook on
1236
+ the PTY CLI only, while the default transport is SDK and CCR always takes it.
1237
+ There the curated tool list pre-approves Bash, Write and Edit, so a guest let
1238
+ in on a default install ran shell commands with no prompt at all. The SDK
1239
+ transport now registers the same check as an in-process PreToolUse hook, in
1240
+ every `/mode` and for subagents' tool calls, and a gate that throws denies
1241
+ the call. One test table runs through both transports, and `/permissions` no
1242
+ longer needs its "this chat's transport has no gate" warning.
1243
+
1244
+ - **Auto-approve windows** — `/autoapprove 30m` lets the permission gate approve
1245
+ instead of asking, for a stated length of time on one chat. A job made of
1246
+ guarded commands cost a tap each, and a guardrail people tap without reading
1247
+ has stopped being one. Admins and approvers can open a window; it posts every
1248
+ command it waves through rather than going quiet, announces itself when it
1249
+ lapses, and lives only in memory so a restart closes it. `mkfs`, `dd of=/dev/`,
1250
+ `DROP DATABASE`, `terraform destroy` and credential reads keep their prompt —
1251
+ the line is whether a wrong call can be walked back, not whether it is
1252
+ dangerous. `/autoapprove off` and `/autoapprove status` do what they say.
1253
+
1254
+ - **An approver tier** — `APPROVER_USER_IDS` names guests who may answer someone
1255
+ else's permission prompt without owning the bot. Being able to tap "Allow once"
1256
+ and being able to run `/restartbot` or `/method` were one flag, which forced a
1257
+ choice between one admin being the bottleneck for every prompt and handing
1258
+ guests the switch that turns the gate off. An approver stays a guest in every
1259
+ other respect — the charter judge still reads their messages, the gate still
1260
+ stops their tool calls — and cannot approve their own request, so the prompt
1261
+ still means something. `/users` lists them as their own tier, `/deny` names both
1262
+ lists so removing one doesn't strand an id the orphan check refuses to start on,
1263
+ and the toast tells an approver why their own request is the one they can't
1264
+ answer.
1265
+
1266
+ - **Admitting people from chat** — `/allow`, `/deny` and `/users`. A stranger who
1267
+ posts in the shared group gets an approve card naming them, and someone added
1268
+ to the group is asked about the moment they join; one tap makes them a guest,
1269
+ with no `.env` edit and no restart. Telegram has no API that resolves a
1270
+ `@username`, so the bot matches only handles it has seen go by and `/allow` as
1271
+ a reply is the exact form. Ids admitted this way persist in
1272
+ `~/.claudegram/user-roster.json`; ids from `ALLOWED_USER_IDS` stay the
1273
+ operator's, and `/deny` says so rather than appearing to remove one.
1274
+ `hasGuestUsers()` now reads the effective list, so admitting the first guest
1275
+ switches on the permission gate, the scope guard and the charter judge.
1276
+
1277
+ ### Sharing a bot (continued)
1278
+
1279
+ - **Contributors and spectators in a group** — a group can now hold people who
1280
+ read along without being able to prompt the agent, which is the difference
1281
+ between a seat in the room and a shell on the host. `GROUP_MEMBERS_DEFAULT`
1282
+ decides what membership alone is worth, `/allow` and `/deny` move individuals,
1283
+ and `/members` reads back one group the way `/users` reads back the bot.
1284
+ `GROUP_REQUIRE_MENTION` keeps human conversation in the group from becoming
1285
+ prompts.
1286
+
1287
+ This landed as a merge of two access models that had been built in parallel,
1288
+ and the reconciliation is the substance of it. The roster stayed the door —
1289
+ who may use the bot at all — and the group roles became a second gate behind
1290
+ it, so admitting someone in a DM makes them a contributor everywhere while a
1291
+ grant in a group stays in that group. `/allow` therefore means the nearer
1292
+ layer: the room when typed in the room, the bot when typed in a DM.
1293
+
1294
+ Three things were dropped rather than merged. The branch's `OWNER_USER_IDS`
1295
+ computed exactly what `isAdmin()` already did, so it went and `owner` became
1296
+ `admin` throughout. Its owner-only command list duplicated the `adminOnly`
1297
+ wrapper the handlers already carry — but its judgement was better than main's
1298
+ coverage, so `/project`, `/newproject`, `/permissions` and `/teleport` are now
1299
+ wrapped too. And its username→id cache was a second answer to a question the
1300
+ roster already answers, free to drift from the first.
1301
+
1302
+ `GROUP_MEMBERS_DEFAULT` ships as `spectator`, not the `contributor` the branch
1303
+ defaulted to. That default was right when Telegram membership was the whole
1304
+ gate; layered on top of the roster it would have widened who can prompt the
1305
+ agent, so the merged default matches what the roster already enforced.
1306
+
1307
+ ### Reliability
1308
+
1309
+ - **A long paste reaches Claude as one message again** — Telegram splits a
1310
+ paste over 4096 characters into several messages. Since messages started
1311
+ queueing behind a busy turn, each part waited for the one before it to be
1312
+ answered, so Claude saw the paste one part per turn. The batcher that
1313
+ joins them was off unless `MESSAGE_BATCH_TIMEOUT_MS` was set. It's now on by
1314
+ default (1500ms), and only a message of 2000 characters or more opens a
1315
+ batch, so ordinary messages aren't held up waiting for parts that won't come.
1316
+ The parts after the first join it whatever they look like, including a short
1317
+ last part or one that starts with a slash because the split landed just
1318
+ before a path.
1319
+
1320
+ - **No more catch-up repeating a reply** — the reply goes out without its
1321
+ reasoning summary, but the session log keeps it, and the check that recovers
1322
+ prose the relay dropped counted the summary as missing. With summaries on,
1323
+ every reply got a "📨 Catch-up — recovered from session log", and one with a
1324
+ tool call in it was posted a second time in full. The check now leaves the
1325
+ summary out of the log's text as well, and still recovers prose that really
1326
+ went missing.
1327
+ - **The live action log gives its time and its count at both ends** — the log
1328
+ is usually taller than a screen, the count of actions sat only at its top
1329
+ and the time it was last drawn only at its bottom, and both change all the
1330
+ time, so reading either meant scrolling to the other end. From the top the
1331
+ log also looked frozen through a long step, since nothing up there moved
1332
+ until the next action came in. A running log now opens and closes with the
1333
+ same line, `🕐 Updated 2:11 PM · last 9 of 20 actions`, with the count left
1334
+ off while every action is showing.
1335
+ - **The live action log says when it last moved** — Telegram shows when a
1336
+ message was sent but not when it was last edited, so a live log that had
1337
+ stopped moving looked just like one that was still going, and a long quiet
1338
+ step left you wondering whether the bot was still alive. The log now ends
1339
+ with the time it was last drawn, under the prompt. With the status line on
1340
+ it's redrawn every ten seconds, so a time that keeps up with your clock means
1341
+ the bot is alive however long the step takes. That time and the one on each
1342
+ action now read in your own timezone; they were the server's.
1343
+ - **Commands that only read answer during a turn** — every command behind the
1344
+ queue waited for the running turn, so `/commands` sat behind a long turn,
1345
+ acked as queued, to print a fixed list once Claude was done. `/commands`,
1346
+ `/sessions`, `/botstatus`, `/recap`, `/projectcommands` and `/context` now
1347
+ answer at once. Commands that change the session or start a turn still wait
1348
+ their turn, as a message does.
1349
+ - **`/later` sets an idea aside before it's sent** — **Ask me after** is only
1350
+ on a message already waiting behind a turn. An idea you had while nothing was
1351
+ running had nowhere to go, and one sent as a turn was ending could go out
1352
+ before you'd tapped the button. `/later <text>` sets it aside straight away,
1353
+ with the same question, **Send** and **Drop** afterwards. Sent while Claude is
1354
+ idle, it waits until the next turn has run, and `/later` alone lists what's
1355
+ set aside in the chat. A question left unanswered while the conversation moves
1356
+ on is now asked again below each new reply, without a second notification,
1357
+ instead of staying above them all.
1358
+ - **Decide on a follow-up after you've read the answer** — a message sent during
1359
+ a turn went out as soon as that turn ended unless you took it back, so you had
1360
+ to decide before you'd seen the answer it depended on. The `⏳ Queued` notice
1361
+ now also has **Ask me after**. The message won't go out by itself, and nothing
1362
+ behind it waits for it. Once nothing is running or waiting, the bot asks below
1363
+ the reply whether you still want to send it, with **Send** and **Drop**, and
1364
+ that question notifies you, unlike the notice. It stays until you answer it,
1365
+ through `/cancel` and restarts. Send puts the message through as if it had just
1366
+ arrived, so a voice note is only transcribed then, and it waits its turn if
1367
+ another one has started. An edit made while a message waits, set aside or not,
1368
+ is now what goes out; Claude used to get the text as first sent.
1369
+ - **The subagent panel can't go out as a reply** — when the session log had no
1370
+ reply text for a turn, the bot read one off the screen, and with a subagent
1371
+ running it could send the panel under the input box instead. A log that holds
1372
+ your message but no reply now gives the usual "Done". The screen is only read
1373
+ when the log has no record of the message, and it skips the panel, tool calls
1374
+ and older replies. Each time the log has no reply text, the bot logs enough to
1375
+ show why.
1376
+ - **Messages get through while a subagent is running** — the panel under the
1377
+ input box shows each running subagent with a live timer and token count, and
1378
+ the bot took those updates to mean the screen hadn't settled. Every message
1379
+ then failed after a minute with "Claude Code's input box never appeared", for
1380
+ as long as the subagent ran, though the box was open the whole time. The bot
1381
+ now ignores those rows when it checks whether the screen has settled.
1382
+ - **`/allow` and `/deny` apply to the bot you send them to** — all the bots kept
1383
+ their guests in one file. A guest let into one bot reached the others at their
1384
+ next restart, along with the guardrails a first guest switches on, whatever
1385
+ those bots' `.env` said about who could use them. A `/deny` could also come
1386
+ undone: the other bots kept allowing the guest until they restarted, and the
1387
+ next save from any of them wrote the guest back for everyone. Each bot now has
1388
+ its own roster. On its first start it copies the shared one, so nobody loses
1389
+ access, which means a guest admitted before this stays on every bot until you
1390
+ `/deny` them on each.
1391
+
1392
+ - **Favorites stay in step across your bots** — each bot read the shared list at
1393
+ startup and saved from that copy, so a favorite added on one bot didn't show on
1394
+ the others until they restarted, and could vanish, or a removed one come back,
1395
+ when another bot saved. Each bot now reads the list whenever it needs it.
1396
+
1397
+ - **A setting stays with the bot you set it on** — `/tts`, `/terminalui`,
1398
+ `/telegraph`, `/suggestions` and `/botname` kept their settings in files all
1399
+ the bots shared, and each bot rewrote a file from the copy it loaded at
1400
+ startup. A change on one bot could be undone by a save on another, and one
1401
+ that survived reached the other bots at their next restart. Each bot now has
1402
+ its own files, so changing a setting everywhere means setting it on each bot.
1403
+ On its first start a bot copies what the shared files hold, so nothing resets.
1404
+
1405
+ - **One bot can't undo what another remembers about its name** — the bots shared
1406
+ a file of the display name each last sent, and each rewrote it from the copy it
1407
+ loaded at startup, putting back the others' old entries. After a restart, a bot
1408
+ could take a real rename for no change and keep showing the old project, with
1409
+ no notice, until the next switch. The file of Telegram's rate-limit blocks had
1410
+ the same flaw, so a bot could forget a block and call again. Each bot now keeps
1411
+ its own files. The old shared ones are no longer read, which costs at most one
1412
+ extra call per bot the first time it renames.
1413
+
1414
+ - **`/version` says whether you're on the latest** — the version a restart names
1415
+ tells you what came back, but not whether anything newer has landed since. A
1416
+ fix you'd committed and never built looked just like one that was live.
1417
+ `/version` names the running build, compares it with the code in the checkout
1418
+ and the branch it tracks, and says what catches it up: `/restartbot` for a build
1419
+ that's done but not loaded, `/rebuildbot` for code changed since, `git pull` for
1420
+ commits that aren't here yet. It compares the contents of what a build compiles
1421
+ rather than commits, so a docs commit, committing what was already built, or a
1422
+ history rewrite doesn't count as falling behind. A check that couldn't run says
1423
+ so instead of passing, and it answers during a running turn.
1424
+
1425
+ - **A message you sent too soon can be taken back** — a message sent while the
1426
+ bot was busy got no answer at all, so a bot that was only still working looked
1427
+ idle, and you found out when the reply to the last message landed. Deleting it
1428
+ didn't help, because Telegram doesn't tell a bot about a delete: Claude got it
1429
+ anyway. A message that has to wait now says so within half a second, as
1430
+ `⏳ Queued behind the running turn`, with a **Take back** button that drops it
1431
+ before it reaches Claude and leaves the turn running. Text, voice notes, photos
1432
+ and files are all covered, and a bot command gets the same notice while it
1433
+ waits. That includes the turn you can't see, one Claude started itself on a
1434
+ background task's result: your message waits for it without a "thinking" bubble
1435
+ going up, and that turn's reply still arrives whole. `/cancel` and `/stop` now
1436
+ clear the queue. They used to stop the running turn and thereby start the
1437
+ message waiting behind it, and now they also reach a turn Claude started
1438
+ itself. `CANCEL_ON_NEW_MESSAGE`, which never took effect behind a normal turn,
1439
+ now does what `.env.example` says.
1440
+
1441
+ - **A cancelled message stays cancelled** — a message you stopped with `/cancel`
1442
+ before Claude had written anything came back. Claude Code put it back in its
1443
+ input box, and it went out stuck to the front of your next message as one
1444
+ prompt, while a `/cost` or `/tasks` would have submitted it by itself. The box
1445
+ is now emptied before anything else is typed into it, and a `/cancel` that lands
1446
+ while a message is still being typed in stops it from being submitted at all.
1447
+
1448
+ - **A restart says which version came back** — `/rebuildbot` reported a build
1449
+ and a restart but never what the bot came back on, so there was no telling
1450
+ from the chat whether a fix had gone live. The message a restart ends with now
1451
+ names it, as "Version: 63dcf45 feat: end /recap the way a turn ends (built 2m
1452
+ ago)", with "plus uncommitted changes" when `src/` had some at build time, and
1453
+ `/botstatus` says the same whenever you ask. It comes from a stamp
1454
+ `npm run build` leaves in `dist/` rather than from what's checked out, so a
1455
+ commit you haven't built yet isn't claimed as running. With
1456
+ `AUTO_RESTORE_SESSION` off a restart posts nothing afterwards, so `/botstatus`
1457
+ is the place to look there.
1458
+
1459
+ - **The bypass warning stays accepted** — since Claude Code 2.1.314, every new
1460
+ session (after `/clear`, `/model`, a project switch or a restart) opened with
1461
+ "WARNING: Claude Code running in Bypass Permissions mode", even though you had
1462
+ accepted it, and "Yes, I accept" didn't last past that session. The bot's
1463
+ launch leaves your user settings out, which is where that answer is kept, and
1464
+ that version stopped reading it there. The bot now passes the answer along
1465
+ when your settings already have it. An account that hasn't accepted still
1466
+ gets asked, once.
1467
+
1468
+ - **`/rebuildbot` can wait for each bot to finish** — rebuilding while bots
1469
+ were busy on other projects meant waiting for a moment when none of them
1470
+ was, or cutting a turn off halfway. The `/rebuildbot` menu now has "All
1471
+ instances, each once it is idle" (`/rebuildbot idle` for short): it builds
1472
+ once, then restarts each bot the moment it has nothing left to finish — no
1473
+ turn running or queued, no message still being handled, no background task
1474
+ still going, and no reply still on its way — instead of waiting for the
1475
+ busiest. One message in the chat you asked from keeps the tally, saying what
1476
+ each bot still waiting is busy with, with buttons to restart the rest now or
1477
+ call it off. The launcher has to be running this build before it can take
1478
+ the request; until then the message says so and nothing restarts.
1479
+
1480
+ - **Claude's answer after a background task arrives whole** — when a
1481
+ background task finished between your messages, what Claude wrote about it
1482
+ went onto the background activity card, under a "📡 Monitor" line, cut at
1483
+ 1,200 characters, and the rest was only in `/recap`. That answer is often
1484
+ what the background work was for, and in two weeks of session logs 50 of
1485
+ the 119 Claude wrote ran past the cut. It now comes as a reply of its own
1486
+ once Claude finishes, sent the way any reply is: whole, split over messages
1487
+ only where Telegram needs it, and with a phone notification. The card keeps
1488
+ the tasks — what's running, what finished. A monitor firing still lands on
1489
+ the card at once, and what Claude says about it follows as a reply. If a
1490
+ question or a file comes in the middle, what Claude wrote before it goes
1491
+ out first, above it.
1492
+
1493
+ - **A restart stops its Claude Code sessions before the new bot takes over**
1494
+ — a restarted bot left every Claude Code session it had open to carry on
1495
+ until that session noticed. On 10-27 one wrote another reply into its
1496
+ conversation's log a second after the new bot had already resumed that
1497
+ conversation in a session of its own, so two processes had one log open.
1498
+ Shutting down now hangs each session up and waits for it to exit, which
1499
+ takes under a second when it's idle, and kills one still running after
1500
+ four seconds. A reply the restart cuts short isn't reported as an error on
1501
+ the way out, and a message that arrives mid-shutdown is told to come again.
1502
+
1503
+ - **A question asked after a background task reports back reaches you** —
1504
+ when a background task finished between your messages, Claude Code started
1505
+ a turn of its own to deal with it, and TeleCoder had no turn on record to
1506
+ run its tools in. A question it asked with buttons failed within a second
1507
+ with "MCP error -32602: Invalid tools/call result" and a schema dump, and
1508
+ never reached the chat; sending a file, a poll or a schedule failed the
1509
+ same way. The two weeks of logs on hand hold seven such calls across two
1510
+ bots. Those tools now reach the chat the session belongs to. A question or
1511
+ a file posted there seals the background card above it first, so what
1512
+ Claude writes after your answer lands below it. A tool with no chat to
1513
+ reach now says so in words.
1514
+
1515
+ - **A question keeps its turn while it waits** — Claude Code 2.1.311 moves
1516
+ an MCP call that is still running after two minutes to the background, and
1517
+ the turn carries on without it. A question you took longer than that to
1518
+ answer ended its turn, and your answer came back later as a background
1519
+ task instead of in the reply. TeleCoder's Claude Code sessions now let a
1520
+ call run until it would time out, which is past the question's own ten
1521
+ minutes.
1522
+
1523
+ - **The context reading after a `/compact` shows what it left** — under
1524
+ "🗜️ Context compacted — 536.4k → 13.7k tokens" the usage footer still read
1525
+ 54%, the context from before, and only the next reply brought it down. A
1526
+ compaction writes no usage of its own, so the newest figure in the session
1527
+ log was the one for the conversation it had just replaced. The reading now
1528
+ drops to what the compaction left, 1% there, in the footer, the status line
1529
+ and `/context` alike. That figure counts the conversation only, so the next
1530
+ reply, which adds the system prompt and tools back, reads a few percent
1531
+ higher.
1532
+
1533
+ - **`/status` reads the context the footer does** — its 📐 Context line added
1534
+ up the reply and the input sent fresh, and left out what came from the
1535
+ prompt cache, which once a conversation is under way is nearly all of it:
1536
+ 0% (322/1.0M) where the footer read 54%. It now counts cache reads too, the
1537
+ same sum as the footer.
1538
+
1539
+ - **Claude Code stays on the screen layout TeleCoder can read** — Claude Code
1540
+ 2.1.310 can start in its new fullscreen layout without being asked: a trial,
1541
+ a fresh install or a remote feature switch turns it on. Everything TeleCoder
1542
+ reads off the screen — the input box, the spinner, the dialogs — is built for
1543
+ the classic layout, and in a test run that came up fullscreen, `/mcp`'s tool
1544
+ list offered "Enter — select" on a list whose cursor it couldn't see.
1545
+ TeleCoder's Claude Code now always starts in the classic layout.
1546
+
1547
+ - **Closing a menu no longer sends your last answer again** — `/mcp` and the
1548
+ other Claude Code menus write no reply of their own. When one closed,
1549
+ TeleCoder went looking for the latest reply in the session log, found the one
1550
+ before the command, and posted it again as the menu's answer. The chat now
1551
+ gets what the command printed — "Reconnected to sjs-dev.", "MCP dialog
1552
+ dismissed" — or ✅ Done when it printed nothing.
1553
+
1554
+ - **Claude Code's menus can be walked from the chat** — picking a server in
1555
+ `/mcp` opens that server's own screen, but TeleCoder expected every tap to
1556
+ close the dialog it answered. The tap went in, the menu stayed open on the
1557
+ server's screen, and the turn ended calling the dialog "still open": the menu
1558
+ could be opened from the chat but never used. Each screen a tap leads to now
1559
+ comes to the chat in turn — a server's actions, its tool list, the list Esc
1560
+ steps back to — until Claude Code is back at its input box. A list too long
1561
+ for the screen, like a server's 111 tools, offers every row it shows instead
1562
+ of its first seven, with buttons to scroll it, and the `↓ 92 more` under it
1563
+ and the group headings between `/mcp`'s servers are no longer offered as
1564
+ rows.
1565
+
1566
+ - **A message that starts with a long link gets through** — Claude Code wraps
1567
+ its input box at word boundaries. In a message like "I'm about to submit
1568
+ https://…long link…", the link moved down a row, which split the opening
1569
+ words TeleCoder looks for to confirm a message landed. Every attempt was
1570
+ reported as "didn't take your message", however often you resent it. Worse,
1571
+ clearing the box between attempts removed only the bottom row. Copies of the
1572
+ opening words piled up three per attempt, and they were sent along with your
1573
+ next message. TeleCoder now finds the opening words across a row break, and
1574
+ clears every row it filled.
1575
+
1576
+ - **A command moved to the background is counted while it runs** — Claude
1577
+ Code doesn't kill a Bash command that runs into its 10-minute limit: it
1578
+ moves it to the background and carries on. TeleCoder only counted commands
1579
+ started in the background, so one moved there was missing from the
1580
+ "🔄 N tasks running in background" footer, `/tasks` and the background card
1581
+ for as long as it ran. It now counts from the moment it moves, and its
1582
+ running time starts from when the command did.
1583
+
1584
+ - **A crashed Claude Code no longer leaves its background tasks counted as
1585
+ running** — when Claude Code exits on its own, killed for running out of
1586
+ memory say, the tasks it ran in the background end with it. TeleCoder only
1587
+ cleared them when it shut Claude Code down itself, so after a crash they
1588
+ stayed in the count indefinitely. They're now cleared however Claude Code
1589
+ exits.
1590
+
1591
+ - **A background task that finished mid-turn no longer counts as running** —
1592
+ if a background task finished while Claude was in the middle of a turn, the
1593
+ "🔄 N tasks running in background" footer, `/tasks` and the background card
1594
+ went on counting it as running until the session ended. TeleCoder 4 showed
1595
+ two tasks running with nothing running at all. Claude Code folds a
1596
+ completion like that into the turn in progress instead of logging it as a
1597
+ message of its own, and TeleCoder only looked for the message. It now reads
1598
+ the folded-in completion too.
1599
+
1600
+ - **A running turn no longer keeps "typing…" up** — every turn renewed
1601
+ Telegram's "typing…" indicator every four seconds until it ended, and
1602
+ Telegram Desktop draws that animation on the CPU for as long as it shows, so
1603
+ a long turn kept the client busy the whole time. A turn with the live status
1604
+ line (`/terminalui`, on by default) no longer sends it: the status line
1605
+ already shows the turn is alive. With the terminal UI off, "typing…" stays,
1606
+ since nothing else would. In verbose mode the status line now sits at the
1607
+ bottom of the action log, because the log is posted below the status bubble
1608
+ and is usually tall enough to push it off screen. That left "typing…" as the
1609
+ only live sign you could see. The bubble points down at the log, and the
1610
+ log's header starts with ⏳ while the turn runs, so the chat list shows it's
1611
+ still going. The waiting-for-your-answer line now points down at the
1612
+ question too; it said "above", but the question is posted below it.
1613
+
1614
+ - **The live action log catches up** — the log was edited at most every ten
1615
+ seconds, and an action that arrived sooner was left off until another one
1616
+ came in. After a burst of quick reads followed by a long build, the log
1617
+ stayed a couple of actions behind for the whole build. It now draws the
1618
+ waiting actions once the ten seconds are up, and after a Telegram rate limit
1619
+ it draws again instead of dropping the change. Commands and output go out
1620
+ as entities rather than MarkdownV2, so they show verbatim and nothing in
1621
+ them can break an edit.
1622
+
1623
+ - **A running command reads as code in the status bubble** — while a Bash
1624
+ command ran, the status bubble showed it as plain text under the timer, so
1625
+ a long one-liner, such as a loop polling `gh pr checks`, sat there as a raw
1626
+ run of pipes, quotes and `$(...)` for as long as it ran. The command is now
1627
+ in a `bash` code block, the way the permission prompt shows one, and the
1628
+ block's copy button hands back just the command. It goes out as Telegram
1629
+ entities rather than MarkdownV2, so nothing in the command can break the
1630
+ update.
1631
+
1632
+ - **A message of several lines is acted on, not held for a confirmation
1633
+ tap** — Claude Code now wraps a long paste in `<pasted_content>` tags, and
1634
+ its system prompt has the model act on instructions inside one only where
1635
+ your own words outside the tags ask it to. TeleCoder delivers every message
1636
+ as a paste, so anything over two lines or 800 characters arrived as one
1637
+ tagged block with nothing outside it: the model took your request for text
1638
+ copied from somewhere else and asked for a button tap before doing what it
1639
+ said. The system prompt a PTY session starts with now says what the tags
1640
+ mean here — how the message was delivered, not where it came from. Text you
1641
+ quote or forward, and pages TeleCoder fetches for you, are still read as
1642
+ someone else's. SDK mode never pasted, so it was never affected.
1643
+
1644
+ - **Claude Code's dialogs arrive laid out for a phone** — a dialog relayed to
1645
+ the chat, most often a permission prompt (Claude Code raises some even in
1646
+ auto mode, such as a heredoc whose braces and quotes trip its "expansion
1647
+ obfuscation" check), came through as its raw terminal render. It was
1648
+ hard-wrapped at 120 columns and then rewrapped by the phone, the command sat
1649
+ in a `│` gutter, an edit's diff sat between two screen-wide rows of dashes,
1650
+ and the rows repeated the buttons behind a `❯` cursor. Blank lines were
1651
+ dropped, so title, command, reason and question ran together. Now the title
1652
+ and the question are bold, the command or diff is in a code block, prose
1653
+ Claude Code wrapped is rejoined, and each choice is written out once in full
1654
+ under its button's number, since the button clips it. The last line says
1655
+ what a tap does, and a dialog that opens mid-turn no longer promises to
1656
+ "deliver your message". Answering the dialog, or letting it time out, keeps
1657
+ the formatting. The answered edit also used to strip formatting from the
1658
+ bot's own permission prompts; it keeps it now too.
1659
+
1660
+ - **A relayed permission prompt no longer offers "Tab — amend"** — the
1661
+ button pressed Tab, which doesn't answer the prompt: it turns the
1662
+ highlighted row into a text field ("Yes, and tell Claude what to do next")
1663
+ for a note a button can't type. The dialog stayed open, so the turn failed
1664
+ with "Claude Code hasn't returned to its input box". Tab is left out of the
1665
+ buttons now, along with the other keys that change a dialog without
1666
+ answering it.
1667
+
1668
+ - **Claude Code asking to fetch a page reaches the chat** — WebFetch's
1669
+ permission prompt was never relayed. The dialog reader found a dialog by
1670
+ its footer, the "Esc to cancel · …" line under the choices, and this prompt
1671
+ has none: it ends on its last choice, with the one key it names written
1672
+ into that choice ("No, and tell Claude what to do differently (esc)"). A
1673
+ turn that wanted to fetch a page in a mode that asks first sat on the
1674
+ dialog, with nobody asked, until the turn's hard ceiling. A numbered list
1675
+ with the cursor on it, under the dialog's top rule and reaching the bottom
1676
+ of the screen, now counts as the end of a dialog. It gets its choices as
1677
+ buttons, and no key buttons, since it names none.
1678
+
1679
+ - **A dialog left open mid-turn no longer says your message wasn't
1680
+ delivered** — when a dialog that opened partway through a turn went
1681
+ unanswered, or couldn't be answered from the chat, the turn ended with
1682
+ "your message wasn't delivered. Send it again". It had been delivered: the
1683
+ dialog came from the work it started, and resending it only queued a
1684
+ duplicate. Mid-turn it now says the bot stopped waiting on the turn, that
1685
+ Claude Code is still paused on the dialog, and that your next message
1686
+ brings its buttons back. Before a message goes in, the wording is unchanged,
1687
+ since there the message really wasn't typed in.
1688
+
1689
+ - **The last message of a long reply lost its formatting** — when a reply was
1690
+ split across messages at a point inside a code block, the splitter closed
1691
+ the block at the end of one part and reopened it at the top of the next, but
1692
+ then counted that reopening fence as a closer as well. The next part ended
1693
+ with a stray fence Telegram couldn't match ("Can't find end of Pre entity"),
1694
+ so it was rejected and re-sent as plain text, with its bold and code showing
1695
+ as raw `*` and backtick markers. Past two parts, every fence after the first
1696
+ cut was counted the wrong way round. Each part now starts outside a code
1697
+ block, with the reopened fence as part of its own text. The first line of a
1698
+ reopened block also keeps its indentation, which used to be trimmed off.
1699
+
1700
+ - **A quote under a list item no longer costs the message its formatting** —
1701
+ a `>` quote on the line right under a list item came out indented, as that
1702
+ item's continuation. Telegram only reads `>` as a quote at the very start of
1703
+ a line; anywhere else it is a reserved character, so the message was
1704
+ rejected and re-sent as plain text. The same went for a collapsible
1705
+ `<expandable>` quote written on an item's line. Quotes now always start
1706
+ their line, which is the only way Telegram draws them anyway. A `$` in a
1707
+ collapsible quote also stays as written; `$$` used to collapse to `$`.
1708
+
1709
+ - **Long replies stopped being replaced by a 200-character stub** — with
1710
+ Instant View on, any reply past 2500 characters — or one merely containing a
1711
+ markdown table — was swapped in chat for `text.substring(0, 200) + '...'` and
1712
+ a telegra.ph link. The answer never arrived, the stub was cut at a raw
1713
+ character offset mid-word with its markdown stripped out, and the only way
1714
+ back to what the model wrote was `/recap`. Telegraph is additive now: the
1715
+ reply goes out in full, chunked as usual, and the page URL hangs under the
1716
+ last chunk — or takes a chunk of its own when appending would overflow it. A
1717
+ telegra.ph outage costs the link, never the text. The table trigger is gone
1718
+ outright; `convertToTelegramMarkdown` has rewritten pipe tables into bullet
1719
+ lists for a long time, so there was nothing left to compensate for.
1720
+
1721
+ - **Turns started from a voice note, a photo, a text file, a Reddit summary,
1722
+ `/plan` or `/explore` had no catch-up** — `relayCatchUpIfMissed` is the
1723
+ safety net that compares what was relayed against the canonical assistant
1724
+ text in the session log and posts whatever is missing. Text messages,
1725
+ force-reply prompts and scheduled runs called it; these turns never did, in
1726
+ streaming or wait mode, so they also never updated the relayed tracker —
1727
+ leaving `/sync` comparing a fresh log against a stale baseline and offering
1728
+ to re-post an earlier turn's reply. The `/loop` command is deliberately still
1729
+ out: it concatenates several turns, and the single-turn comparison would
1730
+ either no-op or duplicate the last iteration.
1731
+
1732
+ - **`/restartbot` no longer kills a systemd-managed bot for good** — the restart
1733
+ ran `botctl recover` as a detached child, but `detached: true` escapes the
1734
+ process group and not the cgroup. Under systemd the helper was reaped along
1735
+ with the bot the moment it exited, before it reached the start half of its
1736
+ job, and the clean exit told `Restart=on-failure` there was nothing to fix.
1737
+ The bot now recognises that systemd is holding it up and exits `75` for
1738
+ systemd to bring it back, instead of trying to start its own successor. It
1739
+ checks the unit's `Restart=` first and refuses — while still running — rather
1740
+ than announcing a restart it cannot come back from. The shipped unit moves to
1741
+ `Restart=always`.
1742
+
1743
+ - **A lost hook could outrank the Stop signal and hang a finished turn** — the
1744
+ end-of-turn check refuses to finish while the hooks say a tool is still open,
1745
+ which is right: `claudegram_ask_user` long-polls for a button tap and the pty
1746
+ is silent for as long as it waits. But that count was checked *before* the
1747
+ Stop hook, on the reasoning that Stop only fires once every tool is done.
1748
+
1749
+ It does — which is exactly why a count that survives Stop cannot be a live
1750
+ tool. The hooks are `curl` calls into a loopback server, fired and forgotten
1751
+ (`>/dev/null 2>&1; exit 0`); a POST that fails takes its decrement with it,
1752
+ nothing retries, and nothing else ever brings the count down. One dropped
1753
+ request then outranked the only authoritative end-of-turn signal there is,
1754
+ and the turn ran to the two-hour ceiling with claude sitting idle at its
1755
+ prompt and its finished answer already written to the session log. A chat
1756
+ waited an hour and seven minutes past "Done" for a reply that never came.
1757
+
1758
+ Stop now wins, the stale count is logged and cleared rather than silently
1759
+ believed, and the count keeps guarding the path where it earns its keep.
1760
+
1761
+ - **Answering a dialog could end the turn and strand the session** — the
1762
+ end-of-turn check infers "claude is finished" from a quiet pty, the input box
1763
+ being back, no spinner, and the session log having moved. Every one of those
1764
+ is true in the moment after a relayed dialog is answered, and none of them
1765
+ mean what they usually do: the box is back because the dialog went away, and
1766
+ the spinner is missing because claude has not resumed yet.
1767
+
1768
+ A turn resolved in that gap does not just finish early, it takes the session
1769
+ down with it. The bot hands back an answer and forgets the turn, while claude
1770
+ carries on working with nobody listening — hooks arriving with no active turn
1771
+ to attach to and being dropped, output going nowhere, and every later message
1772
+ held against a screen that now does say "generating" until the ceiling
1773
+ rejects it. One live session spent 37 minutes unreachable that way, and
1774
+ `/stop` only reaches it while a message happens to be in flight.
1775
+
1776
+ The turn now waits for claude to show itself after a dialog is answered — a
1777
+ spinner, or a tool opening through the hooks — bounded at 15s so a dialog
1778
+ whose answer genuinely did end the turn still resolves. The Stop hook stays
1779
+ authoritative and is never waited past.
1780
+
1781
+ - **The PTY could not find the `claude` binary under systemd** — `CLAUDE_BIN`
1782
+ fell back to the bare name `claude`, which node-pty execs directly against
1783
+ the *service's* PATH. A systemd user unit gets the bare default, without
1784
+ `~/.local/bin`, which is where the native installer puts the CLI. execvp
1785
+ wrote "No such file or directory" into the pty and exited, so the bot saw a
1786
+ session that produced nothing and reported that the input box never appeared.
1787
+
1788
+ `resolveBin()` has searched `~/.local/bin` first on Linux since it was
1789
+ written, for this exact reason — the pty provider just never called it.
1790
+ @code_share1_bot had not completed a single turn since the day it moved to a
1791
+ systemd unit; it went unnoticed because the failure names a symptom two
1792
+ layers above the cause.
1793
+
1794
+ - **A dialog with a status bar under it is still a dialog** — `parseModal` took
1795
+ the last non-empty line and required it to parse as key hints, so anything
1796
+ claude drew beneath the footer (its `⏵⏵ bypass permissions on` status bar, a
1797
+ transcript warning, a welcome notice) made the parser answer null. The
1798
+ readiness loop reads null as "a screen we cannot drive" and falls through to
1799
+ the timeout, so the dialog that should have arrived in the chat as two
1800
+ buttons instead spent its whole ceiling being silent and came back as
1801
+ "Claude Code's input box never appeared".
1802
+
1803
+ This is how @code_share1_bot went quiet after a CLI update began asking about
1804
+ a folder it had been working in for weeks: the trust prompt was on screen,
1805
+ recognisable, and never relayed. The footer is now located as the lowest
1806
+ hint-bearing line rather than assumed to be last, bounded to three lines of
1807
+ chrome so a stale footer scrolled up in the transcript cannot pose as this
1808
+ screen's.
1809
+
1810
+ - **A stuck TUI now says what it is stuck on** — the warning named the symptom
1811
+ ("input box absent") and nothing else, so diagnosing the above meant spawning
1812
+ ptys by hand outside the bot to see a screen the bot had already read. It now
1813
+ logs the last dozen screen lines alongside the verdict.
1814
+
1815
+ ## [1.1.0] — 2026-08-31
1816
+
1817
+ The release that makes a bot shareable. Everything before this assumed one
1818
+ person on one machine; this batch adds the access model, the guardrails and the
1819
+ visibility that a bot with other people in it needs.
1820
+
1821
+ ### Sharing a bot
1822
+
1823
+ - **Admins and guests** (`9470e1d`) — `ADMIN_USER_IDS` names the subset of
1824
+ allowed users who may approve permission prompts and run lifecycle and
1825
+ transport commands. Unset, every allowed user is an admin, so single-user
1826
+ installs are unchanged. Includes a scope guard, a charter read before anything
1827
+ runs, and prompt-hold so a guest's request waits for an admin.
1828
+ - **Its own Unix account** (`e72ee84`) — `scripts/setup-shared-bot-user.sh`
1829
+ provisions the account that decides what is actually *reachable*: no sudo, no
1830
+ docker, its own checkout, and a `--verify` that becomes the account and tries
1831
+ to read the operator's secrets rather than reasoning about file modes.
1832
+ - **Resource ceilings** (`d8efbd9`) — MemoryHigh throttles before MemoryMax
1833
+ kills, CPUQuota leaves cores for everything else, IOWeight yields disk. Disk
1834
+ is reported rather than enforced, since only filesystem quotas would be honest.
1835
+ - **Per-bot model and effort** (`365d134`) — `/model` and `/effort` apply to the
1836
+ bot you ran them in, with an opt-in fan-out to the rest.
1837
+
1838
+ ### Added
1839
+
1840
+ - **`/prompts`** (`680c436`) — lists just the prompts you sent, one line each,
1841
+ without the replies. The fastest way to remember what a conversation was about.
1842
+ - **`/cost`** (`562c205`) — usage limits on a subscription, dollar totals on API
1843
+ billing, plus a running per-conversation total that Claude Code cannot keep
1844
+ because its own counter dies with every turn.
1845
+ - **`CLAUDE_PLUGINS`** (`7cdbf09`) — brings marketplace plugins into the agent.
1846
+ Enabling one in the terminal writes to a settings file neither transport
1847
+ reads, so its skills and commands were silently missing in Telegram.
1848
+ - **Claude Code's own slash commands** (`86d9622`) — `/commands` reports which
1849
+ of them work here.
1850
+ - **`EXTRA_MCP_CONFIG`** (`11dae19`) — load MCP servers you name yourself,
1851
+ without dragging in every server the machine has ever registered.
1852
+
1853
+ ### Fixed
1854
+
1855
+ - **Refuse to start on an unreachable admin** (`2f19ba1`) — an id in
1856
+ `ADMIN_USER_IDS` but not `ALLOWED_USER_IDS` can never act. This replaces a
1857
+ warning that went to a log nobody reads and surfaced days later as an approval
1858
+ sent to the wrong person.
1859
+ - **Truncated replies after a background task** (`6628922`) — a task reporting
1860
+ in mid-turn wrote a user-role record that the transcript reader treated as a
1861
+ turn boundary, dropping everything above it.
1862
+ - **MarkdownV2 code spans** (`11ab6fc`) — added the escaper they need, which has
1863
+ different rules from ordinary text.
1864
+
1865
+ ## 1.0.0
1866
+
1867
+ Everything before this changelog existed. See the git history.