Commit graph

33 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
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
opencode-agent[bot]
d500927b9d
feat(core): record when a session's latest execution started (#59910)
Co-authored-by: Brendonovich <14191578+Brendonovich@users.noreply.github.com>
2026-10-29 07:45:09 +00:00
Luke Parker
ca7d60b663 chore: merge dev into beta 2026-10-26 09:35:44 +10:00
Kit Langton
f6991636a5
fix(client): register running sessions missed while disconnected (#53012) 2026-10-25 22:54:33 +00:00
Luke Parker
4b83402a29 chore: merge dev into beta 2026-10-26 08:34:06 +10:00
opencode-agent[bot]
30890fdc06
fix(client): reload VCS info when the branch changes (#58982)
Co-authored-by: vimtor <36263538+vimtor@users.noreply.github.com>
2026-10-25 13:08:42 +00:00
Luke Parker
1b3d601700
fix(app): drop tool-result image payloads from the desktop store (#58427) 2026-10-23 21:18:12 +10:00
Kit Langton
b6598c9351
fix(client): skip catalog refetches for unloaded locations (#55237)
Some checks are pending
deploy / deploy (push) Waiting to run
publish / version (push) Waiting to run
publish / build-cli (push) Blocked by required conditions
publish / build-cli-beta (darwin-arm64) (push) Blocked by required conditions
publish / build-cli-beta (darwin-x64-baseline) (push) Blocked by required conditions
publish / build-cli-beta (linux-arm64) (push) Blocked by required conditions
publish / build-cli-beta (linux-x64-baseline) (push) Blocked by required conditions
publish / build-cli-beta (windows-arm64) (push) Blocked by required conditions
publish / build-cli-beta (windows-x64-baseline) (push) Blocked by required conditions
publish / sign-cli-macos (push) Blocked by required conditions
publish / build-node-app-archive (push) Blocked by required conditions
publish / build-node-cli (map[bun_install_flags:--cpu=* host:blacksmith-4vcpu-windows-2025 target:windows-arm64]) (push) Blocked by required conditions
publish / build-node-cli (map[host:blacksmith-4vcpu-ubuntu-2404 target:linux-x64]) (push) Blocked by required conditions
publish / build-node-cli (map[host:blacksmith-4vcpu-ubuntu-2404-arm target:linux-arm64]) (push) Blocked by required conditions
publish / build-node-cli (map[host:blacksmith-4vcpu-windows-2025 target:windows-x64]) (push) Blocked by required conditions
publish / build-node-cli (map[host:macos-26 target:darwin-arm64]) (push) Blocked by required conditions
publish / sign-cli-windows (push) Blocked by required conditions
publish / build-electron (map[bun_install_flags:${{ (github.ref_name == 'beta' && '--os=darwin --cpu=*') || '--os=darwin --cpu=x64' }} cli:darwin-x64-baseline host:${{ (github.ref_name == 'beta' && 'macos-26') || 'macos-26-intel' }} platform_flag:--mac --x64 tar… (push) Blocked by required conditions
publish / build-electron (map[bun_install_flags:--cpu=* cli:windows-arm64 host:${{ (github.ref_name == 'beta' && 'blacksmith-4vcpu-windows-2025') || 'windows-2025' }} platform_flag:--win --arm64 target:aarch64-pc-windows-msvc]) (push) Blocked by required conditions
publish / build-electron (map[bun_install_flags:--os=darwin --cpu=arm64 cli:darwin-arm64 host:macos-26 platform_flag:--mac --arm64 target:aarch64-apple-darwin]) (push) Blocked by required conditions
publish / build-electron (map[cli:linux-arm64 host:blacksmith-4vcpu-ubuntu-2404-arm platform_flag:--linux --arm64 target:aarch64-unknown-linux-gnu]) (push) Blocked by required conditions
publish / build-electron (map[cli:linux-x64-baseline host:blacksmith-4vcpu-ubuntu-2404 platform_flag:--linux target:x86_64-unknown-linux-gnu]) (push) Blocked by required conditions
publish / build-electron (map[cli:windows-x64-baseline host:blacksmith-4vcpu-windows-2025 platform_flag:--win target:x86_64-pc-windows-msvc]) (push) Blocked by required conditions
publish / publish (push) Blocked by required conditions
publish / notify-discord-v2 (push) Blocked by required conditions
2026-10-16 14:57:06 -07:00
usrnk1
7b33bcea4e
feat(desktop): show session tokens and cost on the session view (#53785)
Co-authored-by: LukeParkerDev <10430890+Hona@users.noreply.github.com>
2026-10-13 23:14:04 +00:00
usrnk1
5b22e915d8
feat(desktop): clarify variant-only timeline notices (#54880)
Co-authored-by: LukeParkerDev <10430890+Hona@users.noreply.github.com>
2026-10-13 09:03:44 +00:00
Luke Parker
40cc0f377b
fix: surface session execution errors in desktop and TUI timelines (#53826) 2026-10-09 14:14:44 +10:00
Kit Langton
2d0ce64111
fix(client): reconcile stale tools at settlement (#49672) 2026-09-17 22:23:45 -07:00
Dax
c62d2e8336
refactor(core): split provider and model registries (#48901) 2026-09-14 10:34:11 -04:00
Dax Raad
487e1bd76e refactor(protocol): remove workspace API 2026-09-13 17:39:23 -04:00
Luke Parker
0f67a15f3b
fix(app): reduce cold and warm session load work (#48223) 2026-09-10 09:04:50 +10:00
Aiden Cline
6ee2ed7510
refactor(session): remove message content mutation API (#48043) 2026-09-08 20:27:22 -05:00
Kit Langton
610d7e952a
refactor(client): remove redundant location spreads (#47086) 2026-09-03 12:51:12 -04:00
Kit Langton
27f838f249
fix(client): refresh references for the updated location (#46935) 2026-09-02 21:12:52 -04:00
opencode-agent[bot]
ac77cc46b8
fix(client): isolate shared event consumers (#46393)
Co-authored-by: nexxeln <95541290+nexxeln@users.noreply.github.com>
2026-08-31 19:32:27 +05:30
Kit Langton
ad9117b107
fix(session): run user shells immediately in the background
Run user shell commands concurrently with model execution, retain their output in one shell entry, and admit non-waking completion messages. Share result capture and notification formatting across shell callers.
2026-08-28 22:46:20 -04:00
Kit Langton
1ce3c7e580
fix(tui): stop flashing when jumping to session start
Buffer bulk history privately and publish once with a bounded head window. Preserve pending anchor compensation while ensuring newer navigation cancels obsolete Home work. Add atomic-loading and real-App navigation regressions.
2026-08-28 14:35:31 -04:00
Kit Langton
e8fa7daed5
fix(client): preserve live activity during hydration (#45975)
Merge session status changes received during activity hydration and ignore superseded reconnect responses. Cover terminal events, starts, deletion, and overlapping connections so idle sessions do not regain stale TUI spinners.
2026-08-28 12:30:21 -04:00
Shoubhit Dash
e82aa92e64
fix(session): support assistant message content updates (#45015) 2026-08-26 18:31:59 +05:30
Kit Langton
9361117504
feat(core): add directory projects (#45107) 2026-08-25 23:22:23 -04:00
Dax
eb1ac54d73
feat(tui): support multiple integration accounts (#45072) 2026-08-25 17:03:16 -04:00
Kit Langton
db7837814c
fix(project): refresh renamed projects across live clients (#45043) 2026-08-25 20:13:10 +00:00
Brendan Allan
6cd3da1d4c
fix(app): preserve scroll across history prepends (#44317) 2026-08-23 15:00:29 +08:00
Aiden Cline
b190b778d4
fix(tui): avoid premature environment sync (#44270) 2026-08-22 18:39:04 -05:00
Kit Langton
c29a7c152d
feat(session): add viewed state (#42811) 2026-08-21 19:34:35 -04:00