Skip to content

feat(cli): quiz answers#10845

Open
uinstinct wants to merge 7 commits intocontinuedev:mainfrom
uinstinct:cli-quiz
Open

feat(cli): quiz answers#10845
uinstinct wants to merge 7 commits intocontinuedev:mainfrom
uinstinct:cli-quiz

Conversation

@uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Feb 26, 2026

Description

Introduce quiz to ask clarifying questions in the cli.

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

image

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Continue Tasks: ❌ 7 failed — View all


Summary by cubic

Adds an interactive quiz flow to the CLI to ask clarifying questions before proceeding. Users can select from options or type a custom answer; prompt copy refined and the old allowCustomAnswer flag is removed.

  • New Features
    • QuizService: event-driven ask/answer with pending state; moved under services, registered via ServiceContainer (services.quiz).
    • AskQuestion tool (readonly): question, options[], defaultAnswer; no allowCustomAnswer; returns normalized reply.
    • QuizPrompt TUI: arrow-key selection or typed answers with default hint; input disabled during an active question.
    • useChat: listens for quiz events, exposes activeQuizQuestion, handleQuizAnswer; wired through TUIChat, ScreenContent, and ChatScreenContent.
    • Tools: AskQuestion added to ALL_BUILT_IN_TOOLS and BUILT_IN_TOOL_NAMES.
    • Policies: default and plan modes allow AskQuestion.

Written for commit 9ae00f5. Summary will update on new commits.

@uinstinct uinstinct requested a review from a team as a code owner February 26, 2026 06:34
@uinstinct uinstinct requested review from Patrick-Erichsen and removed request for a team February 26, 2026 06:34
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Feb 26, 2026
- also refine the prompt
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 16 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant