Skip to content

Conversation

@kitlangton
Copy link
Contributor

@kitlangton kitlangton commented Jan 14, 2026

Closes #8338

Summary

  • Add number keys (1-9) for quick option selection
  • Show inline checkboxes [✓] for multi-select questions (including "Other" option)
  • Stack answered questions vertically (question above answer)
  • Support Ctrl+C to clear custom answer input
  • Move caret to end when re-entering custom answer textarea
  • Fix bug where submitting empty custom input cleared all other selections

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one potentially related PR:

PR #7653: feat(questions): enhance questions TUI + add full descendants support

This PR may be related as it also addresses question TUI enhancements and display improvements. You should check if it overlaps with the UX improvements in PR #8339 (number keys for selection, inline checkboxes, vertical stacking, etc.).

- Add number keys (1-9) for quick option selection
- Show inline checkboxes [✓] for multi-select questions
- Add input_clear keybind support in custom answer textarea
- Fix textarea focus via queueMicrotask in ref callback
- Improve review section layout with proper span composition
- Extract selectAt helper to deduplicate selection logic
- Fix answered questions display to stack vertically (question above answer)
@kitlangton kitlangton force-pushed the question-prompt-improvements branch from 10c8354 to 55000a7 Compare January 14, 2026 03:00
@kitlangton kitlangton marked this pull request as ready for review January 14, 2026 03:01
Comment on lines +156 to 159
const answers = [...store.answers]
answers[store.tab] = (answers[store.tab] ?? []).filter((x) => x !== prev)
setStore("answers", answers)
}
Copy link
Contributor Author

@kitlangton kitlangton Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, before this, confirming a custom input with an empty response for a multi-select question would clear out all of the other selections.

@thdxr thdxr merged commit b2b123a into anomalyco:dev Jan 14, 2026
5 checks passed
Ashwin-droid added a commit to Ashwin-droid/opencode that referenced this pull request Jan 15, 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.

Question prompt UX improvements

2 participants