Skip to content

feat: bridge permission and provider auth routes behind OPENCODE_EXPERIMENTAL_HTTPAPI#22736

Merged
kitlangton merged 1 commit into
devfrom
kit/httpapi-flag-integration
Apr 16, 2026
Merged

feat: bridge permission and provider auth routes behind OPENCODE_EXPERIMENTAL_HTTPAPI#22736
kitlangton merged 1 commit into
devfrom
kit/httpapi-flag-integration

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Summary

  • Bridge /permission, /permission/*, and /provider/auth through the Effect HttpApi handler behind the OPENCODE_EXPERIMENTAL_HTTPAPI flag
  • Update httpapi route paths from /experimental/httpapi/* to their real paths (/permission, /provider)
  • Remove openapiPath from all HttpApiBuilder.layer calls — no longer serving standalone OpenAPI docs
  • Update specs/effect/http-api.md with the integration strategy, observability learnings, and updated route inventory

What's bridged now

When OPENCODE_EXPERIMENTAL_HTTPAPI=true:

Route Hono Effect HttpApi
GET /question dead code QuestionHttpApi.list
POST /question/:id/reply dead code QuestionHttpApi.reply
POST /question/:id/reject dead code QuestionHttpApi.reject
GET /permission dead code PermissionHttpApi.list
POST /permission/:id/reply dead code PermissionHttpApi.reply
GET /provider/auth dead code ProviderHttpApi.auth
Other /provider/* routes Hono handles not ported yet

Zero SDK diff confirmed.

…RIMENTAL_HTTPAPI

- update permission httpapi paths from /experimental/httpapi/permission to /permission
- update provider httpapi paths from /experimental/httpapi/provider to /provider
- bridge /permission, /permission/*, and /provider/auth behind the flag
- remove openapiPath from all HttpApiBuilder.layer calls (no longer standalone)
- update specs/effect/http-api.md with integration strategy, learnings, and updated route inventory
@kitlangton kitlangton force-pushed the kit/httpapi-flag-integration branch from 0e3dc7a to 08da403 Compare April 16, 2026 02:57
@kitlangton kitlangton enabled auto-merge (squash) April 16, 2026 02:58
@kitlangton kitlangton disabled auto-merge April 16, 2026 03:02
@kitlangton kitlangton merged commit b0eae5e into dev Apr 16, 2026
9 checks passed
@kitlangton kitlangton deleted the kit/httpapi-flag-integration branch April 16, 2026 03:02
jerome-benoit pushed a commit to jerome-benoit/opencode that referenced this pull request Apr 16, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
dgokeeffe pushed a commit to dgokeeffe/opencode-databricks that referenced this pull request May 6, 2026
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
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