| ... | ... | @@ -1,4 +1,10 @@ |
| 1 | | import { ChevronRightIcon, FolderIcon, GitPullRequestIcon, RocketIcon, TerminalIcon } from "lucide-react"; |
| 1 | import { |
| 2 | ChevronRightIcon, |
| 3 | FolderIcon, |
| 4 | GitPullRequestIcon, |
| 5 | RocketIcon, |
| 6 | TerminalIcon, |
| 7 | } from "lucide-react"; |
| 2 | 8 | import { useCallback, useEffect, useMemo, useRef, useState } from "react"; |
| 3 | 9 | import { |
| 4 | 10 | DEFAULT_MODEL, |
| ... | ... | @@ -783,8 +789,7 @@ export default function Sidebar() { |
| 783 | 789 | } |
| 784 | 790 | |
| 785 | 791 | if (!isChatNewShortcut(event, keybindings)) return; |
| 786 | | const projectId = |
| 787 | | activeThread?.projectId ?? activeDraftThread?.projectId ?? projects[0]?.id; |
| 792 | const projectId = activeThread?.projectId ?? activeDraftThread?.projectId ?? projects[0]?.id; |
| 788 | 793 | if (!projectId) return; |
| 789 | 794 | event.preventDefault(); |
| 790 | 795 | void handleNewThread(projectId, { |
| ... | ... | @@ -927,7 +932,7 @@ export default function Sidebar() { |
| 927 | 932 | type="button" |
| 928 | 933 | aria-label={desktopUpdateTooltip} |
| 929 | 934 | disabled={desktopUpdateButtonDisabled} |
| 930 | | className={`inline-flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-60 ${desktopUpdateButtonClasses}`} |
| 935 | className={`inline-flex size-7 ml-auto mt-2 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-60 ${desktopUpdateButtonClasses}`} |
| 931 | 936 | onClick={handleDesktopUpdateButtonClick} |
| 932 | 937 | > |
| 933 | 938 | <RocketIcon className="size-3.5" /> |