Skip to content

feat: stream AI suggestions over HTTP via a plain Express route - #664

Open
Reversean wants to merge 5 commits into
chore/bump-types-nodefrom
feat/ai-streaming
Open

feat: stream AI suggestions over HTTP via a plain Express route#664
Reversean wants to merge 5 commits into
chore/bump-types-nodefrom
feat/ai-streaming

Conversation

@Reversean

@Reversean Reversean commented Jul 28, 2026

Copy link
Copy Markdown
Member
  • AI suggestion stream is served through a dedicated GET /integration/ai/stream Express route.
  • The Fetch API Response returned by the AI SDK's toUIMessageStreamResponse() is adapted onto the Express response.
  • Declares ReadableStream/Response as ESLint globals (.eslintrc.js) - valid Node 18+ runtime globals that predate ESLint's bundled node env.

Reversean and others added 5 commits July 28, 2026 16:29
GraphQL/Apollo doesn't support server-push streaming, so the suggestion
stream is served through a dedicated /integration/ai/stream route instead
of a subscription. Workspace-membership authorization is shared with the
GraphQL path via the exported checkUserInWorkspaceByProjectId, and the
Fetch API Response from the AI SDK is piped into the Express response.
Adds a shared makeExpressRequest test helper (built on a real Writable so
piped stream responses work, not just res.json()) and switches the GitHub
route tests over to it instead of duplicating the same request-simulation
logic.
ReadableStream/Response are valid Node 18+ globals but predate eslint's
"node" env, so no-undef didn't recognize them. Declaring them once in
.eslintrc.js replaces the per-file /* global */ comment this would
otherwise need everywhere they're used.
No longer needed now that @types/node matches the Node 24 runtime and
declares it natively.
@Reversean
Reversean requested a review from FeironoX5 July 28, 2026 14:48
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