Repository navigation
feat(agentstudio): stream single-turn completion events - #307
Open
leonardocuco wants to merge 1 commit into
Open
leonardocuco wants to merge 1 commit into
leonardocuco wants to merge 1 commit into
Conversation
Contributor
Author
|
Claude Code reviewed this change at b3a64a7 for the author: 7 findings, all minor, 0 fixed. None blocks the change, and nothing was pushed for them.
|
leonardocuco
marked this pull request as ready for review
December 1, 2026 12:50
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The single-turn completion command in #305 only supports a non-streaming response, so scripts cannot consume events as they arrive.
Change
Add
--streamtoagentstudio completions create. It requests AI SDK 5 SSE and writes each JSON event as one NDJSON line. It preserves the default non-streaming behavior, forwards approval events without approving them, reports stream errors and interruption, and requires a finish event. Server-side tools may execute.The SDK SSE decoder does not expose the backend's final unterminated
[DONE]marker, so this implementation validates thefinishevent instead. Multi-turn context and approval continuation remain separate C7 work.Verification
go test ./...,go generate ./...,go build ./..., gofumpt andgit diff --check.Stacked on #305; retarget after C6 merges. Related to CEC-1883. No deployment or release during the code freeze.