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" }, { value: "grok", label: "Grok" },
], ],
DEFAULT: "gpt-5-3-codex", DEFAULT: "gpt-5.3-codex",
}; };
/** /**

View File

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

View File

@@ -164,7 +164,7 @@ export default function SidebarHeader({
) : ( ) : (
<kbd <kbd
aria-hidden 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" 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} {MOD_KEY}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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