Skip to content

fix(vscode): all AskUserQuestions should be answered and added to the… - #2326

Merged
wbxl2000 merged 3 commits into
MoonshotAI:mainfrom
gaoyuan1223m:bugfix/gaoyuan1223_202607290
Jul 31, 2026
Merged

fix(vscode): all AskUserQuestions should be answered and added to the…#2326
wbxl2000 merged 3 commits into
MoonshotAI:mainfrom
gaoyuan1223m:bugfix/gaoyuan1223_202607290

Conversation

@gaoyuan1223m

@gaoyuan1223m gaoyuan1223m commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Related Issue

Resolve #(2299)

Problem

In the kimi-code vscode plugin, only the first AskUserQuestion was asked and passe to the context, the rest used the default, which didn't align with user's expectation.

What changed

see detailed changes in this commit

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.
  • 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 Jul 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 084dc75

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

This PR includes changesets to release 1 package
Name Type
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

@gaoyuan1223m

Copy link
Copy Markdown
Contributor Author

would any contributor please review my simple PR? really appreciate it. @liruifengv @wbxl2000

@pkg-pr-new

pkg-pr-new Bot commented Jul 31, 2026

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

commit: 084dc75

@wbxl2000

Copy link
Copy Markdown
Collaborator

@codex

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 084dc7530e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +29 to +31
const handleAnswer = async (answer: string) => {
const nextAnswers = { ...answers, [question.question]: answer };
if (questionIndex + 1 < questions.length) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve multi-select answers before advancing

When a batched AskUserQuestion has a later item with multi_select: true, this new step-through path still routes every click through a single handleAnswer call and immediately advances or responds. Because the VS Code bridge passes multi_select through, valid batches like single-select Q1 plus multi-select Q2 will submit only the first clicked Q2 label and give the user no way to pick the remaining options, so the agent receives an incomplete answer. Keep per-question multi-selection state and advance only after an explicit submit for those items.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Valid symptom, but for the record: the dialog has never supported multi_select — before this PR a multi-select first question behaved exactly the same (first click submitted immediately), so this isn't introduced by the step-through path. Keeping this PR minimal to fix #2299 (later questions not answerable at all). Multi-select support is tracked in #2463, together with a planned single-form redesign.

@wbxl2000

Copy link
Copy Markdown
Collaborator

Thanks for your contribution!

@wbxl2000
wbxl2000 merged commit 302b2cd into MoonshotAI:main Jul 31, 2026
14 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 31, 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.

2 participants