Skip to content

feat(httpapi): expose async command endpoint#26027

Open
qz1543706741 wants to merge 2 commits intoanomalyco:devfrom
qz1543706741:codex/command-async-httpapi-sdk
Open

feat(httpapi): expose async command endpoint#26027
qz1543706741 wants to merge 2 commits intoanomalyco:devfrom
qz1543706741:codex/command-async-httpapi-sdk

Conversation

@qz1543706741
Copy link
Copy Markdown

Issue for this PR

Closes #26026

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds the async command route to the Effect HttpApi backend so session.commandAsync works through the generated v2 SDK against both backend paths.

It also regenerates the OpenAPI spec and JS SDK v2 types, and adds parity coverage for the generated SDK route.

How did you verify your code works?

  • ./script/generate.ts
  • bun typecheck in packages/opencode
  • bun typecheck in packages/sdk/js

I also ran the focused server tests, but this local macOS checkout fails while starting the file watcher with Error starting FSEvents stream.

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

qinzhen06 added 2 commits May 6, 2026 18:59
Register command_async in the Effect HttpApi contract and handler so SDK clients can send async session commands through either backend.

Regenerate the OpenAPI spec and JS SDK v2 types from ./script/generate.ts, and add parity coverage for the generated SDK route.

Also adapts the focused command_async route test to the current WithInstance test harness.
@qz1543706741 qz1543706741 marked this pull request as ready for review May 6, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generated SDK misses HttpApi async command support

1 participant