opencode/packages
Kit Langton ddbd119dcb test: drop AppRuntime usage from tests
Removes all direct AppRuntime usage from packages/opencode/test —
`grep -r AppRuntime packages/opencode/test` now returns nothing.

Two patterns are applied:

1. Event tests rewritten in the httpapi-cors.test.ts style. The two
   /event SSE tests now serve HttpApiApp.routes on
   NodeHttpServer.layerTest and hit them via HttpClient. Pub/sub
   identity with the in-process routes is preserved via a new opt-in
   `testEffectShared` (in test/lib/effect.ts) that builds the test
   layer through the shared process-wide memoMap so Bus.defaultLayer
   resolves to the same Bus.Service the routes subscribed to.

   The SSE reader helpers move to test/lib/sse.ts and use HttpClient +
   Effect.Stream + Queue<SseEvent>.

   The D7 diagnostic case is removed: the AppRuntime-vs-test-runtime
   distinction it diagnosed no longer exists.

2. Surgical swap in the remaining four files
   (provider/{amazon-bedrock,provider}, session/llm,
   control-plane/workspace). Each `AppRuntime.runPromise(...)` becomes a
   module-level `ManagedRuntime.make(Service.defaultLayer, { memoMap })`.
   The shared memoMap preserves service identity, so behavior is
   unchanged.

Tests: event (9/9), amazon-bedrock (19/19), provider (84/84),
workspace (35/35); 147 pass across the 5 affected files. The 3
pre-existing failures in session/llm.test.ts are independent of this
change (verified by stashing the diff).
2026-05-20 20:50:32 -04:00
..
app sync release versions for v1.15.6 2026-05-20 21:44:08 +00:00
console sync 2026-05-20 19:45:59 -04:00
containers chore: Upgrade Bun to the final non-rust version (#27648) 2026-05-18 09:24:26 +10:00
core sync release versions for v1.15.6 2026-05-20 21:44:08 +00:00
desktop sync release versions for v1.15.6 2026-05-20 21:44:08 +00:00
docs fix(web): favicon rename again 2026-01-21 14:36:21 -06:00
effect-drizzle-sqlite feat(effect-drizzle-sqlite): add vendored sqlite adapter (#28547) 2026-05-20 20:09:07 -04:00
enterprise sync release versions for v1.15.6 2026-05-20 21:44:08 +00:00
extensions/zed sync release versions for v1.15.6 2026-05-20 21:44:08 +00:00
function sync release versions for v1.15.6 2026-05-20 21:44:08 +00:00
http-recorder sync release versions for v1.15.6 2026-05-20 21:44:08 +00:00
identity chore: identity cleanup, vscode ext images 2025-12-08 06:47:57 -06:00
llm Refactor LLM route-first provider API (#28523) 2026-05-20 20:15:52 -04:00
opencode test: drop AppRuntime usage from tests 2026-05-20 20:50:32 -04:00
plugin fix(tui): default new sessions always to local project (#28541) 2026-05-20 18:35:37 -04:00
script refactor: replace bun semver with npm semver package 2026-03-09 15:29:55 -04:00
sdk sync release versions for v1.15.6 2026-05-20 21:44:08 +00:00
slack sync release versions for v1.15.6 2026-05-20 21:44:08 +00:00
storybook Remove unused app ID schema (#27105) 2026-05-12 13:09:23 -04:00
ui Refactor LLM route-first provider API (#28523) 2026-05-20 20:15:52 -04:00
web zen: grok build 0.1 2026-05-20 19:38:37 -04:00