opencode/packages/client/test
Kit Langton 8aea935131 feat: serve stored media as refs to clients that opt into experimental-media-uri
Clients that send X-OpenCode-Capabilities: experimental-media-uri get user
files and tool results stored in blob as media:<hash> refs with their size
and dimensions instead of inline base64, from session.messages,
session.message and session.inbox.list, when experimental.media_blob is on
in the session's own location (the config its media was written under).
Refs whose blob is gone become the same unavailable placeholder inline
readers get. Every other reader, the runner and export stay inline.

GET /api/experimental/media/:hash serves one blob that a stored message or
inbox item still references, with an immutable ETag, 304 support, nosniff
and a sandbox CSP; anything but a raster image is sent as an
application/octet-stream attachment. session.prompt accepts a referenced
media:<hash> ref as an attachment URI and re-admits its stored bytes as is.
2026-10-25 16:37:38 -07:00
..
fixture chore(ci): speed up and stabilize the test workflow (#55866) 2026-10-16 00:35:49 +02:00
api.types.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
contract-identity.test.ts refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
effect.test.ts chore(ci): speed up and stabilize the test workflow (#55866) 2026-10-16 00:35:49 +02: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
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 feat: serve stored media as refs to clients that opt into experimental-media-uri 2026-10-25 16:37:38 -07: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 fix(client): detect stalled event streams and resync on foreground (#47571) 2026-09-06 04:43:50 +00: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): register running sessions missed while disconnected (#53012) 2026-10-25 22:54:33 +00: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): preserve inbox events during snapshot reads (#49106) 2026-09-15 04:27:58 +00: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.test.ts fix(client): preserve base URL path prefix in promise client (#50428) 2026-09-22 21:10:57 +05:30
solid-refresh.test.ts fix(client): coalesce catalog refetches from event bursts (#47561) 2026-09-06 03:48:49 +00: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