Skip to content

feat(plugin): wrap native session HTTP - #40077

Open
rekram1-node wants to merge 4 commits into
v2from
session-http-middleware
Open

feat(plugin): wrap native session HTTP#40077
rekram1-node wants to merge 4 commits into
v2from
session-http-middleware

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • replace the native session.request mutation hook with session.http around a complete Request -> Response exchange
  • expose Effect and standard Promise plugin contracts
  • preserve request and response streaming through the native HTTP transport
  • migrate the built-in OpenAI hook

The AI SDK path is intentionally unchanged.

Testing

  • bun typecheck in packages/ai, packages/core, and packages/plugin
  • bun test test/compile.test.ts test/executor.test.ts in packages/ai
  • bun test test/plugin/promise.test.ts test/plugin/provider-openai.test.ts test/plugin-hooks.test.ts in packages/core

@rekram1-node rekram1-node changed the title feat(plugin): wrap session HTTP requests refactor(plugin): rename session request hook Aug 2, 2026
@rekram1-node rekram1-node changed the title refactor(plugin): rename session request hook feat(plugin): wrap native session HTTP Aug 2, 2026
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.

1 participant