Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
angrypie committed Feb 13, 2025
1 parent 6d556fe commit 7750ae9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions node/chat/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export function init({ nvim, lsp }: { nvim: Nvim; lsp: Lsp }) {
lastUserMessage,
counter,
);
break;
return [model];
}
case "regenerate": {
const searchEndIndex = messageIndex + 1;
Expand All @@ -224,7 +224,7 @@ export function init({ nvim, lsp }: { nvim: Nvim; lsp: Lsp }) {

if (lastUserMessageIndex === -1) {
nvim.logger?.error(
"Cannot regenarte message, no previous user message found",
"Cannot regenerate message, no previous user message found",
);
return [model];
}
Expand All @@ -236,14 +236,13 @@ export function init({ nvim, lsp }: { nvim: Nvim; lsp: Lsp }) {

case "edit": {
// TODO: not implemented yet
break;
return [model];
}

default:
assertUnreachable(action);
}

return [model];
break;
}

case "conversation-state": {
Expand Down

0 comments on commit 7750ae9

Please sign in to comment.