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

@@ -51,7 +51,7 @@ export const CURSOR_MODELS = {
{ value: "grok", label: "Grok" },
],
DEFAULT: "gpt-5-3-codex",
DEFAULT: "gpt-5.3-codex",
};
/**

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}

View File

@@ -1,5 +1,5 @@
import { createContext, useContext, useEffect, useMemo, useRef } from 'react';
import type { ReactNode } from 'react';
import type { MutableRefObject, ReactNode } from 'react';
export type PaletteOps = {
openFile: (path: string) => void;
@@ -7,7 +7,7 @@ export type PaletteOps = {
refreshProjects: () => Promise<void> | void;
};
type Registry = React.MutableRefObject<Partial<PaletteOps>>;
type Registry = MutableRefObject<Partial<PaletteOps>>;
const PaletteOpsContext = createContext<Registry | null>(null);

View File

@@ -47,7 +47,8 @@
"deleteSession": "Diese Sitzung dauerhaft löschen",
"save": "Speichern",
"cancel": "Abbrechen",
"clearSearch": "Suche leeren"
"clearSearch": "Suche leeren",
"openCommandPalette": "Befehlspalette öffnen"
},
"navigation": {
"chat": "Chat",

View File

@@ -47,7 +47,8 @@
"deleteSession": "Delete this session permanently",
"save": "Save",
"cancel": "Cancel",
"clearSearch": "Clear search"
"clearSearch": "Clear search",
"openCommandPalette": "Open command palette"
},
"navigation": {
"chat": "Chat",

View File

@@ -47,7 +47,8 @@
"deleteSession": "Elimina questa sessione permanentemente",
"save": "Salva",
"cancel": "Annulla",
"clearSearch": "Cancella ricerca"
"clearSearch": "Cancella ricerca",
"openCommandPalette": "Apri tavolozza comandi"
},
"navigation": {
"chat": "Chat",

View File

@@ -46,7 +46,8 @@
"editSessionName": "セッション名を手動で編集",
"deleteSession": "このセッションを完全に削除",
"save": "保存",
"cancel": "キャンセル"
"cancel": "キャンセル",
"openCommandPalette": "コマンドパレットを開く"
},
"navigation": {
"chat": "チャット",

View File

@@ -46,7 +46,8 @@
"editSessionName": "세션 이름 직접 편집",
"deleteSession": "이 세션 영구 삭제",
"save": "저장",
"cancel": "취소"
"cancel": "취소",
"openCommandPalette": "명령 팔레트 열기"
},
"navigation": {
"chat": "채팅",

View File

@@ -47,7 +47,8 @@
"deleteSession": "Удалить этот сеанс навсегда",
"save": "Сохранить",
"cancel": "Отмена",
"clearSearch": "Очистить поиск"
"clearSearch": "Очистить поиск",
"openCommandPalette": "Открыть палитру команд"
},
"navigation": {
"chat": "Чат",

View File

@@ -47,7 +47,8 @@
"deleteSession": "Bu oturumu kalıcı olarak sil",
"save": "Kaydet",
"cancel": "İptal",
"clearSearch": "Aramayı temizle"
"clearSearch": "Aramayı temizle",
"openCommandPalette": "Komut paletini aç"
},
"navigation": {
"chat": "Sohbet",

View File

@@ -47,7 +47,8 @@
"deleteSession": "永久删除此会话",
"save": "保存",
"cancel": "取消",
"clearSearch": "清除搜索"
"clearSearch": "清除搜索",
"openCommandPalette": "打开命令面板"
},
"navigation": {
"chat": "聊天",