Skip to content

Delete named schema error wrapper - #27066

Merged
kitlangton merged 1 commit into
devfrom
cleanup/delete-named-schema-error
May 12, 2026
Merged

Delete named schema error wrapper#27066
kitlangton merged 1 commit into
devfrom
cleanup/delete-named-schema-error

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the remaining namedSchemaError(...) calls with NamedError.create(...).
  • Deletes packages/opencode/src/util/named-schema-error.ts.
  • Consolidates shared session message errors in session/message-error.ts and reuses their schemas from v1/v2 message modules.

Verification

  • bun typecheck in packages/core
  • bun typecheck in packages/opencode
  • bun run test -- test/util/error.test.ts test/session/retry.test.ts test/session/session-schema.test.ts test/provider/provider.test.ts
  • bunx prettier --check ... on changed files
  • bunx oxlint ... on changed files (warnings only, existing patterns)
  • pre-push bun turbo typecheck

@kitlangton
kitlangton merged commit c7d8b0d into dev May 12, 2026
15 of 16 checks passed
@kitlangton
kitlangton deleted the cleanup/delete-named-schema-error branch May 12, 2026 16:04
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request Jun 15, 2026
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 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