-
Notifications
You must be signed in to change notification settings - Fork 771
added wire types for asking and answering questions for Autopilot #6272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
virajmehta
wants to merge
6
commits into
main
Choose a base branch
from
viraj/autopilot-question-wire-type
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+241
−5
Conversation
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
GabrielBianconi
requested changes
Feb 11, 2026
simeonlee
added a commit
that referenced
this pull request
Feb 11, 2026
- Replace prototype types with shapes matching EventPayloadUserQuestions - Add UUID id fields to questions and options - Use multi_select (snake_case) matching backend convention - Remove RatingQuestion (not in backend schema) - Update onSubmit to emit Record<questionId, UserQuestionResponse> - Use option IDs instead of labels for selection tracking - Update AnsweredQuestionCard to display responses by type
simeonlee
added a commit
that referenced
this pull request
Feb 11, 2026
Viraj confirmed `format` stays (can't nest two `type`-tagged serde enums), and renamed UserResponses → UserQuestionsAnswers per Gabriel's review. Update local types to match the final wire format from PR #6272.
5 tasks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
GabrielBianconi
approved these changes
Feb 11, 2026
GabrielBianconi
approved these changes
Feb 12, 2026
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.
Note
Medium Risk
Adds new wire-level event variants and marks
user_questions_answersas client-writable; incorrect validation/handling could lead to incompatible clients or unexpected event writes, though changes are mostly additive types and UI fallbacks.Overview
Adds new Autopilot event payload variants for asking users questions and collecting answers (
user_questionsanduser_questions_answers) to both the internal and gateway payload enums, including full wire schemas for multiple-choice and free-response formats.Updates client-writable event classification to allow clients to submit
user_questions_answers, and regenerates/exports the corresponding TypeScript bindings. The UI event stream is updated to tolerate these new payload types by treating them as unknown placeholders (no rendering yet).Written by Cursor Bugbot for commit 8b946b5. This will update automatically on new commits. Configure here.