fix: slash command prompts not applied in edit mode#12122
Open
octo-patch wants to merge 3 commits intocontinuedev:mainfrom
Open
fix: slash command prompts not applied in edit mode#12122octo-patch wants to merge 3 commits intocontinuedev:mainfrom
octo-patch wants to merge 3 commits intocontinuedev:mainfrom
Conversation
added 3 commits
April 11, 2026 11:40
…le prompt files in edit mode (fixes continuedev#12087) The selector `selectSlashCommandComboBoxInputs` was returning the slash command source as `source`, but `ContinueInputBox` filters slash commands in edit mode by checking `cmd.slashCommandSource`. This property name mismatch caused all slash commands (including prompt files) to be filtered out in edit mode, since `cmd.slashCommandSource` was always `undefined`. Rename `source` to `slashCommandSource` in the selector return value to match the `ComboBoxItem` type definition and the edit-mode filter logic.
…ion (fixes continuedev#12056) When compileChatMessages prunes a thinking message due to context overflow, the associated assistant message still carries fc_* IDs that reference the now-absent reasoning item (rs_*). The OpenAI Responses API then rejects the request with a 400 error: "Item 'fc_...' of type 'function_call' was provided without its required 'reasoning' item: 'rs_...'" Fix: add a second pass in sanitizeResponsesInput that scans backward from each function_call with a fc_* ID to find whether a kept reasoning item exists in the same turn block. If no reasoning is found, the fc_ ID is stripped from the function_call so the API does not look for the missing reasoning item. Also adds test cases covering the pruned-reasoning scenario.
…ontinuedev#12087) Previously, streamEditThunk passed an empty array for availableSlashCommands, causing prompt files from .continue/prompts to be silently ignored when used in edit mode (Ctrl+I). The slash command dropdown correctly showed prompts (filtered by ContinueInputBox), but selecting one had no effect because renderSlashCommandPrompt could not find the command in the empty list. Fix: read slashCommands from Redux state and pass them to resolveEditorContent, matching the pattern used in streamResponseThunk.
Contributor
|
I have read the CLA Document and I hereby sign the CLA octo-patch seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
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.
Fixes #12087
Problem
When using edit mode (Ctrl+I), prompt files placed in
.continue/promptsare silently ignored. The slash command dropdown in edit mode correctly shows the available prompts (filtered byContinueInputBox), but selecting one and pressing Enter has no effect — the prompt content is not prepended to the request.Root cause:
streamEditThunkcallsresolveEditorContentwithavailableSlashCommands: [](an empty array). WhenrenderSlashCommandPromptlooks up the selected command by name, it finds nothing in the empty list and returns early with no modifications to the message content.Solution
Read
slashCommandsfrom the Redux state (same pattern asstreamResponseThunk) and pass them toresolveEditorContent. This allowsrenderSlashCommandPromptto find and render the prompt file content when a/prompt-nameis selected in edit mode.Testing
.continue/prompts/test.promptwith some content/testand select the prompt from the dropdownSummary by cubic
Fixes slash-command prompts not being applied in edit mode (Ctrl+I) and prevents OpenAI Responses API 400s by stripping orphaned
fc_IDs after context compaction.slashCommandsfrom Redux toresolveEditorContentinstreamEditThunk, and useslashCommandSourceinselectSlashCommandComboBoxInputsso.continue/promptsare applied; fixes vscode continue code edit cant paste prompt #12087.sanitizeResponsesInputto stripfc_IDs fromfunction_callitems when the preceding reasoning was pruned, avoiding “function_call without required reasoning” errors; adds tests inopenaiTypeConverters.test.ts; fixes Error: GPT-5 - 400 #12056.Written for commit d7a2159. Summary will update on new commits.