Skip to content

fix: use radio inputs for single-choice plan answers#1730

Merged
Twixes merged 1 commit into
mainfrom
posthog-code/plan-answer-radio
Apr 20, 2026
Merged

fix: use radio inputs for single-choice plan answers#1730
Twixes merged 1 commit into
mainfrom
posthog-code/plan-answer-radio

Conversation

@posthog
Copy link
Copy Markdown
Contributor

@posthog posthog Bot commented Apr 20, 2026

Summary

  • Plan-answer questions that are single-choice (multiSelect: false) now render a radio indicator next to each option instead of a checkbox, matching the semantics (radio = one of, checkbox = many of).
  • Threaded multiSelect from ActionSelector through to OptionRow; multi-select questions still render checkboxes as before.

Test plan

  • Open a task where the agent asks a single-choice plan question — confirm options render with radio buttons, selecting one deselects the other.
  • Confirm a multi-select question still renders checkboxes and allows multiple selections.
  • Single-question (no steps) single-select flows still work unchanged (no indicator, submits on select).

Created with PostHog Code

The ActionSelector rendered checkboxes for every option when a submit
button was shown, even for single-select questions. Thread multiSelect
through to OptionRow so single-choice renders a Radio and multi-choice
renders a Checkbox.

Generated-By: PostHog Code
Task-Id: 9f37eb73-be5d-4881-bebb-e3edda480a58
@Twixes Twixes marked this pull request as ready for review April 20, 2026 10:56
@Twixes Twixes requested a review from a team April 20, 2026 10:56
@Twixes Twixes merged commit 537985c into main Apr 20, 2026
15 checks passed
@Twixes Twixes deleted the posthog-code/plan-answer-radio branch April 20, 2026 13:22
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.

1 participant