Skip to content

Commit 1fb927c

Browse files
authored
fix: fix quick ai not continuing conversation (#979)
* fix: fix quick ai not continuing conversation * docs: update changelog
1 parent 8974624 commit 1fb927c

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

docs/content.en/docs/release-notes/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ fix(view extension): broken search bar UI when opening extensions via hotkey #93
3838
fix: allow deletion after selecting all text #943
3939
fix: prevent shaking when switching between chat and search pages #955
4040
fix: prevent duplicate login success messages #977
41+
fix: fix quick ai not continuing conversation #979
4142

4243
### ✈️ Improvements
4344

src/components/Search/AssistantManager.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function useAssistantManager({
8080
}, [askAI?.id, askAI?.querySource?.id, disabledExtensions]);
8181

8282
const handleAskAi = useCallback(() => {
83-
if (!isTauri || canNavigateBack()) return;
83+
if (!isTauri) return;
8484

8585
if (disabledExtensions.includes("QuickAIAccess")) return;
8686

@@ -188,7 +188,10 @@ export function useAssistantManager({
188188

189189
if (onOpened?.Extension?.ty?.View) {
190190
clearSearchValue();
191-
return platformAdapter.invokeBackend("open", { onOpened: onOpened, extraArgs: null });
191+
return platformAdapter.invokeBackend("open", {
192+
onOpened: onOpened,
193+
extraArgs: null,
194+
});
192195
}
193196
}
194197

@@ -201,7 +204,10 @@ export function useAssistantManager({
201204
});
202205

203206
useKeyPress(`${modifierKey}.enter`, () => {
207+
if (canNavigateBack()) return;
208+
204209
assistant_get();
210+
205211
return handleAskAi();
206212
});
207213

0 commit comments

Comments
 (0)