Surface multiple solutions for katas that have them#3275
Open
amcasey wants to merge 3 commits into
Open
Conversation
When an exercise has multiple reference solutions (14 exercises today), show a "See alternative approaches" link in the panel after a passing check. Clicking opens Copilot Chat where the agent presents all reference solutions with their explanations. Changes: - Preserve all @[solution] blocks from katas content (catalog.ts was discarding all but the first via .find()) - Add hasAlternatives flag to ExerciseContent, driven by solutionCodes.length > 1 - Extend the solution tool to return alternatives alongside the primary - Thread hasAlternatives through webview to conditionally render the link - Update agent instructions with new chat entry point and handling
minestarks
reviewed
May 29, 2026
| - **"Explain this concept in more detail"** — Provide a deeper pedagogical explanation. Offer analogies, relate to prior units. Don't repeat the panel content. | ||
| - **"Help me understand why my solution failed"** — Analyze common mistakes for that exercise. Give targeted debugging hints, not the full solution. | ||
| - **"Explain this solution step by step"** — Walk through the reference solution line by line, explaining the quantum concepts and Q# patterns. | ||
| - **"Explain this solution step by step"** — Walk through the reference solution line by line, explaining the quantum concepts and Q# patterns. If there are multiple reference solutions, walk through only the first one. |
Member
There was a problem hiding this comment.
Shall we instruct Copilot to also call the readUserCode (?) tool to read the user's solution, and compare to the reference solution?
Member
There was a problem hiding this comment.
This comment was meant for the line below it. Looks like this line is just out of date (and the corresponding row in the table). Could you clean it up maybe?
Member
Author
There was a problem hiding this comment.
Removed the entry for "Explain this solution"
minestarks
reviewed
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

I remember finding the alternative solutions useful in the web version of the katas and I thought they might be useful in VS Code too. I decided not to try to figure out if the user's solution matched one of the available solutions since I wasn't sure Haiku could handle that reliably and it's easy enough to read past the one that matches yours.
