Skip to content

Fix misleading JSDoc comment on copyAsPrompt() to match actual behavior#785

Merged
eldong merged 2 commits intoexport-messagefrom
copilot/sub-pr-783
Mar 10, 2026
Merged

Fix misleading JSDoc comment on copyAsPrompt() to match actual behavior#785
eldong merged 2 commits intoexport-messagefrom
copilot/sub-pr-783

Conversation

Copy link
Contributor

Copilot AI commented Mar 10, 2026

The JSDoc comment above copyAsPrompt() claimed AI messages were wrapped with extra instructions before insertion, but the implementation inserts raw content unchanged for all message types.

Change

Updated the comment to accurately describe the behavior:

// Before
/**
 * Insert the message content as a formatted prompt directly into the chat
 * input box so the user can review, edit, and send it.
 * For AI messages, wraps with instructions to continue/build on the response.
 * For user messages, inserts the raw content as a reusable prompt.
 */

// After
/**
 * Insert the message content as a formatted prompt directly into the chat
 * input box so the user can review, edit, and send it.
 * The raw message content is inserted unchanged for both user and AI messages.
 */

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: eldong <11573590+eldong@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Markdown and Word export feature based on feedback Fix misleading JSDoc comment on copyAsPrompt() to match actual behavior Mar 10, 2026
@eldong eldong marked this pull request as ready for review March 10, 2026 14:51
@eldong eldong merged commit 06f55a0 into export-message Mar 10, 2026
2 checks passed
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