Repository navigation
v0.10.0
Added
turn_ended, the status'slast_turnandprompt send --wait --jsonhavetokens: the counts the agent reported in its answer to the prompt (ACP's unstableusage),total,input,output,thought,cached_readandcached_write, each null where it gave none that is a count, and null when the answer has nousageobject. brnr adds nothing up.session statusshows the last turn now, in text and--json, and a turn's text line ends with its counts:turn ended: end_turn (control); tokens: 1.2k total, 1.0k input, 234 output(ADR 4.4).session listandsession statussay which session a fork came from (forked_from, a FORKED FROM column in the list), also once its process has ended: the fork's transcript records it in its first record,session_opened. That is so for a forksession forkmakes and for one an editor makes throughbrnr acp(session/fork) (ADR 3.12, ADR 5.1, #238).- Every event has the brnr process's
pid, besidehost_id, and so does every lineevent log --jsonandevent watch --jsonprint: therecords_skippednote hasts,host_id,pidand, in a session's file,session, andevents_missedhaspid;subscribe's answer haspidtoo (ADR 5.9, #314). elicitation show --json, and the elicitations in the socket'spendinganswer, have the process'spid, aselicitation requests --json's rows do (ADR 8.2, #150).--eventstakes the notes' names,records_skippedandevents_missed, which are shown whatever it chose:event log --events records_skippedlists only a transcript's gaps (ADR 5.9, #314).- The host log notes each subscription on the control socket,
peer_subscribedwith the connection'speer, once the connection gets the events that follow (ADR 10.2, #333). - A process says which brnr it is: its
<pid>.jsonand the socket'sstatushavebrnr, its version, andprotocol, the version of what its socket speaks. A command that fails because the process is another brnr (an editor's process outlivesbrew upgrade brnr) says so, and how to restart it:brnr process stop <pid>andbrnr session resume <session>for a headless one, the agent restarted in its editor for an editor's. Events a command asked for that the process doesn't have are said on stderr, and the command goes on (ADR 8.8, #149).
Changed
-
Commands ask every process for its status at once, so processes that don't answer cost about 5 s in all, not 5 s each. A process serves at most 128 connections at once, and answers the next
too many connections: 128 openand closes it (ADR 10.4). -
Breaking: a socket or bridge request with a field its
cmddoesn't take is refused,command_unknown, and nothing is done; it was done without it.allow's andreject's oldoptionis such a field now,command_unknown, notcommand_invalid(ADR 8.8, #149). -
subscribewith an event the process doesn't have subscribes to the rest, and names it in its answer'sunknown_events, so that a bridge written for a newer brnr gets an older process's events; it refused the subscription,event_unknown, which insubscribeis now only for a note's name; a profile's bridgeeventsstill fail with it for an event brnr doesn't have (ADR 8.8, #149). -
Breaking: every error brnr reports as data is
{"code", "message"}: a socket or bridge reply that fails is{"ok": false, "error": {"code": "session_not_found", "message": "no session s"}}, not"error": "<text>"; so are theerrorofturn_ended,last_turn,--wait --json's turn,session delete --json,process_exited,events_missed,records_skippedand the host log's failure records. The code is a word that keeps its meaning (docs/interface.md lists them); the message is for people. An error the agent answered with isagent_failed, the agent's JSON-RPC error whole asrpc_error: readerror.rpc_error.codewhere you readerror.codebefore. A failed command with--jsonprints{"error": {…}}on stdout, and stderr saysbrnr: <message> [<code>](ADR 8.7). -
Breaking: a usage error exits 2, not 1, in every command: an unknown command, verb or option, an argument missing or one too many, a value a flag can't take (
event wait --for soon,--events nope,brnr skill nope), flags that don't go together (--timeoutwithout--wait), orbrnror a group with no command. Nothing is done; brnr says what was wrong, then the command's usage, on stderr. An operation that fails still exits 1. A script that took 1 for both tells them apart now (ADR 8.3). -
Breaking:
--helpand-hprint the usage on stdout and exit 0 in every command:doctor --help,skill --helpandskill install --helpprinted on stderr and exited 1, andbrnr acptook them only as its first word (ADR 8.3). -
brnr acp --helpnames its arguments<p>and<agent>, asbrnr --helpdoes (ADR 8.3). -
Breaking:
brnr acpexits 1 for a config error, not 2, as the control commands do: 2 is a usage error only (ADR 8.3, #338). -
Breaking: brnr reads a line nested up to 128 levels (
[[1]]is 2), about what serde_json and ACP's Rust SDK read, where it read any depth on a thread whose stack it sized to the line. A deeper line from the agent or the editor is treated as one past 32 MiB: with an editor it goes on unread and unrecorded, headless it is dropped, and a newline_too_deepevent (from,max_depth,relayed) says so; brnr tracks nothing of it, so a permission request that deep isn't listed, answered from outside or timed out. The commands read what brnr wrote (answers, events, transcripts) up to 256 levels, and fail, saying so, past it. No event or timer runs on a thread of its own any more, and--jsonoutput indented stays small (ADR 2.5, #268, #259). -
A process whose
statusanswer has an agent's turn error nested past 128 is answering: the commands that look for processes (session list,permission requests, …) no longer pass it over as not answering (ADR 2.5, #323). -
Breaking: brnr refuses a config file that isn't yours, or that the group or others can read or write, or whose folder isn't yours or they can write, or, on macOS, either with an access control list (
chmod -Nremoves it), as ssh does its keys: the file names the commands brnr runs and can hold MCP secrets. Every command that reads it fails, naming the path, the owner or mode, and thechmodorchownthat fixes it, andbrnr doctorfails its config check the same way; brnr doesn't change the file. A config written as 0644 now fails:chmod 600it. A symlink is followed, and the file it points at, and that file's folder, are checked (ADR 9.4, #271). -
The decision records are 11 topic records, each decision a numbered section, cited as
ADR T.k(ADR 3.9: ownership is a per-session lock). Entries of releases before this one cite the former numbers, 1 to 71; docs/adr/README.md maps each to its section now. -
Breaking:
brnr acpdrops the editor'sfsandterminalclient capabilities from itsinitializeagain by default, as ACP v2 has neither, and notescapabilities_droppedin the host log. A profile passes them by name,client_capabilities = ["fs", "terminal"]in its editor part, and strict mode passes both, as stable ACP v1 has them (ADR 2.7, #272). -
The Claude adapter is built from claude-agent-acp 0.90.0 (
brnr-claude-adapter) (ADR 11.3). -
A command refused for where its session is says it in the same words, whichever command it is:
session deleteof a session open in a process sayssess-1 is running in process 4466: close it first (…), andsession resumeandsession deleteof one whose process doesn't answer, is opening it or isn't listed say which, without offering--take-overor closing it first, which can't work there (ADR 3.9, #281). -
Breaking: each cwd has a project folder of its own: a new session's transcript goes in
~/.brnr/projects/<claude>-<hash>/,<claude>the cwd as~/.claude/projectsnames it and<hash>8 hex digits of a hash of the cwd (-Users-me-src-3db3a304), where/a-band/a/b, and on macOS/Aand/a, shared one folder. Transcripts already written stay where they are; they are an older brnr's, which isn't read (below). A tool that joins brnr's folders to~/.claude/projectsby the exact name now matches by the prefix (ADR 9.2, #120). -
Breaking: the event
exitedisprocess_exited, itsstatusexit_statusand itsreasonerror:--events process_exited,BRNR_EVENT=process_exited, and a bridge'seventswith the new name (ADR 5.9, #314). -
Breaking: transcript and host-log records are snake_case and named subject first, as ADR 5.9 lists them:
session-openedissession_opened,records-skippedrecords_skipped,events-missedevents_missed,peer-droppedpeer_dropped,made-privatepath_made_private,session-log-failedsession_log_failed, and so on;sendismessage_accepted(orcontext_acceptedfor context),cancelcancel_requested,startedprocess_started(itsrequeststart_request),stoppingstop_requested,signalsignal_relayed,host-signalsignal_received,panicprocess_panicked,host-stderrprocess_stderr,idle-timeoutidle_timed_out,editor-closed-stdineditor_stdin_closed,not-sent-to-editoreditor_message_dropped. Anacprecord'sdiragent-stderrisagent_stderr(ADR 5.9, #314). -
Breaking: every record's head names the session
sessionand the brnr processpid, where it hadsession_idandhost_pid. A transcript or host log an older brnr wrote isn't read (below). A session resumed starts a new transcript in its cwd's folder; nothing goes on in an older brnr's file: one in the way is renamed<name>.older.jsonl, which the host log'ssession_log_movedsays, andsession deletepasses one over.session delete --purgedeletes the files set aside too, every file of the session's id it finds, and lists each (ADR 5.9, ADR 8.1, ADR 9.2, #314). -
Breaking: every record of a transcript and a host log starts with its format,
"format":1, which stays 1 for all of 1.x. A record without one, as every brnr before this wrote, or in another format, isn't read:session listandsession resumepass over its file, and a file whose newest record is one;event logsays<file>: records an older brnr wrote, before transcripts had a format, not shown (ADR 5.10)(orrecords in format 2; this brnr reads format 1);session resumesays it too; andbrnr doctorlists such files underfile formats, which replacesolder files.event logno longer guessesno events in … (an older brnr wrote it). Nothing is appended to such a file: one in the way of a session's is set aside,<name>.older.jsonl, as an older brnr's is (ADR 5.10, #70). -
A session's
session_openednames the process'sprofileandagent, andsession listandsession resumetake the session's cwd, profile and agent from thesession_openedof the process that last served it: a session resumes from its transcript alone. Pruning~/.brnr/hostsmadesession resumefail withno agent(ADR 3.11, ADR 5.10, #70). -
Breaking:
bysays who acted,editor,agentorcontrol;peerwhich connection asked;reasonwhy.message_droppedandcontext_droppedhavereasonwhere they hadby;session_closedisby: control, reason: closeoridle, orby: editor, reason: close;session_deletedbybrnr session deleteisby: control;permission_resolvedandelicitation_resolvedareby: controlwith thepeerthat answered, orreasontimeoutorcancel, and a timeout'scancel_requestedisby: control, reason: timeout(ADR 5.9, #314). -
Breaking: the other fields ADR 5.9 renames:
peer_cut_off's,peer_dropped's andwas_cut_off'slast_queuedislast_queued_seq;events_missed'safteranduntilareafter_seqanduntil_seq; an elicitation'smessage,tool_callandscope_request(inelicitation_request,pending,elicitation show --jsonandelicitation requests --json) aretext,tool_call_idandscope_request_id;records_skipped'sacpisacp_count;session_openedhas one shape in the events file and the host log (session,cwd,events_log,acp_log,host_log,forked_from); the bridgestatusreply's sessions havesessionandevents_logwhere they hadsession_idandlog;event notify'sBRNR_SESSION_IDisBRNR_SESSION; and in the host logbridgeispeer,bridge_started'spidbridge_pid,bridge_exited'sstatusexit_status({code},{signal}or null),capabilities_dropped'sdroppedcapabilities, the editor records'idandrequest_idrpc_id,steer_refused'sanswerresponse,context_attached'seditor-prompteditor_prompt, andpeer_dropped's andeditor_message_dropped'sreasonthe wordsfell_behindandagent_stdout_ended(ADR 5.9, #314). -
Breaking: a profile's bridge whose
eventsnames a note (records_skipped,events_missed) fails to load, andsubscribeto one is refused: the process never sends one (ADR 5.9, #314). -
Breaking:
permission allowandrejectname an option with--option-id <id>, ACP'soptionId, not--option <id>, which is a config option's only and an unknown option there (exit 2). The socket'sallowandrejecttakeoption_id, and refuseoption, answering nothing; anoption_idthat isn't a string, null too, is refused the same, not read as absent (ADR 8.1, #311). -
Breaking:
prompt sendtakes its prompt as--prompt <text>, or--prompt -for stdin, assession newdoes:brnr prompt send $s --prompt "fix it". Words after the session are a usage error (exit 2), and the rule that options go before the prompt is gone (ADR 8.1, #311). -
Breaking: a duration in
--jsonand the socket's replies has no unit in its name:uptime_secondsisuptime(process list,session status),turn_secondsturn_elapsed(session status) andtimeout_secondstimeout_left(permission show,elicitation show) (ADR 8.1, #311). -
Breaking: a profile's
logis a string,"all","events"or"off":log = falseislog = "off", andtrueandfalsefail to load, asbrnr doctorsays (ADR 6.1, #311). -
Breaking: a bridge is a program and its arguments, as an MCP server is:
command = "brnr"andargs = ["event", "notify", …], notcommand = ["brnr", "event", "notify", …]. A listcommandfails to load, asbrnr doctorsays (ADR 6.1, #311). -
Breaking: one session's files in more than one project folder (a session resumed with
--cwdhas one in each) are one transcript.event logshows them all, merged by their records' time, the raw ACP of each with--events acp, and--lastcounts in what is merged; before, it showed the newest file only, so a session loaded in another cwd showed none of its history.session resumetakes its cwd, agent and profile from the newest record of them all, andsession listhas one row of the session, with that record's cwd. A script that read the newest file's records only gets every folder's now, and a--lastof them: to read one folder's records alone, read the file theevents_logof itssession_openednames (ADR 5.1, ADR 3.11, #121). -
Breaking:
session resume --profile pof a session brnr has a transcript of runs p's agent when p names one, not the agent the transcript recorded. Before, the process ran under p with the recorded agent, and nothing said so. A profile that names no agent keeps the recorded one, and-- <agent>still overrides both. To keep the recorded agent under p, give it after--(ADR 3.11, #341). -
Breaking: a command that lists prints an object, not a bare array:
process list --jsonis{processes},session list --json{sessions},permission requests --jsonandelicitation requests --json{requests}, anddoctor --json{checks}, asdoctor --report --jsonhas it.jq '.[]'isjq '.sessions[]'(ADR 8.2, #150). -
Breaking:
droppedis the messages dropped, each{message, text, reason}as itsmessage_droppedevent has it:--wait --json's is a list, empty or with the message whose drop ended the wait, where it was the reason or null;prompt cancel's andqueue's, and the socket'scancelandqueuereplies, have each message'sreason(ADR 8.2, #150). -
Breaking:
permission requests --jsonhas the agent's options whole,{optionId, name, kind}, aspermission showhas them, not{option, kind}(ADR 8.2, #150). -
Breaking:
agentis{program, name, version}inprocess list,session listandsession status:.agentin the lists is.agent.program.nameandversionare what the agent says it is ininitialize(agentInfo), null where brnr doesn't know them;session statusleft them out (ADR 8.2, #150, #335). -
Breaking:
process list --json'sowneriseditororheadless, null for a process that doesn't answer, which its newstatesays:starting,running,stoppingorunreachable. Itssessionsare{session, state}, assession listhas them, not ids (ADR 8.2, #150). -
Breaking:
session status --jsoncounts withheld_count,context_count,pending_countandelicitation_count, notheld,context,pendingandelicitations, which are lists inqueue listandpending; so does the socket'sstatusreply, for the process and each session.held_byislock_pid,shared_byshared_pids, and the host log'ssession_sharedhaslock_pid(ADR 8.2, #150). -
Breaking:
event wait --jsonprints one shape for each--for, however the wait ended:idle{session, state, last_turn}(stateidle, orinactiveonce closed), not{"event": "idle"}or the event that ended the wait;permissionandelicitationthe request aspermission showandelicitation showprint it, also when it came while the command waited;turntheturn_endedevent;exittheprocess_exitedevent, which for a process killed hasts,host_id,pid, andexit_statusandseqnull, anderror(ADR 8.3, #150). Text saysidle: <stop reason>for a session idle already too. -
Breaking:
session fork --json'sfromisforked_from, andsession delete --json'srecordedisrecorded_in:recordedishistory's boolean (ADR 8.2, #150).
Fixed
- The editor's stdin closes when the agent's does, as on a pipe: after
brnr process stop, the agent closing its stdin or exiting, the editor's next write tobrnr acpfails (EPIPE). What it wrote once brnr knew the agent's stdin had closed is neither sent nor recorded as sent, and the host log notesagent_stdin_closedandeditor_bytes_droppedwith how many bytes. An agent that closes its stdin itself is found out by the write that fails to reach it: that one line is still recorded as sent, and its request waits. Before, every write went through, and brnr recorded each line as sent to the agent and threw it away (ADR 2.6, #330). - A request on the control socket or a bridge's stdout is read up to 32 MiB: a longer one, which grew the process's memory as far as it went, is answered with an error, noted in the host log (
peer_dropped,reasonline_too_long) and the peer cut off (ADR 10.3). - A process that runs out of file descriptors waits before accepting again, 10 ms doubling to 1 s, instead of spinning (ADR 10.4).
- A request on a subscribed connection (
prompt send --wait,event watch,event notify) waits 5 s for its answer, and a request's write 5 s for the process to take it, then fails withnot answering, instead of waiting for ever. So does connecting to a process, in every command: on Linux a stopped process whose backlog is full held a connection for as long as it stayed stopped, and a command that found the processes left a thread blocked on each. An error the process says before it closes the connection is the command's error, notthe process closed the connection(ADR 10.4). - A process killed but not yet reaped (a zombie) counts as gone:
session list,process listand every other command that looks processes up drop it, removing its metadata and socket, anddoctor --fixremoves what it left, asevent notifyand the other commands that catch up already counted it. On macOS it was listed as not answering (ADR 3.7, #313). event waitwaits while an approval or an elicitation is waiting, also one whose turn has ended, and says the session is idle once it is answered;--for exitprints theprocess_exitedit makes for a process gone without one only once it has seen the process exit, and fails, 1, when the connection fails while the process lives. A count a process's status doesn't have failsevent waitandsession status, saying which, and isn't taken as 0 (ADR 8.3).- A permission request or an elicitation the agent cancels with
$/cancel_requestends: it is gone frompermission requests,elicitation requestsand a bridge'spending, the session is no longerwaiting(sostop_when_idlecounts again), and itspermission_resolvedorelicitation_resolvedsaysby: agent. In a headless session brnr answers a permission requestcancelledand an elicitationcancel, as ACP has a cancelled request answered; in an editor's session the editor gets the notification and answers it. An answer to it after that fails and sends nothing. brnr passed the notification over, and the request stayed listed, waiting for an answer the agent no longer took (ADR 4.5, #308). - What reads transcripts holds every part of their path to the rules they are written by:
session list,event log,session resume,session delete, catching up anddoctordon't look in, or read through, a symlinked$BRNR_HOME/projects,hostsor state directory, nor read a transcript or host log with another hard link or of another user's, anddoctor --fixmakes nothing private through one: it changes a mode through what it opened, not by name. A symlinkedprojectslisted the sessions in whatever it pointed at (ADR 9.3, #302). brnr doctorwarns of a state directory,hostsorprojectsthat isn't a directory, where it said a private one was fine, and names the problem of the path it gives as an example (ADR 9.3).doctor --reportredacts the MCP secrets (ADR 9.1) in a host-log line nested deeper than 128, and shows it as a record, as it shows the others; it showed such a line as written, so an older brnr's unredacted secret in it was in the report. The line is read as transcripts are (ADR 2.5, ADR 11.5, #303).- A flag's value is never taken as a request for help:
brnr session new --prompt -hsends-has the prompt, where it printed the usage, asprompt sendalready did (ADR 8.1). - A watcher cut off while its process stops reads what it missed from the transcript, where it could fail with
the process closed the connection: a stopping process hangs up on the question whether it cut the watcher off, so the watcher waits for it to go and asks its host log (ADR 10.2, #275). - A command cut off and catching up, whose process stops while it subscribes again, reads the transcript to its end, where it could exit 3 with an
events_missednote,the process closed the connection: the process hung up before it said its transcript had what the command missed, so the command now waits for it to go, as it does when the process hangs up on whether it cut the command off (ADR 10.2, #329). - A start whose
session/loadthe agent fails, after replaying the history, records the last message replayed, as an editor's and a bridge's failed load do; it was lost (P3, ADR 5.6, #291). - The editor's
session/loadthat the agent fails, after replaying the history, holds the session's lock until the process has written what it recorded of the replay, 2 s at most, as a bridge's and a start's do, andstatuslists it as closing meanwhile. Its lock went at once, and a resume in another process could write before those records (ADR 5.5, #291). - The editor's
session/resumethat the agent fails, of a session the editor closed moments before, holds the session's lock until the process has written the close's records, 2 s at most, as a failed load does. Its lock went at once, and a resume in another process could write before thesession_closed(ADR 5.5, #304). - Messages and context held in a session whose load the agent fails, or in one the agent opened that isn't the process's to serve, are dropped with their
message_droppedandcontext_droppedevents,reasonclose, with nosession_closedafter; they went without a word (P3, ADR 5.2, #304). - A Claude fork can be prompted in the process that forked it, where its first prompt failed with
Session not found: claude-agent-acp 0.90.0 opens the session it forks.adapters/check.py --brnrchecks a fork prompted and closed in one process, and its parent prompted after (ADR 3.12, ADR 11.3, #227). - A process whose disk stalls as it exits can be ended with a signal (Ctrl-C,
kill), and says on stderr how much of its records it didn't write; until then it waits for the disk, as before. A panic lets go of the process's sessions before it waits, as an exit does (ADR 5.5, #165). - A bridge's load of a session (
session resume --pid, an agent withoutsession/resume) finds its transcript in any folder, and one the process served and closed moments before, its logger behind, where it recorded the agent's replay on top of the history again; so does the editor's load of one its process served and closed (ADR 5.6, #190). - A load after one that failed records the history the agent replays: the events file a failed load leaves, holding only its openings, no longer counts as brnr's transcript of the session, for
session resume, a bridge's resume or an editor'ssession/load(ADR 5.6, #191). - A process counts a session as having a transcript once it has recorded something of it beyond its opening, as the disk does: a load there after one that replayed and then failed, its logger behind, no longer records the history again, and one after a session closed with all its records skipped by a slow disk records it, as another process's would (ADR 5.6, #247).
- A load that replays and then fails, the editor's or a bridge's, records the last agent message the agent replayed, marked replayed, as the rest of the replay; it was dropped (ADR 5.6, #255).
- A fork an editor makes through
brnr acp(session/fork) is a session of its process as the agent answers, in the cwd the request names: it was listed, and its transcript started, only at its first prompt, under the process's cwd, and its modes and config options weren't known until the agent reported them again (ADR 3.12, ADR 5.1, #238). brnr permission requestslists a request nested up to 128 levels, the most the host reads, where one past serde_json's 127 failed withrecursion limit exceeded(ADR 2.5, #239).brnr prompt send --wait,event wait,event watchandevent notify(from the socket and--stdin) see a permission request nested up to 128 levels, where one past serde_json's 127 was dropped without a word (ADR 2.5, #250).- Those commands, and
session new --wait, no longer overflow their stack and abort (exit 134) on an event nested about a million deep: the host sends none that deep, and a line nested past 256 levels they say they can't read, and fail (ADR 2.5, #252). brnr permission showshows a request nested up to 128 levels, andelicitation requestsandelicitation showwork in a process where one waits, where each failed withrecursion limit exceeded: every command reads the host's answers aspermission requestsdoes (ADR 2.5).- A message nested 128 levels, past serde_json's 127, or with a lone surrogate, is in the raw ACP file as JSON (
msg), asevent watchshowed it, where it was a string inraw(ADR 2.5, ADR 5.1). brnr event logshows a record nested deeper than 128, up to 256, such as a deeppermission_request, asevent watchshowed it live, where it said the lineisn't a record brnr can read, not shown.session list,session resumeanddoctorread such a record too, where they passed over it for the one before: a session whose last record nests that deep is listed as last active then (ADR 2.5, ADR 5.1).- An editor's process keeps at most 1024 requests it answered for the editor's late answer, and at most 1024 the agent cancelled for the editor's answer, none past their session's close, and at most 1024 sessions it closed under the editor; an editor that never followed up grew them for the process's life (ADR 10.3, #332, #364).
session list,event log,session resume, catching up anddoctorno longer read a transcript through a symlink, nor in a symlinked project folder, which they listed and read as the user's sessions though brnr never writes there;session deletealready left them alone. The transcripts brnr writes are where they were (ADR 9.3).- An editor's
session/promptof a session another process holds, which the editor never loaded, is refused as its load is, naming the process and how to release it, unlessshared_sessionslets it through; it reached the agent, and the editor's process served the session beside its owner (ADR 3.9, #331). - An editor's
session/promptof a session the agent doesn't have (a mistyped id) leaves nothing behind once the agent fails it: the session isn't open insession listorsession status, its lock goes, and it has no transcript. It stayed open, holding its lock, until the process exited, and its transcript stopped a later load of the id recording its history. A prompt's session now has its transcript from the agent's first word of it; the prompt that came before is in the host log (ADR 5.6, #331). - An editor's
session/loadorsession/resumethat the agent answers with success after the session closed in the editor's process (the editor's close, or brnr's close or take-over under it, while the request was unanswered) is checked again for the session's lock: if another process took it meanwhile, the editor's process doesn't serve it unlessshared_sessionslets it. The agent is asked to close it, the editor is told in the session which process holds it and how to release it, its later requests for it are answered by brnr, and the host log hasopen_failed. It opened shared, beside its owner, with only asession_sharedin the host log (ADR 3.9, #357).
Security
- On macOS, brnr refuses a transcript, a host log or a folder on their way, the runtime directory, or
sessions/, that has an access control list (ls -le), which can let other users read or reach them whatever the mode says. The error names the path and gives thechmod -Nthat removes it; brnr doesn't remove it. A refused host log or state directory stops the process before it starts; a refused session file leaves the session served without it (session_log_failed); a refused runtime directory fails the process and every command that reads it; a refusedsessions/keeps a session from being locked or started headless. What reads transcripts (session list,event log, …) doesn't read one with an ACL, andbrnr doctorsays which, with thechmod -N;--fixleaves it. On Linux an ACL's grants show in the mode, which brnr checked already (ADR 9.3, ADR 3.9, #322).