Skip to content

refactor(httpapi): drop session prompt bridge#25210

Merged
kitlangton merged 1 commit intodevfrom
kit/drop-httpapi-session-bridge
May 1, 2026
Merged

refactor(httpapi): drop session prompt bridge#25210
kitlangton merged 1 commit intodevfrom
kit/drop-httpapi-session-bridge

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • Remove EffectBridge usage from HttpApi session prompt and prompt_async handlers.
  • Provide captured InstanceRef / WorkspaceRef directly to prompt effects so streamed response bodies keep request-derived context.
  • Keep prompt_async detached with Effect.runFork, matching the previous background behavior without restoring ALS.

Testing

  • bun typecheck from packages/opencode
  • bun run test:ci test/server/httpapi-session.test.ts test/server/httpapi-sdk.test.ts from packages/opencode
  • Push hook: bun turbo typecheck

Note: the combined HttpApi session/SDK test had one transient file-search parity failure on first rerun, then passed on rerun.

@kitlangton kitlangton merged commit 3544ea0 into dev May 1, 2026
13 checks passed
@kitlangton kitlangton deleted the kit/drop-httpapi-session-bridge branch May 1, 2026 02:25
caretak3r pushed a commit to caretak3r/opencode that referenced this pull request May 1, 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