Skip to content

refactor(httpapi): fork server startup by flag#24799

Merged
kitlangton merged 2 commits intodevfrom
kit/httpapi-hard-fork
Apr 28, 2026
Merged

refactor(httpapi): fork server startup by flag#24799
kitlangton merged 2 commits intodevfrom
kit/httpapi-hard-fork

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • hard-fork server startup so OPENCODE_EXPERIMENTAL_HTTPAPI selects either the legacy Hono app or the Effect HttpApi app at the outer server layer
  • remove the manual Hono shadow-route bridge for HttpApi routes and add a fetch-only adapter runtime for Effect-owned handling
  • update HttpApi tests to exercise Server.Default().app so they match the real selected server path

Verification

  • bun typecheck
  • bun run test:ci test/server/httpapi-*.test.ts

@kitlangton kitlangton merged commit 7739cc5 into dev Apr 28, 2026
9 checks passed
@kitlangton kitlangton deleted the kit/httpapi-hard-fork branch April 28, 2026 15:02
oleksii-honchar pushed a commit to oleksii-honchar/better-opencode that referenced this pull request Apr 29, 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