## TL;DR

Remove the @remix-run/web-std-io polyfills (see remix-run/web-std-io#42).

## Steps

1. StreamingTextResponse breaks in Remix action functions because of polyfilled web streams: `@remix-run/web-fetch`/`web-std-io` polyfill ReadableStream, and the AI SDK passes a native TransformStream to `pipeThrough`, which fails the polyfill's internal checks. Remove the `@remix-run/web-std-io` polyfills (see remix-run/web-std-io#42). If the issue persists after removal, the polyfills were not the only cause.

## When to use

You are seeing this: If the issue persists after removal, the polyfills were not the only cause. Use this skill when you run into "StreamingTextResponse not compatible with Remix action function".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
