fix: pipe the whole generate-spec prompt through stdin in the cursor provider#2959
Open
sobanieca-redocly wants to merge 1 commit into
Open
fix: pipe the whole generate-spec prompt through stdin in the cursor provider#2959sobanieca-redocly wants to merge 1 commit into
sobanieca-redocly wants to merge 1 commit into
Conversation
🦋 Changeset detectedLatest commit: 2494bee The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
Contributor
Performance Benchmark (Lower is Faster)
|
sobanieca-redocly
marked this pull request as ready for review
July 23, 2026 10:30
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.
What/Why/How?
Fixes after testing
generate-specwith Cursor and OpenAI providersReference
Testing
Screenshots (optional)
Check yourself
Security
Note
Low Risk
Scoped to the Cursor provider path in
generate-specwith matching test updates; no auth, data, or broad CLI behavior changes.Overview
Fixes
generate-specwhen using the Cursor AI provider so the model receives both system instructions and the user refinement text, not just the system portion.The Cursor CLI drops piped stdin when a prompt is passed on the command line, so
runCursorno longer appendsrequest.systemto thecursor-agentargs. It now sendssystem+useron stdin (same pattern as Codex), with args limited to-p,--output-format,--trust, and optional--model.Provider tests were tightened so the spawn stub records stdin via
pipedInput, and the Cursor case asserts the combined prompt and updated argv.Reviewed by Cursor Bugbot for commit 2494bee. Bugbot is set up for automated code reviews on this repo. Configure here.