Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
33 changes: 33 additions & 0 deletions futureplans/next-phase.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading