Skip to content

feat(kimi-web): rework ask-user-question card as step-by-step wizard - #1162

Merged
wbxl2000 merged 2 commits into
mainfrom
fix/web-askuserquestion-wizard
Jun 27, 2026
Merged

feat(kimi-web): rework ask-user-question card as step-by-step wizard#1162
wbxl2000 merged 2 commits into
mainfrom
fix/web-askuserquestion-wizard

Conversation

@wbxl2000

Copy link
Copy Markdown
Collaborator

Related Issue

No related issue. This change addresses a UX problem in the web UI where the "Prev" / "Next" navigation for multi-question askUserQuestion prompts was hidden in the card header, making it easy to miss additional questions and accidentally submit before answering all of them.

Problem

In apps/kimi-web/src/components/chat/QuestionCard.vue, the previous/next buttons for multi-question prompts lived in the header and were easy to overlook. Users could select an answer for the first question and hit Submit without realizing more questions followed.

What changed

  • Removed the small Prev/Next buttons from the header.
  • Added a visible stepper (numbered dots) above the question text; answered steps are highlighted and dots are clickable for quick navigation.
  • Reorganized the footer into a left-aligned wizard flow:
    • Primary action is "Next question" until the last step, then "Submit".
    • "Back" is shown for multi-question prompts.
    • "Dismiss" is de-emphasized as a plain-text button.
  • Disabled "Next" until the current question is answered, and "Submit" until all questions are answered.
  • Updated Enter key handling to advance to the next question when applicable.
  • Updated en/question.ts and zh/question.ts locale keys.

A patch changeset has been added because the web app is bundled into the CLI release artifact.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works. (Existing unit tests still pass; the change is UI-only.)
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jun 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a85ea60

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jun 27, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@a85ea60
npx https://pkg.pr.new/@moonshot-ai/kimi-code@a85ea60

commit: a85ea60

@wbxl2000
wbxl2000 merged commit b070846 into main Jun 27, 2026
10 checks passed
@wbxl2000
wbxl2000 deleted the fix/web-askuserquestion-wizard branch June 27, 2026 17:24
@github-actions github-actions Bot mentioned this pull request Jun 27, 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.

1 participant