improv: do not unnecessarily retry

This commit is contained in:
tomasz-io 2024-12-12 10:14:47 -08:00
parent 1566adcaeb
commit 76bf558ed7

View file

@ -472,10 +472,12 @@ const getCommandsMap: (
const historyLength = await sidebar.webviewProtocol.request(
"getWebviewHistoryLength",
undefined,
false,
);
const isContinueInputFocused = await sidebar.webviewProtocol.request(
"isContinueInputFocused",
undefined,
false,
);
if (isContinueInputFocused) {
@ -485,6 +487,7 @@ const getCommandsMap: (
void sidebar.webviewProtocol?.request(
"focusContinueInputWithNewSession",
undefined,
false,
);
}
} else {
@ -492,6 +495,7 @@ const getCommandsMap: (
sidebar.webviewProtocol?.request(
"focusContinueInputWithNewSession",
undefined,
false,
);
void addHighlightedCodeToContext(sidebar.webviewProtocol);
}