From 3b7b0116a0fd6aa9ccd46e692701eabe7fb1bc1c Mon Sep 17 00:00:00 2001 From: royosherove <575051+royosherove@users.noreply.github.com> Date: Sun, 22 Nov 2026 08:01:01 +0200 Subject: [PATCH] chore: release v0.7.0 Changelog section for 0.7.0, with the Telegram fixes of #157 added, and the version bump. The plan in futureplans/ gains where things stand, what is merged and not yet seen on a live bot, and the pi-durable note. --- CHANGELOG.md | 23 +++++++++++++++++++++++ futureplans/next-phase.md | 33 +++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 59 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6df78f7..c94a3ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to `@inceptionstack/roundhouse` are documented here. ## [Unreleased] +## [0.7.0] — 2026-11-22 + > **Upgrade notes.** Needs Node >= 22.19 and pi 1.x. > - An empty allowlist now refuses everyone: set `chat.allowAll: true` if an > open bot is intended. @@ -16,6 +18,27 @@ All notable changes to `@inceptionstack/roundhouse` are documented here. > the real @username. On Slack a name no longer grants access at all; > Slack users are admitted by paired id. +### Fixed — Telegram answers +- **Text was dropped at the 4096-character limit.** A long answer is now + split in its markdown source so that each message's HTML fits; nothing is + truncated, and a code block or table that spans messages is reopened in + the next one. No message is sent without visible text. +- **A rate limit (HTTP 429) could cut an answer short or leave a hole in + it.** Telegram's wait is now honoured, for up to 90 s per answer, and + Telegram is not called inside a wait it asked for. After a part that a + rate limit holds back, nothing later is sent, and the log says how much + was not delivered. Edits are spaced 1.1 s apart (3.1 s in groups). +- **Text sat unsent while the agent ran a tool.** A streamed answer now shows + what it has when the next edit is due, not when the next piece arrives. +- **Emphasis.** `__init__`, `snake_case_names` and `2*3*4` stay as written; + `**Note:**text` and bold in CJK text are bold. +- **Tables** are boxed with plain-text cells; links in cells are listed under + the table, and a row with more cells than the header keeps them. Rows + streamed across a message boundary get the header again. +- Lines ending in CR LF are read like any other. +- Notices that do not answer a message (boot, cron, sub-agent reports) are + retried after a rate limit and fall back to plain text like any answer. + ### Fixed — the bot while a turn is running - **Nothing was received from Telegram during a turn.** The Chat SDK's polling waits for the message handler, and the handler waited for the diff --git a/futureplans/next-phase.md b/futureplans/next-phase.md index c23bb23..246da00 100644 --- a/futureplans/next-phase.md +++ b/futureplans/next-phase.md @@ -9,6 +9,39 @@ Two sources: How to use this file: pick an item, re-read the code it names (it will have moved), settle the open questions first, and delete the item when it ships. +## Where things stand (2026-11-22) + +Release 0.7.0 holds everything below; `CHANGELOG.md` has the detail and the upgrade notes. + +| PR | What it did | +|---|---| +| #153 | Security: the allowlist bypass by display name, fail-closed access, `dmOnly`. pi 1.6. Dependencies without known advisories | +| #154 | A flaky test | +| #155 | Compaction thresholds as a fraction of the model's window, flush model opt-in, persona and tool notes in the system prompt, one gateway per home directory, a stop that always ends the process | +| #156 | The bot keeps receiving during a turn; `/new`, `/model`, `/think`, `/cancel` act on the conversation; images go to the model; requests cut off by a restart are listed | +| #157 | Telegram rendering, splitting and delivery (see "Telegram answers" in `CLAUDE.md`) | + +Working on this repository: + +- Tests write under `$HOME`. Run them with a throwaway home: `HOME=$(mktemp -d) npm test`, and `npm run typecheck`. +- `main` is protected: a pull request, the `test` check on an up-to-date branch, and every review thread resolved. An automated reviewer comments on each push; answer its threads and resolve them. +- A release is a version bump in `package.json` and `package-lock.json`, the changelog section, and a `v*` tag, which publishes to npm. +- `CLAUDE.md` describes what is not obvious from the code. Read the section for the area before changing it. + +### Merged, and not yet seen working on a live bot + +Confirmed live on 2026-11-21: `/status`, `/model`, `/think`, `/verbose`, `/crons`, ordinary turns, a restart that leaves no process behind, and `/restart` sent during a turn (handled at once; the next start listed the request that was cut off). Still to try by hand: + +- A message sent while a long turn runs, then `/cancel`: the turn should stop at once and the message should not be lost. +- `/new`: the next message should start an empty conversation, also after a restart in between. +- An answer longer than one message, with a table and a long code block: no text missing, the code block and the table header repeated in the second message. +- A photo: the model should describe what is in it, not a file path. +- A day of normal use: `/status` should show compaction far less often than before on a 1M-window model, and a prompt-cache hit rate that stays high between messages. + +### Considered and deferred: pi-durable + +pi-durable was looked at as a possible backend. At the time it was an experimental harness of its own, separate from the in-process SDK that `src/agents/pi/pi-adapter.ts` uses, so adopting it means a second adapter, not a flag. If it matures, prototype it behind the `AgentAdapter` seam (`src/agents/registry.ts`), next to the pi adapter, and compare what survives a gateway restart. B6 and B7 below are the features it would help most. + ## A. Requested by the owner ### A1. Review the scheduler diff --git a/package-lock.json b/package-lock.json index ddf1eaa..ed0f42e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@inceptionstack/roundhouse", - "version": "0.6.3", + "version": "0.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@inceptionstack/roundhouse", - "version": "0.6.3", + "version": "0.7.0", "license": "MIT", "dependencies": { "@chat-adapter/slack": "4.45.0", diff --git a/package.json b/package.json index ad6e10b..28458e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@inceptionstack/roundhouse", - "version": "0.6.3", + "version": "0.7.0", "type": "module", "description": "Multi-platform chat gateway that routes messages through a configured AI agent", "license": "MIT",