GeezerVison is showing github.com — fix(provider-cursor): stream live shell output by Zburgers · Pull Request #30229 · pingdotgg/t3code
Conversation
Zburgers
commented
Nov 3, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
Cursor shell commands never stream live output. While a command runs, the expanded command row stays empty, and the entire log lands when the tool call finishes — a multi-minute command looks hung. Issue: #30228.
Change
@cursor/sdk sends shell-output-delta as a protobuf oneof:
{ "case": "stdout", "value": { "data": "stream line 1\n" } }
{ "case": "stderr", "value": { "data": "" } }
{ "case": "exit", "value": { "code": 0, "aborted": false } }
shellOutputText looked for text, output, data, stdout, stderr, and chunk at the top level. Every Cursor chunk parsed as "", and the shell-output-delta case returned before emitting command_output.delta, so the only output left was the completion fallback. The extractor now reads event.value.data for stdout/stderr and ignores every other case; exit carries a status, not text.
The streamed tail still accumulates in streamedOutput and still backs the completion fallback when a tool call ends without a result. CommandOutputHub, subscribeCommandOutput, and CommandOutputPanel are untouched — they already stream for Codex and Claude Agent.
The regression test adds a Cursor transcript to the existing command_output_streaming replay fixture. It emits four stdout chunks, a \r-rewritten progress line, and an exit frame, then reuses the existing assertion, which fails if the running command recorded no live chunks.
Scope and approval
Tracking issue: #30228.
One provider adapter fix. No changes to @cursor/sdk (closed source, already streams per chunk), contracts, server, or web. Nested subagent shells are not covered: the SDK's NestedTaskUpdate surface does not expose shell deltas.
Verification
Before the fix (main @ cefb544af3), the new fixture fails at the streaming assertion rather than at the final-output assertion:
$ vp test run apps/server/src/orchestration-v2/testkit/CursorReplayFixtures.integration.test.ts -t "command_output_streaming/cursor"
AssertionError: the running command must stream its output: expected undefined to not equal undefined
After the fix:
$ vp test run apps/server/src/orchestration-v2/testkit/CursorReplayFixtures.integration.test.ts -t "command_output_streaming"
Test Files 1 passed (1)
Tests 1 passed | 11 skipped (12)
$ vp test run apps/server/src/orchestration-v2/testkit/CodexReplayFixtures.integration.test.ts -t "command_output_streaming"
Tests 1 passed | 24 skipped (25)
$ vp test run apps/server/src/orchestration-v2/testkit/ClaudeReplayFixtures.integration.test.ts -t "command_output_streaming"
Tests 1 passed | 37 skipped (38)
$ vp test run packages/provider-cursor/src/server/adapter.test.ts
Tests 21 passed (21)
$ vp run check:changed
pass format
pass lint
pass knip
pass graphql (apps/server)
pass typecheck (10 packages)
pass test (2 files)
Not run: a live Cursor turn in a client. The replay transcript pins the SDK frame shape the adapter consumes, and the UI path is shared with the providers that already stream.
Implemented with Naki's deepseek-v4.1-flash in OpenCode and GPT 6.1 Terra via T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The command_output_streaming fixture only ran Codex and Claude Agent, so nothing covered Cursor dropping every shell-output-delta. The new transcript records the SDK oneof frames and asserts the same live tail.
The SDK sends shell-output-delta as a protobuf oneof: { case: stdout | stderr, value: { data } }. The adapter read flat keys and always got an empty chunk, so the delta was dropped and output appeared only at completion.
Zburgers
changed the title
chore(provider-cursor): track live shell output streaming fix
fix(provider-cursor): stream live shell output
Nov 3, 2026
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
⚠️ Failed 2026-11-03T15:15:52.382424Z We couldn’t complete this review. Comment @codex review to try again. |
8bf65b9 |
Draft marked ready |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 3, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Note
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
Use the following commands to manage reviews:
@coderabbitai resume to resume automatic reviews.
@coderabbitai review to trigger a single review.
Use the checkboxes below for quick actions:
- Resume reviews
- Trigger review
No actionable comments were generated in the recent review.
Walkthrough
-
The Cursor adapter now reads shell output from stdout and stderr oneof values. The command-output streaming replay fixture adds a Cursor transcript and uses the existing output assertion.
Changes: Cursor shell output streaming
| Layer / File(s) |
Summary |
Decode shell output deltas packages/provider-cursor/src/server/adapter.ts |
shellOutputText now reads string data from stdout and stderr oneof cases. Other cases and non-string data return an empty string. |
Add Cursor replay coverage apps/server/src/orchestration-v2/testkit/fixtures/command_output_streaming/cursor_transcript.ndjson, apps/server/src/orchestration-v2/testkit/fixtures/index.ts |
The command-output streaming fixture adds a Cursor transcript and provider entry. It uses CURSOR_MODEL_SELECTION and the existing output assertion. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related issues
pingdotgg/t3code#30228 reports Cursor shell output staying empty until command completion. This change reads data from Cursor shell-output-delta events.
pingdotgg/t3code#25940 reports command stdout being unavailable while a command runs. This change covers incremental output for Cursor; the issue describes a Codex persistence path.
Suggested reviewers: juliusmarminge, stienswout
Merge Risk: Minimal · up to cbb49
-
This change makes Cursor shell output stream live and adds replay coverage. No concrete merge-blocking defect was found. Live Cursor behavior was not tested with an authenticated client, but that is ordinary validation uncertainty and not an identified risk.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly and concisely identifies the main change: enabling live shell output streaming in the Cursor provider. |
| Description check |
 |
The description includes all required sections and clearly explains the problem, implementation, scope, issue reference, verification results, and known testing limitation. |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 8e647bc and cbb493e.
Files selected for processing: 2
-
apps/server/src/orchestration-v2/testkit/fixtures/index.ts
packages/provider-cursor/src/server/adapter.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Hi maintainers, let me know if theres anything you'd like me to do here.
I'd love to work more on this issue and become a contributor to the t3 community as well.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
merged current main without conflicts and pushed 188cadac05 to the existing head. the scoped diff remains three files, 39 additions and 9 deletions; no source changes were needed.
blacksmith verification passed: vp run check:changed, the cursor command_output_streaming orchestration replay, and all three OpenInPicker.browser.test.tsx tests, including the previously failing announcement assertion. main's web ci also passed. two independent read-only reviews found no blockers.
live cursor/client streaming remains unverified because this vm has no cursor login. the replay verifies live output and persisted output through the actual adapter and orchestrator. new-head ci is running.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
The automated pipeline stopped on this pull request and will not merge it:
in the real app the problem is still there, and the rework changed nothing:
Not fixable in this PR, and nothing was pushed. The reviewer is right that ticks never appear live, but the cause is not in T3. I drove @cursor/sdk 1.2.0 directly, outside T3, with the reviewer's prompt (for i in 1 2 3 4 5; do echo "tick $i"; sleep 2; done) and logged when each onDelta update arrived. I ran it once with default options and once with the adapter's exact AgentOptions (mode agent, sandboxOptions.enabled false, settingSources, enableAgentRetries). Both times the SDK sent nothing between tool-call-started (13.9s) and tool-call-completed (24.3s): no shell-output-delta and no tool-call-delta. In the SDK bundle, shellOutputDelta is only produced by the shell-stream forwarder, which runs only when the run action is a user-initiated shellCommandAction. The toolCallDelta update is only produced for subagent (taskToolCallDelta) updates. @cursor/sdk 1.3.1, the latest release, has the same code. So for agent shell tool calls the output first reaches the adapter in tool-call-completed. That is the 'burst near completion' the reviewer saw on both commits. The PR's extractor is correct for the shape the SDK actually sends ({case:'stdout'|'stderr', value:{data}}) but never runs during agent turns. The only SDK hook that could stream output is the overrideShellExecutor subagent resource-provider slot, whose interface Cursor does not publish. Using it would mean re-implementing Cursor's shell execution, sandboxing and approval behind an undocumented interface, which is a maintainer decision and well beyond this fix. Options for the maintainer: (1) narrow this PR to 'decode Cursor shell-output-delta correctly' without claiming live streaming; (2) close it until Cursor's SDK emits output deltas for agent shell calls, and raise that upstream; (3) approve the much larger custom-executor approach.
It stays open for a person to finish or close.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for this. Main has the change since #34843.
Main now reads stdout/stderr from event.value.data and ignores exit frames, matching your adapter fix; I compared your complete diff, including the replay fixture. Main also forwards live agent shell output from the SDK and routes chunks by tool-call ID, so it covers the runtime behavior your PR targets.
Closing as superseded.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|