Skip to content

Commit

Permalink
Run clearAndRestartSession only when we're starting new chat
Browse files Browse the repository at this point in the history
  • Loading branch information
ykdojo committed Oct 24, 2024
1 parent 88866a7 commit 3df06e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion vscode/src/chat/chat-view/ChatsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ export class ChatsController implements vscode.Disposable {
} else {
provider = await this.getOrCreateEditorChatController()
}
await provider.clearAndRestartSession()
if (submitType === 'new-chat') {
await provider.clearAndRestartSession()
}
const abortSignal = provider.startNewSubmitOrEditOperation()
const editorState = editorStateFromPromptString(text)
await provider.handleUserMessageSubmission({
Expand Down
4 changes: 2 additions & 2 deletions vscode/src/commands/execute/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ export async function executeExplainOutput(

const template = ps`Review and analyze this terminal output from the \`{{PROCESS}}\` process and summarize the key information. If this indicates an error, provide step-by-step instructions on how I can resolve this:
\n\`\`\`
\n{{OUTPUT}}
\n\`\`\`
{{OUTPUT}}
\`\`\`
`

0 comments on commit 3df06e5

Please sign in to comment.