Skip to content

fix(httpapi): wire global and control handlers - #24835

Merged
kitlangton merged 1 commit into
devfrom
kit/httpapi-layer-composition
Apr 28, 2026
Merged

fix(httpapi): wire global and control handlers#24835
kitlangton merged 1 commit into
devfrom
kit/httpapi-layer-composition

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Summary

  • Wire the Effect HttpApi runtime for global and control-plane routes that were previously OpenAPI-only.
  • Split runtime routing so global/control routes stay outside instance middleware while instance HttpApi/raw routes share the instance/auth middleware boundary.
  • Simplify HttpApi handler layers to direct group layers with shared service provisioning in server composition.

Tests

  • bun typecheck
  • bun run test:ci test/server/httpapi-bridge.test.ts
  • bun run test:ci test/server/httpapi-bridge.test.ts test/server/httpapi-config.test.ts test/server/httpapi-event.test.ts test/server/httpapi-instance.test.ts test/server/httpapi-json-parity.test.ts test/server/httpapi-mcp.test.ts test/server/httpapi-provider.test.ts test/server/httpapi-session.test.ts test/server/httpapi-sync.test.ts test/server/httpapi-tui.test.ts test/server/httpapi-workspace.test.ts test/server/httpapi-pty.test.ts

Notes

  • Tests avoid real LLM calls; they only exercise route wiring, validation, SSE startup, and non-generating endpoints.

Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request Apr 28, 2026
… fix

- anomalyco/opencode#24836 SDK-level integration tests for newly-wired routes
- anomalyco/opencode#24835 wire global+control handlers and split routing
- openai/codex#20051 unbreak trunk argument-comment-lint after #20046
@kitlangton
kitlangton merged commit 58836e7 into dev Apr 28, 2026
13 checks passed
@kitlangton
kitlangton deleted the kit/httpapi-layer-composition branch April 28, 2026 20:31
oleksii-honchar pushed a commit to oleksii-honchar/better-opencode that referenced this pull request Apr 29, 2026
isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request Jun 9, 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