Commit graph

22628 commits

Author SHA1 Message Date
Simon Klee
dccc014c3a
fix(client): close gaps found reviewing the Session family work
Learn the family route's absence per connection where the data layer
already invalidates on disconnect. server.connected is delivered after
the connection reports connected, so route effects started family reads
before the old reset and kept using the fallback after reconnecting to
an upgraded server.

Key family membership by the client's own root. The server roots a
family whose top names a missing parent at the top, while resolveRoot
walks to the missing ID, so such a family read showed no members and
dropped its journaled events.

A fallback read invalidated in flight no longer starts member reads that
could complete with pre-reconnect data. Metadata updates and permission
replies now go through the journal, so an in-flight read cannot undo
them, and metadata updates raise time.updated like the projector does.

Test fixtures drop status values that were only needed while status was
required, and the TUI fixture's family route now roots orphan families
and forwards failed sub-reads as the real server does. The spec states
what is implemented and what is still to do.
2026-11-12 19:10:14 +01:00
Simon Klee
e1df498637
feat(client): fall back to per-Session reads on servers without the family route
A client from this branch talking to an older server got a 404 for every
family read, so the TUI closed the session it was opening.

The data layer now learns once per connection whether the server has the
family route. An older server answers it with a 404 that has no typed
error body; a missing Session still returns SessionNotFoundError and
still rejects. On the first untyped 404 the client falls back for the
rest of the connection and tries the route again after every reconnect.

The fallback restores the reads that preceded the family route: the
Session and its paged direct children, merged into the membership
already known, then pending permissions and forms for every known family
member, waiting only for the requested Session's. Status comes only from
/session/active and execution events, since older servers send none. A
stale read neither falls back nor marks the route missing. Delete the
fallback once the oldest supported server has the family route.
2026-11-12 19:10:14 +01:00
Simon Klee
6dfad0898b
fix(protocol): make Session status and active rootID optional on the wire
A client from this branch talking to an older server receives Sessions
without status and /session/active entries without rootID. The Promise
client never checks, but the Effect client decodes responses, so it
rejected every Session from such a server.

Both fields are now optional on the wire. Servers with this change
always send them; a missing value means the server predates them, not
that the Session is idle. The client data layer then keeps the status it
derives from /session/active and execution events instead of inventing
one.
2026-11-12 19:10:14 +01:00
Simon Klee
44e69136b2
refactor(server): move the Session family read under experimental
New endpoints start experimental. The family read moves to
/api/experimental/session/:sessionID/family in the server.experimental
group, beside schedule and media.get, so the generated SDK exposes it
only as client.experimental.sessionFamily.get. In its own session group
the codegen would also emit a deprecated client.session.family alias for
a method that never shipped. The identifier experimental.session.family
collides with the session group's experimental methods in the codegen,
so it follows the persistentPty precedent for routes under
/api/experimental/session.

The spec records the open question of whether status on Session.Info and
rootID on /session/active should start experimental too.
2026-11-12 19:10:14 +01:00
Simon Klee
ab3525f4f1
feat(tui): read Session families in one request
With the data layer's family read carrying every member's status,
permissions, and forms, the TUI's own per-member reads are redundant.
Started alongside the family read, they still went out as separate
requests.

The session route now awaits only the family read and no longer syncs
pending requests for each descendant. Tab prefetch drops its permission
and form reads. The open dialog reads one family per distinct root of
running Sessions and of Sessions with pending requests, instead of two
pending-request reads per running Session and a single read per root.
Opening a root with subagents now costs /session/active once per
connection and one family read.
2026-11-12 19:10:14 +01:00
Simon Klee
c22a4bae0d
feat(client): load Session families in one read and reconcile by newest observation
The shared data layer built a family by paging direct children, read
pending permissions and forms per member, re-read a Session after every
terminal and viewed event, and merged every read into what it already
held. A child deleted while disconnected stayed listed until restart,
and a permission.asked that arrived before a permission list response
which missed it was erased by that response.

session.sync(id, { children: true }) now reads /session/:id/family. It
replaces the family's membership, forgets members the server no longer
lists, and takes each member's status and pending requests from the same
response. It also marks every member's Session, family, and pending
request reads complete, so opening a child costs nothing more.

Reads and events travel on different connections, so a journal records
the events that arrive while a read is in flight and replays them on top
of its response. Session field patches, status, membership, and pending
requests all go through it, and every fold is idempotent because replay
reapplies events the response may already include. Terminal and viewed
events fold time.idle, outcome, and time.viewed, and time.updated
follows the events the projector stamps, so the per-event Session
re-reads are gone. A family read invalidated in flight applies nothing,
because a newer read supersedes it.

Reconnect hydration reads one family per running root from the rootID
on /session/active instead of one Session per running child.
2026-11-12 19:10:13 +01:00
Simon Klee
36b9c105fa
feat(server): name each running Session's family root in /session/active
Execution events carry only a Session ID, so a client that sees a child
start before it has loaded that child cannot tell which root to mark
busy. The iOS app walks parents one GET at a time to find out, and the
TUI loads the child to resolve its root.

Each /session/active entry now carries rootID, the root of the family
that contains the running Session, resolved for all running Sessions in
one query that shares the family read's root rule. It stays out of the
durable execution events, which record only irreducible facts;
/session/active is a read model and may carry derived state.
2026-11-12 19:10:13 +01:00
Simon Klee
1e88a7f066
feat(server): read a whole Session family in one request
To draw one Session family, clients list children member by member and
read pending permissions and forms per member. Opening a root with about
a hundred subagents took about two hundred requests, and every client
rebuilt the tree its own way with its own cap on members.

GET /api/session/:sessionID/family returns the root and every descendant
(root first, then by creation time and ID) from one recursive query,
with status taken from one snapshot of the running set. Any member's ID
returns the same family. The response is complete; it is not paginated.

It also carries the family's pending permission requests and forms.
Those live in memory inside running Locations, so the read collects them
only from members whose Location has finished starting. A member whose
Location is not running contributes nothing and is neither started nor
waited on.
2026-11-12 19:10:13 +01:00
Simon Klee
c1bd7d8456
feat(core): report Session execution status on Session.Info
Every view that shows a Session today joins it against the
/session/active snapshot and the execution event stream to learn whether
it is running. Put the answer on the Session itself: Session.Info gains
status, "running" while SessionExecution in this process owns a busy
period for the Session and "idle" otherwise.

Core's Session facade attaches status wherever it returns a Session, so
HTTP responses and plugins both see it. It snapshots the running set
before reading rows, so a read never pairs "idle" with a row from before
the terminal commit.

Status is process-local and must not be persisted. The previous shape is
now Session.Persisted: the store, durable events, and Session export and
import keep using it, so exports written before this change still import
and new exports, including the app and desktop transcript exports, carry
no status. Session.Status has no schema identifier because SessionStatus
already names the session.status event union.
2026-11-12 19:10:13 +01:00
Simon Klee
8de5110143
fix(core): return session list cursors only when another page exists
Session.list returned cursor.next for every non-empty page, including the
last one, so a list whose size is a multiple of the limit, or a short
final page, made clients request one more empty page. Read one extra row
to learn whether another page exists, and return the cursor in the
direction of travel only then. A backward page arrives reversed, so its
extra row is dropped from the front.
2026-11-12 19:10:13 +01:00
Simon Klee
8550ebc46f
fix(server): stop permission listing from booting Locations
Pending permissions and forms live in memory inside a started Location,
so a Location that is not running cannot hold one. session.permission.list
still entered the Session's Location: it booted idle Locations (MCP
processes, watchers) just to return [], and failed with
LocationNotFoundError for Sessions whose worktree was deleted. Clients
read it for every member of a Session family, so one root with deleted
worktree children produced a burst of 404s on every open.

Instance.live, added for form listing, used RcMap.has, which is also true
while a Location is still starting, so a form list still waited on the
start and failed with it. Track readiness instead: LocationServiceMap
gains ready(ref), true only between a successful start and invalidation
or failure, read from the builds registry without waiting. The SDK's
embedded instance map tracks the same state for its own live.

session.permission.list now returns [] when the Location is not running,
like session.form.list.
2026-11-12 19:10:13 +01:00
Simon Klee
410206c478
docs(specs): propose session family API 2026-11-12 19:06:49 +01:00
Luke Parker
5418e010d7
chore(perf): bench with strobe 0.32.0 (#63575) 2026-11-12 16:58:55 +00:00
James Long
28f74f8591
fix(tui): copy the paste inside the prompt selection (#63275) 2026-11-12 16:50:11 +00:00
James Long
32a00c976d
fix(tui): keep the Mini draft caret when closing the command palette (#63260) 2026-11-12 16:49:22 +00:00
Dax
71b27c4cd8
fix(app): reuse mention suggestions while typing (#63572) 2026-11-12 11:46:46 -05:00
Aiden Cline
f96b54590d
docs: describe tools exposed directly when execute is denied (#63566) 2026-11-12 10:28:25 -06:00
David Hill
33aefad13c
chore(site): serve OG Studio link cards from the files bucket, add docs previews (#63560)
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
2026-11-12 10:00:20 -06:00
David Hill
1a85993784
chore(site): render Ukrainian and Russian link cards in OpenTUI Mono's Cyrillic (#63556) 2026-11-12 09:30:37 -06:00
Filip
ec263d62b6
fix(core): keep plugin swaps going when a cleanup fails (#63548)
Co-authored-by: Filip Hejmowski <fhejmowski@simplito.com>
2026-11-12 16:15:41 +01:00
usrnk1
96d950178c
fix(app): advance SSH prompts and close the dialog on connection (#63544) 2026-11-12 15:14:43 +00:00
opencode-agent[bot]
b268a4e8b0
feat(session-ui): maximize Mermaid diagrams to zoom and pan them (#59250) 2026-11-12 15:02:33 +00:00
usrnk1
1c53e40a7f
feat(app): choose each server's terminal shell from its menu (#63539) 2026-11-12 15:37:30 +01:00
James Long
98def2f90e
test(app): update e2e specs for always-background subagents (#63538) 2026-11-12 09:08:25 -05:00
Dax
196a5ee922
chore: only require code owner review for .github (#63543) 2026-11-12 08:54:05 -05:00
Luke Parker
3d308eae2e
chore(perf): bench with strobe 0.31.0 (#63515)
Some checks are pending
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-6vcpu-macos-latest, aarch64-darwin) (push) Waiting to run
bot-nix-hashes / compute (push) Blocked by required conditions
bot-nix-hashes / publish (push) Blocked by required conditions
check-nix / nix-eval (push) Waiting to run
check / typecheck (push) Waiting to run
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-build (push) Waiting to run
deploy / data-deploy (push) Blocked by required conditions
2026-11-12 11:03:03 +00:00
Adam
9d236eb0c8
fix(site): ship the link-card videos with the site's static assets (#63459)
Some checks are pending
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy-update / update-build (push) Waiting to run
deploy-update / update-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-build (push) Waiting to run
deploy / data-deploy (push) Blocked by required conditions
2026-11-12 04:56:04 -06:00
Aarav Sareen
82e39cce28
fix(app): restore message footers in the New timeline (#63513) 2026-11-12 16:08:23 +05:30
opencode-agent[bot]
d7ae4f2e3c
fix(site): keep the page when leaving the Markdown view on static pages (#63503)
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
2026-11-12 10:56:00 +01:00
Filip
cbcd846a57
fix(app): retry browser pane when server plugins finish loading (#63500) 2026-11-12 10:45:34 +01:00
Luke Parker
df7911ab8b
chore(perf): bench with strobe 0.30.0 (#63497) 2026-11-12 09:17:00 +00:00
Dax Raad
101776024c fix(release): limit stable releases to named actors
Some checks failed
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-6vcpu-macos-latest, aarch64-darwin) (push) Waiting to run
bot-nix-hashes / compute (push) Blocked by required conditions
bot-nix-hashes / publish (push) Blocked by required conditions
check-nix / nix-eval (push) Waiting to run
check / typecheck (push) Waiting to run
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-build (push) Waiting to run
deploy / data-deploy (push) Blocked by required conditions
Process daemon / Miri (callback ownership) (push) Has been cancelled
Process daemon / Core (blacksmith-6vcpu-macos-15) (push) Has been cancelled
Process daemon / Core (ubuntu-22.04) (push) Has been cancelled
Process daemon / Windows (arm64) (push) Has been cancelled
Process daemon / Windows (x64) (push) Has been cancelled
2026-11-11 23:08:45 -05:00
Aiden Cline
2c1e17b581
feat(core): publish MCP events on the bus (#63261) 2026-11-11 21:41:31 -06:00
Luke Parker
4f51455a5d
chore(perf): bench with strobe 0.29.0 (#63441) 2026-11-12 03:01:34 +00:00
Aiden Cline
647e5a7b18
fix(ai): accept System One refusals and send PDFs in the OpenRouter state (#63443) 2026-11-12 03:00:45 +00:00
opencode-agent[bot]
5c965609cf
docs(console): add GPT 6 Luna Decision and Gemini Decision 1 (#63440)
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
2026-11-11 18:54:37 -08:00
Dax Raad
f5ca39a97d fix(tui): open session list at the top instead of the current session 2026-11-11 20:56:14 -05:00
Dax
6c34e24488
feat(app): hide and mute sessions in Recent sidebar (#63427) 2026-11-11 20:27:07 -05:00
Dax Raad
a7041d45d6 isolate release credentials and process daemon publishing 2026-11-11 20:21:45 -05:00
Dax
b451fe3952
fix(legacy): keep github app secrets in production (#63423) 2026-11-11 19:49:20 -05:00
James Long
6d023043ca
refactor(core): remove the subagent notify option (#63413) 2026-11-11 18:44:14 -05:00
James Long
63dd3f1c6c
feat(core): run local Windows shell commands in the process daemon (#63409) 2026-11-11 18:32:15 -05:00
Aiden Cline
464688ba68
fix(core): stop keeping the whole file in memory for tail reads (#63030) 2026-11-11 17:30:09 -06:00
Dan Smolsky
6b8c796eeb
fix(core): use the localhost redirect when an MCP OAuth server rewrites 127.0.0.1 (#63403) 2026-11-11 18:04:54 -05:00
Dax
17b5826a5e
ci: run macos build jobs on blacksmith (#63397) 2026-11-11 17:29:09 -05:00
David Hill
135d46cea7
chore(site): remove the /ide page (#63386)
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
2026-11-11 21:56:25 +00:00
James Long
b5fb1df299
fix(tui): show the subagent card instead of launch instructions in mini scrollback (#63389) 2026-11-11 15:53:40 -06:00
James Long
ffcaeec36c
refactor(app): remove leftover foreground subagent UI (#63391) 2026-11-11 15:53:31 -06:00
James Long
23dd370ab5
refactor(core): remove leftover foreground subagent and reattach code (#63392) 2026-11-11 15:52:50 -06:00
David Hill
41cc8d6b9d
chore(site): update OpenCode link cards (#63401) 2026-11-11 15:51:06 -06:00