You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Three frictions surfaced while building the OpenAI Responses and
Anthropic Messages examples, all fixed here.
1. SSE construction was verbose: every user had to import axum::Sse +
KeepAlive, futures-core, futures-util, plus Box::pin the stream.
Now the generator emits `sse_response(stream)` alongside the
`ServerEventStream` type alias — wraps any
`Stream<Item = Result<Event, Infallible>>` and returns the exact
payload the OkStream variant takes. Both examples updated to use
it; the streaming branch is now two lines.
2. After `generate` the user had no signpost to the implementation
step. The CLI now prints a paste-ready impl skeleton naming the
concrete trait, method, body type, and router function picked
from the first resolved operation. SSE ops also get a one-line
hint about `sse_response`.
3. `server add --regenerate` was declared in the planning doc but
never wired. Now it re-execs the binary in `generate` mode using
the same compiled artifact — fixes the "add then forget to
regenerate" footgun.
Verified: 318 lib/integration tests green, clippy -D warnings clean,
both example crates' `cargo test` (unary + SSE branches) still pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments