Copy the full generated prompt from the wizard dialog - #243
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
Fix assistant dialog prompt copying
Copy the full generated prompt from the wizard dialog
Sep 1, 2026
Copilot created this pull request from a session on behalf of
pelikhan
September 1, 2026 12:47
View session
pelikhan
marked this pull request as ready for review
September 1, 2026 12:49
Contributor
There was a problem hiding this comment.
Reviewer: matt-pocock (auto-dispatched — TS/JS changes)
Reviewed the diff and test updates for wiring the fully generated prompt into the scenario assistant copy dialog.
No blocking issues found:
promptfallback torequestinslm-ui.jsis safe ifctx.promptis not a function.ui.jscorrectly wiresgenerateAgentPrompt(gatherAnswers(), patterns)into the assistant context.- Regression test in
test/slm-ui.test.jsverifies the clipboard now receives the full generated prompt via the copy button. - Ran the test suite locally (
vitest run test/slm-ui.test.js test/ui.test.js) — all 16 tests pass.
Minor (non-blocking) observation: ctx.prompt() is invoked eagerly whenever a scenario match succeeds, calling gatherAnswers()/generateAgentPrompt() synchronously on the DOM at that moment — this is fine given the existing call pattern, just flagging for awareness if gatherAnswers() becomes expensive later.
Generated by Specialist PR Review for #243 · auto · 25.1 AIC · ⌖ 1.72 AIC · ⊞ 8K
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.
The scenario assistant dialog copied only the user’s intent. It now copies the complete prompt generated from the current wizard configuration.
Changes