fix: coderabbit issues

This commit is contained in:
simosmik
2026-04-30 11:27:05 +00:00
parent b81530ce69
commit 38553de4f2
12 changed files with 24 additions and 13 deletions

View File

@@ -42,8 +42,11 @@ export function useSessionMessageSearch(
return;
}
esRef.current?.close();
esRef.current = null;
seqRef.current++;
const handle = setTimeout(() => {
esRef.current?.close();
const seq = ++seqRef.current;
const url = api.searchConversationsUrl(trimmed);
const es = new EventSource(url);

View File

@@ -164,7 +164,7 @@ export default function SidebarHeader({
) : (
<kbd
aria-hidden
title="Open command palette"
title={t('tooltips.openCommandPalette')}
className="pointer-events-none absolute right-2.5 top-1/2 hidden -translate-y-1/2 items-center gap-0.5 rounded border border-border/60 bg-muted/40 px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground md:inline-flex"
>
{MOD_KEY}