opencode/packages/client/test
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
..
fixture chore(ci): speed up and stabilize the test workflow (#55866) 2026-10-16 00:35:49 +02:00
api.types.ts refactor(client): group experimental SDK methods under client.experimental (#59072) 2026-10-28 15:18:38 -07:00
contract-identity.test.ts feat(core): report Session execution status on Session.Info 2026-11-12 19:10:13 +01:00
deprecated-aliases.test.ts refactor(client): group experimental SDK methods under client.experimental (#59072) 2026-10-28 15:18:38 -07:00
effect.test.ts fix(protocol): make Session status and active rootID optional on the wire 2026-11-12 19:10:14 +01:00
import-boundaries.test.ts feat(client): add connectClientMcp helper for client-hosted MCP tools (#57504) 2026-10-22 15:37:57 -04:00
mcp.test.ts test(client): fix connectClientMcp test on Bun 1.4.4 (#58217) 2026-10-22 15:54:14 -04:00
media.test.ts feat(tui): load stored images by reference, like desktop (#60116) 2026-10-29 20:04:23 +00:00
promise-service.test.ts chore(ci): speed up and stabilize the test workflow (#55866) 2026-10-16 00:35:49 +02:00
promise.test.ts refactor(server): move the Session family read under experimental 2026-11-12 19:10:14 +01:00
service-contender-pool.test.ts refactor(client): share startup attempt bookkeeping between clients (#53240) 2026-10-05 08:18:09 -07:00
service-decision.test.ts refactor(client): share the registered service decision between clients (#53241) 2026-10-05 21:35:29 -07:00
service-reconnect.test.ts chore(ci): speed up and stabilize the test workflow (#55866) 2026-10-16 00:35:49 +02:00
service.test.ts chore(ci): speed up and stabilize the test workflow (#55866) 2026-10-16 00:35:49 +02:00
session-parent-create.test.ts feat(plugin): support parent session creation (#52359) 2026-09-30 22:50:09 -05:00
shared-events.test.ts feat(plugin): filter event subscriptions by type (#58864) 2026-10-26 10:47:48 -05:00
solid-compaction.test.ts refactor: v2.1 minor breaking changes (#57260) 2026-10-20 00:42:13 -05:00
solid-connection.test.ts refactor(app): move GUI features into built-in extensions (#52369) 2026-10-01 15:17:55 +10:00
solid-data.test.ts fix(client): close gaps found reviewing the Session family work 2026-11-12 19:10:14 +01:00
solid-eviction.test.ts refactor(protocol): normalize session resources 2026-09-14 17:51:48 -04:00
solid-inbox-race.test.ts fix(client): clear pending prompts the transcript shows were delivered (#61679) 2026-11-04 11:36:03 -06:00
solid-pending-status.test.ts fix(session-ui): render user message attachments above text and admit inline files (#54650) 2026-10-13 16:28:42 -07:00
solid-pty-protocol.test.ts refactor(client): share the persistent pty protocol (#60323) 2026-10-29 18:23:04 -04:00
solid-pty.test.ts feat(app): move the desktop terminal to persistent PTYs (#60346) 2026-10-30 10:57:16 -04:00
solid-refresh.test.ts feat(client): load Session families in one read and reconcile by newest observation 2026-11-12 19:10:13 +01:00
solid-usage.test.ts refactor: v2.1 minor breaking changes (#57260) 2026-10-20 00:42:13 -05:00
worktree.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00