Skip to content

Conversation

@virajmehta
Copy link
Member

@virajmehta virajmehta commented Feb 11, 2026

Note

Medium Risk
Adds new wire-level event variants and marks user_questions_answers as 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_questions and user_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.

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.
Copy link

@cursor cursor bot left a 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 GabrielBianconi added this pull request to the merge queue Feb 12, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants