Skip to content

chore: upgrade Effect to beta.98 - #37498

Merged
kitlangton merged 2 commits into
v2from
effect-beta-98
Jul 17, 2026
Merged

kitlangton merged 2 commits into
v2from
effect-beta-98

Conversation

@kitlangton

@kitlangton kitlangton commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

What

Upgrade Effect and the repository Effect integrations from 4.0.0-beta.83 to 4.0.0-beta.98.

How

  • Update the Effect catalog, peer dependencies, lockfile, and repository patch for beta.98.
  • Migrate renamed Effect APIs across scheduling, OpenTelemetry, HTTP API, schema, SQLite, and filesystem integrations.
  • Rename the richer OpenCode filesystem glob helper to scan so it does not collide with beta.98's native FileSystem.glob.
  • Update HTTP API code generation for beta.98 endpoint identifiers, group constraints, client group typing, and SSE schema representation.
  • Regenerate the V2 SDK with the beta.98 SSE response marker while preserving its typed V2Event subscription response.
  • Keep legacy packages/opencode changes limited to compatibility edits required by the repository root typecheck.

Scope

This is only the Effect beta upgrade. It does not otherwise change or modernize the legacy V1 implementation in packages/opencode.

Testing

  • bun typecheck from the repository root: 32 tasks passed.
  • GITHUB_ACTIONS=false bun turbo test: the beta.98 SDK build and tests pass; the sweep later reaches an unrelated existing Arabic i18n parity failure in unchanged locale files.
  • bun run build, bun run typecheck, and bun test in packages/sdk/js: passed.
  • bun run test test/filesystem/filesystem.test.ts test/storage/storage.test.ts in packages/opencode: 37 passed.
  • bun run test test/filesystem/filesystem.test.ts in packages/core: 27 passed.
  • bun run test test/util/effect-flock.test.ts in packages/core: 12 passed.
  • bun run test test/session-runner.test.ts in packages/core: 127 passed.
  • bun run test test/generate.test.ts in packages/httpapi-codegen: 72 passed.
  • bun run test test/service.test.ts in packages/cli: 5 passed.
  • Push hook reran root bun typecheck: 32 tasks passed.

Attempted bun run test test/server/worktree-endpoint-repro.test.ts in packages/opencode; the file fails during module initialization before running tests with the existing ReferenceError: Cannot access 'ID' before initialization at packages/core/src/session.ts:150 (SkillV2.ID). The same initialization path is unchanged from origin/v2.

@kitlangton
kitlangton merged commit 44f7bb7 into v2 Jul 17, 2026
8 of 9 checks passed
@kitlangton
kitlangton deleted the effect-beta-98 branch July 17, 2026 14:31
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant