Skip to content

Release notes

For maintainers writing release announcements and contributors checking how user-visible changes should be explained. These notes describe behavior and compatibility details that deserve attention during an upgrade.

Read Release process first for channels and versioning. Use the release testing plan for validation, then consult the relevant notes below when preparing the announcement.

session_env_passthrough: a GIT_CONFIG_COUNT forward without its pairs is neutralized, not delivered live

  • A pass-through list that forwards GIT_CONFIG_COUNT while it resolves to a positive count in the environment, without also forwarding the matching GIT_CONFIG_KEY_0 / GIT_CONFIG_VALUE_0 … pairs, used to deliver the live count with zero pairs — a state in which every git invocation fails fatally (error: missing config key GIT_CONFIG_KEY_0), including af's own provisioning git config --global --add safe.directory "*", which surfaced on the docker backend as a provisioning teardown that blamed git rather than the configuration. af now pins the count defined-empty wherever the environment is handed to the session — the exec shim on local/ssh and claimed account launches, the agent-server handoff, and every docker session's -e assembly, account or not — with a warning naming the missing indices, so git reads a count of 0 and does not fail. The check runs at delivery because that is the only place the count's value is known: it lives in the tmux server's environment at pane spawn or the daemon's environment a bare -e resolves against, which session creation cannot see. The remedy is to also forward the indexed pair names through session_env_passthrough.
  • A pair that would arrive defined-but-empty counts as missing for the KEY — git fails GIT_CONFIG_KEY_n= with empty config key exactly as it fails an absent one — while a defined-empty GIT_CONFIG_VALUE_n is a legal empty value and does not trip the check. A count value git itself rejects (non-numeric, above INT_MAX) is left to git's own diagnostic rather than iterated.
  • docker.run_args entries that name GIT_CONFIG_COUNT on an account-scoped session are still refused — now with a message that names the indexed pairs the count activates, so the count-only forward af itself used to suggest does not route the operator into the broken configuration.

Account-swap carries record a zero-byte carry, and a re-run keeps that record (#7274)

  • What changed. When a same-agent account swap carries a conversation and copies zero bytes, af now records that in instances/auto-handoff-state.json as an explicit 0 under carried_prefix_len. Before, it recorded nothing. A re-run of a committed carry whose previous account has lost the conversation now keeps the boundary af recorded for the file. It used to count the whole file, including the new account's own records, as the previous account's.
  • Older binaries read the new file unchanged. The schema is the same, and a binary from before this change reads a 0 exactly as a missing entry: it keeps its whole-file reading, which errs toward distrusting more. Nothing needs migrating.
  • Downgrade limit. A recorded boundary, zero or not, can be trusted only while every binary that writes to that file records its carries. Two versions are the floor:
  • Claude: af releases before v1.0.349 (#6975) carry Claude conversations without recording a boundary.
  • Codex: releases before v1.0.345 (#6802) do the same for Codex.

If you downgrade past those versions and swap the same conversation in again, the record no longer covers what that carry copied. Upgrading back can then count the previous account's usage-limit records as the new account's. Nonzero records already had this exposure. Avoid swapping accounts while you run such an old binary.

af doctor --json: unproven and foreign marked processes moved row keys

  • Some af doctor process findings moved to more honest check names (#6712). Dead-session rows for a proven-foreign home, a missing marker, and every unproven-ownership shape moved off orphaned-processes onto foreign-home-processes / foreign-home-unresolved, and live-session rows for a missing marker moved off escaped-processes onto foreign-home-unresolved. The documented --json contract is unchanged — checks[] names, summary, incomplete and the exit status mean what they meant — but a consumer grouping findings by row key will see the move; the per-check actionable flag is the stable signal to group on (the JSON carries no fixable field). Consumers matching the collapsed orphaned-processes detail will also see its text change: the fixable share now reads "N proven dead and safe to clean" and report-only rows add "N reported, not killed".

Breaking: the Backlog feature is removed (v1.0.343)

  • Backlog is gone entirely (#6662): the af backlog command tree, the web Backlog view and its app-bar tab, the daemon's /v1/*Backlog* HTTP routes, the item orchestrator and runner, the per-item question/answer flow, and the proposal rules that steered agents at it. Sessions that were started from a backlog item keep working — they are ordinary sessions.
  • Nothing on disk is deleted. backlog.json, budget.json, meter.json, and the plan/ meter and readings files stay in place; af reset does not touch them. Session records written by older versions still load: backlog_item is kept, and the retired backlog_run_active, backlog_run_ended_at and backlog_archive fields are ignored on read and dropped on the next write.
  • A [backlog] table in config is ignored, not an error. If it carried a setting that used to do something (anything besides plan_usage = false), af warns once per config source and moves on. af config set and af config unset refuse new backlog.* writes with an error that says the feature was removed.
  • The Claude Code status-line tap is removed with it. af internal plan-tap was the [backlog] plan_usage feature's only consumer, so new Claude sessions no longer get af's status-line wrapper injected; a Claude Code session configured earlier simply keeps whatever status line it had.
  • Upgrade note: an older daemon keeps its backlog routes until it is restarted, so run af daemon restart after upgrading if a stale client (an old af binary or a cached web app) still offers Backlog actions.

Breaking: unknown [docker]/[ssh] keys in in-repo config fail the load (v1.0.331)

  • A config that printed the unknown-key warning since v1.0.297 now stops loading. A typo'd leaf under [docker] or [ssh] in .agent-factory/config.{toml,json} (docker.runargs for run_args, ssh.hots for host) used to warn and be ignored. It is now an error that names the file, the key and the closest valid key, and every af command in that repository fails with it until the file is fixed (#4845). Fix it by renaming the key as the error says, or removing it.
  • af doctor reports it as a failing finding (in-repo config, exit code non-zero) with the rename to make, instead of the advisory WARN it used to be.
  • Unaffected: known leaves, in any letter case (Image still loads); the global config, which still tolerates unknown nested keys; and the personal per-project [root_agent] table, which still only warns.
  • Why now: the owner decided on #4599 to warn first and reject after the warning had shipped in at least one stable release. It has shipped in every stable release since v1.0.297. Name the exact release in the announcement: this entry assumes v1.0.331, the first stable release that carries the change.

Sessions stuck in loading after a handoff recover on upgrade (fixed in v1.0.298)

  • Sessions stuck in loading recover on their own when you upgrade. A cross-agent handoff whose mission delivery came back sent-unverified or could-not-confirm used to leave the session showing loading indefinitely, including across daemon restarts. Every action on it was suppressed. Once the upgraded daemon starts, those sessions load as ready (or whatever their agent is actually doing), with no action needed (#4429, #4842).
  • The handoff's mission is still marked as owed. af cannot tell whether the incoming agent received its takeover brief, so you decide. Look at the pane (af sessions preview <title>), then choose one:
  • Mark delivered if the agent already received the brief and acted on it: af sessions retry-limit <title> --delivered, the Mark delivered choice in the picker c opens in the TUI, or the session's Mark delivered action on the web. This retires the mission without sending anything.
  • Resend if it did not: af sessions retry-limit <title>, the first choice in the same TUI picker, or Retry handoff on the web. This sends the mission again, so do not use it on an agent that already did the work.

These are also the manual exit for a session that does not recover on its own: one whose startup af could not confirm, or one whose mission is still owed after the upgrade. A mission recorded as not-delivered is different. af knows that one never landed, so automatic recovery resends it, and the session shows loading until that resend lands. These verbs do not apply to it. - Until the mission is resolved, a new handoff on that session is refused. The error names both verbs. A task-spawned session also keeps its task run open, so its on_complete policy waits, and it applies on the first idle poll after you resolve the mission. - --delivered needs the upgraded daemon. An older daemon refuses it rather than resending.

Warning: unknown [docker]/[ssh] keys in in-repo config (added in v1.0.297)

  • A typo'd leaf under [docker] or [ssh] in .agent-factory/config.{toml,json} now warns. Before, docker.runargs (for run_args) was dropped without a word, so docker run started without the flags. The file still loads exactly as before and the key is still ignored. The warning names the file, the key and the closest known key, and it appears on CLI stderr (not under --json), in the log and daemon log as WARNING, and in af doctor as an advisory WARN (exit code unchanged) (#4599).
  • Planned break (landed in v1.0.331): an unknown [docker]/[ssh] key is now a load error, as unknown top-level in-repo keys already are (#4845); see the breaking entry above.

A caught-up reconnect after a recovery keeps the recovered pane's output (fixed in v1.0.292)

  • Fixes a regression shipped in v1.0.290 and v1.0.291. A client that was caught up at the live tail when it dropped, and reconnected after a pane-replacing session recovery, could lose the recovered pane's buffered output when the screen snapshot failed (or carried no repaint state): its terminal stayed on the dead pane's frozen screen until unrelated output arrived. The reconnect now replays the recovered pane's retained output, so a failed snapshot no longer loses it (#4615).
  • A reconnect whose snapshot succeeds is unchanged (the repaint is delivered, no replay), as is the case where the recovered ring is empty (live output follows as before).

Breaking: branch-associated PR integration removed (removed in v1.0.284)

  • Session JSON no longer includes pr_info. This includes session records returned to API consumers and af sessions list users, and persisted session records. Existing saved records still load, but their old pr_info key is ignored and is not written back. Automation must accept an absent field; it will not receive a null value or a final cached PR state.
  • POST /v1/SetPRInfo and POST /v1/RefreshPRInfo are removed. Calls from older clients and scripts now return HTTP 404. Stop calling these routes; retrying will not restore the functionality.
  • The terminal open/copy PR actions are removed. In the TUI launched by af, p no longer opens a PR in the browser and y no longer copies its URL. The CLI's af keys output no longer advertises those actions. The web PR badge and automatic branch-to-PR discovery are also removed.
  • Retired key bindings do not block startup. Existing [keys].open_pr and [keys].copy_pr entries in config.toml are ignored with a one-line warning naming the file and removed action, once per file/action per process. Remove these entries when updating your config. Every other unknown keymap action remains a startup error; see Key bindings.
  • There is no replacement session field, API endpoint, CLI command, or TUI action for branch-associated PRs. Before upgrading, remove this dependency from your automation or manage PR information outside Agent Factory. Expect the missing pr_info field and HTTP 404s, rather than a migration to new names.

af sessions list now tells you what its numbers mean

  • Three new string fields, and nothing removed. Every session carries status_name and liveness_name beside status/liveness, and every tab carries kind_name beside kind. The integers keep their type and value, so no existing script changes.
  • They are the words --status accepts. af sessions list --status ready documented six lifecycle names that appeared nowhere in the output, so mapping a listed session back to a filter value meant hardcoding enum numbers no document defined. Now you list, read the row's own liveness_name, and filter on it.
  • tabs[].kind_name spells what tab_kinds[].kind already spelled. One payload used to say kind: 0 in one array and kind: "shell" in the next.
  • One caveat worth knowing: status is the older single-axis value and cannot express a usage-limit wall — such a session reports status_name: "ready" while liveness_name says limit-reached. Branch on liveness_name. See HTTP API → session state names.

A remote hook can return an ssh host instead of an endpoint

  • New remote_hooks.provision_cmd. Your script makes a machine and prints {"host","host_key"}; af reaches it over the operator's own ssh and runs the af agent-server itself. The bearer token never enters your script, there is no tunnel to keep alive, and no agent-server lifecycle to manage — the three jobs that produced most of this backend's sharp edges.
  • host_key is required, and that is the point. A machine created seconds ago has no known_hosts entry, and no existing host-key posture can help without either refusing the launch or trusting the first key it sees. Your script is the only party with an authentic channel to the key, so it returns it and af pins it per session. There is deliberately no opt-out.
  • launch_cmd is unchanged and not deprecated — it remains the escape hatch for targets with no sshd. A repo sets one or the other; setting both is rejected rather than silently resolved.

One session's terminal history no longer shows up in another session's editor

  • A confidentiality fix. code-server is VS Code Web, and it keeps its integrated terminal history in the browser's storage, under a key that is global rather than per-workspace. Because every session's editor was framed on the same origin, they all shared one store — so Terminal: Run Recent Command in one session offered another session's commands, and Go to Recent Directory offered another session's checkout. Command lines routinely carry branch names, paths and occasionally secrets, and the entries look exactly like your own, so this was unlikely to ever be reported as a bug.
  • Setting preview_listen_addr now gives each session's editor its own origin, which is what makes the browser keep those stores apart. The origin is stable across daemon restarts (an editor's layout and history live behind it, so a rotating name would wipe them), derived from a 0600 secret in the af home.
  • The shared user-data directory is untouched — settings, extensions and themes still carry across sessions, which is the reason it is shared.
  • Two things to expect: existing editor state does not migrate (it is the shared store being fixed, so layout and history start empty once), and this is same-machine only — a remote viewer keeps the shared-origin editor. See Web UI → per-tab preview origins.

Breaking: a remote hook's launch_cmd owns stdout

  • launch_cmd's stdout now carries its {"url","token"} endpoint JSON and nothing else. Surrounding whitespace is fine; a progress line, a backgrounded tunnel's log, or a second JSON record is not, and fails the provision with an error quoting the offending output and naming the fix. Only the remote-hook backend is affected — local, docker, and ssh sessions do not run these scripts.
  • Migration, one redirect per writer: give everything except the endpoint somewhere else to go — mytunnel >/dev/null 2>&1 & (or >>tunnel.log 2>&1) and echo "progress…" >&2. stderr is unchanged and still takes anything, including output from a process the script backgrounds. A script that already keeps stdout clean needs no change. See Migrating to an endpoint-only stdout.
  • Why it had to break. af previously read the endpoint out of a stdout the docs let a tunnel share, which meant deciding per line whether a line was the record or a log — a question with no answer, since [INVALID, opening a log array is identical on every inspectable property to [INFO] opening {config and the two need opposite handling. Guessing wrong in the dangerous direction meant dialing a URL and sending a bearer token both taken from a log line, which anything able to write to the hook's stdout could choose. Reserving the stream makes the endpoint a parse, and there is deliberately no opt-out: an escape hatch would restore exactly the ambiguity this removes.

Copying out of the web terminal on a phone

  • Long-press the terminal to copy. Touch had no copy gesture at all — not a hard one, none: the rendered rows are user-select: none so the browser could never build a selection to long-press on, xterm's own selection is driven from mouse events a finger never sends, and every clipboard shortcut needs a Ctrl or Cmd a phone does not have. Pressing and holding now selects the token under your finger and copies it.
  • It takes the whole whitespace-delimited token — a path, a URL, a branch name, a container id — rather than stopping at punctuation, because half of a URL is not what anyone reached for. Pressing past the end of a line copies that line instead, which is how you take a whole command or error message.
  • The selection stays highlighted, so you can see exactly what was copied. Scrolling and tapping are unchanged: a drag still scrolls history and a tap still reaches a mouse-aware TUI, since a press that moves is a scroll and never a copy.

Absolute-path assets load in a web-tab preview

  • Setting preview_listen_addr (for example 127.0.0.1:8444) now opens a second plain-HTTP port that serves each web tab from its own origin, where the dev server owns the origin root. An app that hard-codes absolute asset paths (/assets/app.js, Vite/CRA/Next defaults) previews correctly with no base-path configuration — previously those requests escaped the tab's proxy prefix and 404'd honestly, and the only fix was to reconfigure the dev server.
  • Each tab being a genuinely distinct origin is also what isolates previews: the preview port answers no cross-origin allow-origin header, so one preview's JavaScript cannot read another's response, and none of them can reach the web UI or its bearer token. A tab's origin carries an opaque per-tab credential the daemon mints in memory and rotates on every restart.
  • Same-machine viewing only, off by default, and checked rather than guessed. *.localhost names are resolved by the browser to its own loopback, so before switching a frame the web UI loads a probe page from the preview port and waits for it to report. If it cannot reach the port the tab silently keeps the preview it has always had — the same-origin, sandboxed mirror under /v1/webtab/…. That covers viewing remotely (Tailscale, SSH), the ssh -L 8443:… case where the browser's own address looks local but the daemon is not, and Safari, which does not resolve *.localhost at all. Nothing opens unless you set the key. See Web UI → per-tab preview origins.

Copying out of the web terminal

  • macOS Cmd+C now copies. The web terminal claimed Ctrl chords only, so on macOS the copy gesture fell through to the browser — which had nothing to copy, because xterm paints its own selection rather than making a DOM one. It failed silently: no error, no hint, and the next paste produced whatever had been on the clipboard before. Cmd+C over a selection now copies it, through the same never-silent path as Ctrl+C. With nothing selected it stays untouched, so it never sends an interrupt — Cmd+C is not an interrupt on macOS. Cmd+V is unchanged; it already worked.
  • Behavior change — a plain drag now selects text, even while an agent owns the mouse. Claude Code and Codex both enable mouse tracking, which handed every drag to the application: making a selection (and so copying anything) required holding Option on macOS or Shift elsewhere. That is now inverted. Dragging selects with no modifier, and holding Option/Shift is what sends the drag to the application — so clicking an agent's own mouse-driven UI now needs the modifier. Nothing was removed; only which gesture needs the modifier changed.
  • The wheel is deliberately not inverted: a mouse-aware application still receives a plain scroll, and Option/Shift + wheel still scrolls terminal history.

Scrolling the web terminal on a phone

  • A one-finger drag scrolls the terminal again while an agent owns the mouse. Claude Code, Codex, and any full-screen TUI enable mouse tracking, and xterm answers by switching its own touch scrolling off — so on a phone the pane stopped at the last screen with no way back into history, which is most of the reason to open one. The drag now moves terminal history itself.
  • A tap still reaches the application, so a mouse-driven TUI keeps its clicks. The change above it — a plain drag now selects text, with app clicks behind Option/Shift — deliberately stops at the mouse: a phone has no modifier to hold, so applying it to a finger would leave a mouse-driven TUI unreachable there. On touch the two gestures separate without a modifier: the drag scrolls, the tap clicks. A pinch is still the browser's.
  • The escape hint no longer shows for a touch. It names a key to hold — Shift, or Option on macOS — that a phone has no way to press, and the gesture it was there to rescue now works on its own.

A healed root agent keeps its conversation

  • When the root agent's tmux vanished, the daemon re-created it as a brand-new agent with no history. Every other session that loses its tmux is re-spawned with --resume, so the one always-on session — the target of every watch and monitor delivery — was the only one that silently started over. It now carries its recorded conversation across the re-create and comes back on it.
  • Nothing about the always-ensured guarantee changed: if the recorded conversation cannot be resumed (the configured root program runs a different agent, it pins its own resume flag, or the provider no longer has that conversation), the root is created fresh rather than left down.
  • The application log now distinguishes the outcomes — resumed its prior conversation, had none recorded, or did not come up on it — so a root that restarted without its history is legible instead of reading exactly like one that kept it.

Config changes apply on save

  • Saving a config change via af config set or the web config editor now applies it to a running daemon in place — no manual af daemon restart, and no session loss. Each surface says exactly when the change takes effect rather than telling you to run a command; only root_agents/root_agent and branch_prefix still take effect on the next daemon start.
  • The network listener keys now apply live too. require_token, require_loopback_token, and cors_allowed_origins are read per request, so a change takes effect on the next request — and a security tightening applies even if a listener rebind fails, because the two are deliberately independent. A listen_addr or preview_listen_addr change rebinds the listener in place, binding the new address before closing the old one: if the new bind fails (port taken, unbindable address), the daemon keeps serving on the previous address and tells you why, rather than leaving itself unreachable. Making the control API reachable without a token (a non-loopback listen_addr with require_token = false) is warned about at save time and still binds — it is never refused.
  • Behavior change — session_env_passthrough: this key's grants used to be re-read from disk on every session create, so a raw hand-edit of config.toml was picked up by the next create with no apply step — a liveness no other key had. It now applies the same way every other key does: on a save through af config set, the web editor, or the config assistant. A raw hand-edit of config.toml that bypasses those surfaces therefore needs one of them (or a daemon restart) to take effect. This trades one key's accidental liveness for a single uniform rule; a later change that watches config.toml will make hand-edits live for every key — strictly better than today for all of them.

Watch-task restart

  • af tasks restart <id> now reloads an edited watch script without manual process signals. It waits for the old process group and queue drainer to exit before starting one replacement, so restarts cannot double-emit events.
  • Task write/reload and restart operations are serialized in the daemon. A disable returns only after its watcher is gone, and a project-scoped restart cannot race a concurrent task rebind.

Breaking: auto_yes removed

The auto_yes config key, af --autoyes / -y, and af agent-server --auto-yes have been removed. Existing config files that still carry auto_yes load successfully and ignore it, so an upgrade cannot strand the daemon. auto_yes = true also logs migration guidance, because behavior that config asked for stopped happening; auto_yes = false loads silently, since the post-removal default is already "don't auto-approve". New config writes, stale flags, and stale API fields fail with that guidance instead of silently doing nothing. Configure approval behavior in the agent itself; the exact recipe for every supported agent is in Agent approval behavior. Existing persisted session records carrying the old field still load, but the field is ignored and is not written back.

Session environment isolation

  • New and respawned agent panes now inherit a conservative allowlist instead of the launching user's entire environment. Runtime basics, Git/GitHub auth, proxies/custom CAs, and authentication for the selected supported agent keep working; unrelated variables are denied by default.
  • If a workflow relied on another environment variable, add its exact name to the global session_env_passthrough list. This is an intentional behavior change. Existing panes keep their original environment until restarted.
  • Docker forwards only names explicitly granted through session_env_passthrough: repo config selects the image, so built-in agent, GitHub, proxy, and CA variables are not trusted across that boundary by default. SSH uses matching built-in variables from the remote account without copying local values, and hook scripts run under the same filter and receive repeated --session-env <name> arguments to pass to their remote af agent-server.
  • Local Git worktree subprocesses and checked-in post_worktree_commands also use the filtered environment. Package/build credentials needed by those commands must be named explicitly in session_env_passthrough.
  • Claude cloud-provider credentials selected by a command-local CLAUDE_CODE_USE_* assignment are admitted only for one literal Claude invocation. Compound commands, redirects, arbitrary wrappers, and dynamic words must use an exported selector or explicit pass-through names.
  • No agent inherits cloud-infrastructure credentials by default. Which agent a session runs is repo-settable (default_program, program_overrides), and swapping the program is legitimate — so a swap must not also be a credential grant. Gemini's GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_CLOUD_PROJECT, and GOOGLE_CLOUD_LOCATION now follow its own GOOGLE_GENAI_USE_VERTEXAI / GOOGLE_GENAI_USE_GCA selectors, on the same terms as Claude's. OpenCode no longer receives AWS credentials or Google application-default credentials at all: it has no environment variable that selects a cloud provider, so there is nothing to gate them behind.
  • Action required if you run OpenCode against Bedrock or Vertex: list the exact credential names you need in the global session_env_passthrough (for example AWS_PROFILE, AWS_REGION, and whichever of AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY / AWS_SESSION_TOKEN or AWS_SHARED_CREDENTIALS_FILE your setup uses). Aider is unaffected — its Azure entries are Azure OpenAI service keys, not cloud credentials.

Keymap changes

  • Default TUI keys changed to ergonomic lower-case (a/m/e, ctrl+u/ctrl+d); restore any previous binding by pinning it in [keys] in ~/.agent-factory/config.toml.

Previous default keys are not built-in aliases. To restore the old visible keymap, add:

[keys]
archive = "A"
tasks = "S"
split_pane = "alt+s"
hooks = "H"
scroll_up = "shift+up"
scroll_down = "shift+down"