Skip to content

test(httpapi): cover hono bridge middleware#24216

Merged
kitlangton merged 1 commit intodevfrom
kit/httpapi-bridge-tests
Apr 24, 2026
Merged

test(httpapi): cover hono bridge middleware#24216
kitlangton merged 1 commit intodevfrom
kit/httpapi-bridge-tests

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • Add bridge-level tests through InstanceRoutes for the flag-mounted HttpApi Hono path.
  • Cover auth disabled, missing/bad Basic auth, valid Basic auth, auth_token, and query-vs-header instance selection.
  • Fix GET /project/current HttpApi handler to read the Effect-provided instance context instead of ALS directly.

Testing

  • bun typecheck from packages/opencode
  • bun run test:ci test/server/httpapi-bridge.test.ts from packages/opencode
  • bun run test:ci test/server/httpapi-file.test.ts test/server/httpapi-mcp.test.ts test/server/httpapi-workspace.test.ts test/server/httpapi-bridge.test.ts from packages/opencode
  • push hook bun turbo typecheck

@kitlangton kitlangton merged commit 97eb9fd into dev Apr 24, 2026
11 of 13 checks passed
@kitlangton kitlangton deleted the kit/httpapi-bridge-tests branch April 24, 2026 22:03
vaur94 pushed a commit to vaur94/opencode that referenced this pull request Apr 25, 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