cloudaxe-opencode/packages/opencode/test/session
Kit Langton 1dae9c2369 fix: lazy runtime imports in facades to break bundle cycles
All service facades now use @/effect/run (lazy runtime import) instead
of directly importing @/effect/runtime. This breaks the circular
dependency chain that caused "undefined is not an object" crashes in
bun's bundled binary.

- Add src/effect/run.ts with run() and runInstance() lazy wrappers
- Strip all facades to runtime-only functions (no schema re-exports)
- Consumers that need schemas import from service modules directly
- Update specs/effect-migration.md with facade rules and full list
2026-03-20 18:57:23 -04:00
..
compaction.test.ts fix(core): ensure compaction is more reliable, add reserve token buffer to ensure that input window has enough room to compact (#12924) 2026-02-10 19:55:22 -06:00
instruction.test.ts fix: prioritize OPENCODE_CONFIG_DIR for AGENTS.md (#11536) 2026-02-04 01:35:22 +00:00
llm.test.ts fix(opencode): teach Kit's test what an ID is (#17745) 2026-03-16 18:08:27 +10:00
message-v2.test.ts fix: lazy runtime imports in facades to break bundle cycles 2026-03-20 18:57:23 -04:00
messages-pagination.test.ts perf(server): paginate session history (#17134) 2026-03-13 15:48:43 +05:30
prompt.test.ts feat(id): brand ProviderID and ModelID (#17110) 2026-03-12 09:27:52 -04:00
retry.test.ts feat(id): brand ProviderID and ModelID (#17110) 2026-03-12 09:27:52 -04:00
revert-compact.test.ts feat(id): brand ProviderID and ModelID (#17110) 2026-03-12 09:27:52 -04:00
session.test.ts feat(id): brand PartID through Drizzle and Zod schemas (#16966) 2026-03-11 23:40:50 +00:00
structured-output-integration.test.ts feat: support claude agent SDK-style structured outputs in the OpenCode SDK (#8161) 2026-02-12 04:54:05 +00:00
structured-output.test.ts feat(id): brand WorkspaceID through Drizzle and Zod schemas (#16964) 2026-03-11 23:30:17 +00:00
system.test.ts fix: stabilize agent and skill ordering in prompt descriptions (#18261) 2026-03-19 15:04:03 -05:00