Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 22:38
· 424 commits to main since this release
39d304e

Added

  • process stop and session close take --json: {"pid": <n>, "status": "stopping"} and {"session": "<id>"}, what their text says (ADR 34).
  • The history event has loads, how many loads its replay covers: more than 1 when an editor loads a session again before the agent has answered its last load, and recorded_updates, how many of its updates the transcript has (ADR 57).
  • A session_reopened event, by editor, says that the agent answered an editor's load of a session with success after answering its close: the session is open in the editor's process again, and the load's history follows, counting what it replayed across the close; what came while the session was closed isn't recorded, and recorded_updates says so: history: 4 updates replayed by the agent, 3 recorded (ADR 57).
  • Elicitations, the agent asking for input (elicitation/create): a form, or a URL to open, such as an MCP server's login. Headless, brnr advertises both modes, which claude-agent-acp needs for AskUserQuestion. brnr elicitation requests, show, accept, decline and cancel list, show and answer them; accept --field name=value (or a JSON object on stdin) is checked against the form before anything is sent, and a URL is shown, never opened. One outside any session is named with --pid. Events elicitation_request, elicitation_resolved and elicitation_completed, for watchers, bridges and editor sessions too; event wait --for elicitation; event notify runs for elicitation_request by default; prompt send --wait announces one on stderr; session status counts elicitations, and a session with one is waiting. The socket's pending has elicitations, and elicitation answers one. On an editor's session, answering is the experimental elicitation (ADR 68).
  • A command the process cuts off for falling behind catches up: event watch, event notify, event wait and the --waits ask the process whether it cut them off (was_cut_off, a new request), subscribe again, and read what they missed from the transcript before going on live, so a burst bigger than a peer's queue and the 64 MiB set aside (#117) no longer loses events. Where the transcript can't have them (log = false, log = "events" for acp, records skipped), or cut off 4 times in a row while catching up, the command says what it missed, an events-missed note, and exits 3 (ADR 69).
  • Every event, live and in the transcript, and every raw ACP record has its position in its process, seq; subscribe answers with the connection's peer, host_id and the seq it starts after, as session new --wait's ready report does; logged answers lost when a file has lost records it hasn't noted yet; and records-skipped says the positions it lost, first_seq and last_seq (ADR 69).
  • A peer_cut_off event tells the other peers that one was cut off, and the last_queued event it was sent, as the host log's peer-dropped now says too (ADR 69).
  • echo_as in a profile's editor part: "user_message_chunk" shows a message or context sent to the editor's session through brnr as the user's message, one user_message_chunk per block, for an editor that renders one outside a turn; "tool_call", "Message via brnr", stays the default. brnr's own notes stay tool calls (ADR 70).
  • Release candidates, vX.Y.Z-rc.N: a GitHub pre-release, and on crates.io (cargo install brnr --version X.Y.Z-rc.N --locked), while Homebrew stays on the last release. A release's notes take in its release candidates', so they say everything since the last release (ADR 40).

Changed

  • Breaking: a headless session's elicitation waits for an answer, where brnr declined it at once: an unattended run now waits on it. Set response_timeout (or --response-timeout), which has no default and cancels one nobody answered, never declines or accepts it (ADR 68).
  • Breaking: the headless permission_timeout is response_timeout, and session new and session resume's --permission-timeout is --response-timeout: one timeout for the user's responses, which answers a permission request nobody answered reject_once (else cancels its turn) and an elicitation cancel. Rename the key in your profiles and the flag in your scripts; a profile with permission_timeout fails to load (ADR 68).
  • Breaking: prompt send's options go before its prompt: from the prompt's first word on, every word is the prompt's, as after --, so an option after the text (brnr prompt send $s "fix it" --wait) is sent as text; put it before the text. - (stdin) goes alone: a word after it fails the command; quote a prompt that starts - (ADR 63).
  • Breaking: prompt send --timeout without --wait fails, as session new's does, where it was ignored; drop it or add --wait (ADR 21).
  • Breaking: event log has no -f: use --follow. A word with one dash is an argument there and in session new and resume, as for the other commands, not an unknown option (ADR 63).
  • Breaking: a session's lock is $BRNR_HOME/sessions/<id>.lock, beside its transcript, where it was $BRNR_DIR/sessions/<id>.lock. Two processes whose runtime directories differed (on Linux, a shell with XDG_RUNTIME_DIR and a cron job without it) but shared ~/.brnr each took a lock of their own, so both could own one session and append to one transcript, and each environment's commands saw only its own process. Now the second resume is refused, naming the process and its runtime directory (sess-1 is running in process 4466 with runtime directory /run/user/1000/brnr (BRNR_DIR=/run/user/1000/brnr reaches it)), with or without --take-over; session list there shows the session unreachable with that pid; commands on it, and an editor's load of it, are told the same, with the directory after BRNR_DIR= quoted for the shell where it needs to be; and doctor lists locks left by processes that are gone under session locks. log = false still writes the locks there. A lock left in $BRNR_DIR/sessions/ is read by nothing: remove the directory. How the runtime and state directories are found, and how a session id (file_name) and a cwd (project_key) become file names, are fixed for 1.x (ADR 3, ADR 65).
  • Breaking: brnr acp no longer drops the editor's fs and terminal client capabilities, in strict mode or without: the agent gets them as the editor offers them, its fs/* and terminal/* requests go to the editor, and the editor's answers come back to it. Whether real editors then serve unsaved buffers and their terminals as they do run directly isn't checked yet (ADR 67's real-editor checks, #216). There is no setting to drop them again: whether to serve them is the editor's. A headless session still offers neither, and the host log has no capabilities-dropped record (ADR 67).
  • Every side-channel action on an editor's session (send, context, cancel, permission, config, close) stays experimental, opt-in by name, for all of 1.x; one leaves experimental only by an ADR with evidence from real editors (ADR 67).
  • From 1.0.0, what docs/interface.md marks Covered is kept compatible within a major version: the command line, --json, exit codes, events, the protocol of the bridges brnr starts, transcripts, where brnr's files are, config and what brnr acp passes through. Text output, error wording, host logs and the control socket are not covered. Until 1.0.0 nothing is kept for compatibility, as before (ADR 64).
  • event notify on the socket, cut off for falling behind while its command runs, lets the command finish and catches up, where it stopped the command and exited 1; a started bridge (--stdin) is cut off as before (ADR 69).
  • The adapters are built from claude-agent-acp 0.89.1 (brnr-claude-adapter) and codex-acp 2.2.2 (brnr-codex-adapter) (ADR 39).

Removed

  • Breaking: the brnr crate's public library API is removed: its modules (brnr::render, brnr::schema, brnr::json and the rest) are private, and its one public item is brnr::run, the command line as a function. Run brnr with --json, or call brnr::run, instead; a typed facade that mirrors the command line follows #150 (ADR 66).

Fixed

  • A detached process's own stderr (host-stderr in the host log) is read in pieces of 64 KiB at most, as the agent's and a bridge's are, where a line of any length was held whole. The agent's stderr pieces end between characters, so a character the 64 KiB boundary cut is no longer two U+FFFD in the host log; a line of exactly 64 KiB is one record, not one and an empty one; and a failed start's tail cuts a long line between characters (ADR 11, ADR 51).
  • brnr prompt send $s explain ls -h sends explain ls -h: -h and --help print the usage only before the prompt, where they printed it, sending nothing, from anywhere in it (ADR 63).
  • session status --json without a session prints its usage, and an option session status, session close or process stop doesn't take is said as unknown, where each was taken for the session or pid (no session --json) (ADR 63).
  • session list, process list, doctor and skill say which option they don't know, as the other commands do, where they printed their usage (ADR 63).
  • Text says in words what --json has as a value (ADR 34): a failed turn is turn failed: boom (control), without JSON quotes; an exit is agent exited with code 1, agent killed by SIGTERM or agent exited (status unknown) (ADR 11), in event watch, event log, event notify's BRNR_TEXT and event wait --for exit; event watch --pid shows each session's whole id, to paste into the next command (ADR 13); and session status says working for a busy session whose turn time it doesn't have, and waiting for an approval for one that is waiting, where it said idle.
  • permission requests with no session lists the approvals in the processes that answer, and exits 0, when one doesn't: it passes over a process whose status went unanswered, as process list and session list do, saying process <pid> is not answering; its approvals aren't listed on stderr, instead of waiting for it again and failing with process <pid>: not answering (ADR 27, ADR 3).
  • session list shows LAST ACTIVE in UTC, in --json and text alike, and orders rows by the time each names: an agent's updatedAt with an offset (2026-10-11T08:00:00+02:00) was shown hours off and sorted by its digits. It is now written as brnr writes its own times (2026-10-11T06:00:00.000000Z); one that isn't an RFC 3339 time is shown as the agent gave it, said on stderr, after the sessions with a time (ADR 63).
  • An editor's session/load through brnr acp records the agent's replay only when brnr has no transcript of the session, marked replayed, with a history event either way, as a headless load does. Loading a session already open in the editor's process no longer records its history again or leaves its unfinished tool calls running in session status, and a load keeps the title and commands the replay gives. Loads that overlap share one replay, recorded marked until the last is answered, and one history event, rather than the later ones' replay being recorded as live. The editor still gets the replay as the agent sent it (ADR 57).
  • session status no longer lists as running the tool calls a cancelled or failed turn left unfinished: a turn's tool calls end with it (ADR 34). A tool_call again with the id of a running call updates that call, with no second entry and no second start (ADR 23).
  • A session closed in a process (session close, session resume --take-over, a process's last session) is let go of, and the close answered, once the process has written its records of it, for 2 s at most, as an exit is: a resume elsewhere appends after its session_closed, and a load there finds its transcript and doesn't record the history again. Meanwhile event log of it waits for those records, and session resume and session delete say it is closing there, free in 2 s at most (ADR 48).
  • A session whose load fails after the agent has replayed its history (session resume --pid, or a start) is held, and the command answered, the same way, once the process has written what it recorded of the replay, where its lock went at once and a resume elsewhere could write before those records, or record the history again (ADR 48).
  • After an ACP line nested deeper than 128, the host takes a stack that deep only while it keeps something of the line, not for every event after it (ADR 26).
  • A started bridge's stderr is read as bytes and decoded lossily, so a line that isn't UTF-8 no longer stops the reading and kills the bridge with SIGPIPE on its next write; a line longer than 64 KiB goes to the host log in pieces of that, as the agent's stderr does (ADR 35, ADR 51).
  • prompt send --interrupt while no turn runs but the last turn's turn_ended waits for a steer's answer is held, ahead of what is held, and goes once that turn has ended: before, it started a turn at once, and if that turn ended first the earlier turn's turn_ended was lost, its message's --wait timed out, and the late steer was put in the wrong turn (ADR 56).
  • A headless process with stop_when_idle waits without using a whole CPU while the agent is slow to answer a session's session/close, once the session's idle time has run out (ADR 12, ADR 16).
  • The crate on crates.io carries NOTICE, as Apache-2.0 asks a redistribution to (ADR 47).
  • brnr works started with SIGCHLD ignored, as some supervisors leave it. On Linux, brnr acp and brnr session new failed to start their process (No child processes), and a process never saw its agent exit, so one in the foreground never exited. brnr sets SIGCHLD to its default for itself; what it starts, the agent among it, still finds it ignored, as it would started directly (ADR 2, ADR 8, ADR 9).