Merge upstream main with upstream repo routing and stability fixes #1028
ClosedJerkyTreats(GitHub profile, opens in a new tab)wants to merge 45 commits into
main fromrefs/pull/1028/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
JerkyTreats(GitHub profile, opens in a new tab) closed this
- @@ -0,0 +49,21 @@49+ name,50+ mode: FS.existsSync(OMARCHY_THEME_LIGHT_MODE_PATH) ? "light" : "dark",51+ colors,52+ };53+}54+55+function serializeTheme(theme: DesktopSystemTheme | null): string {56+ return JSON.stringify(theme);57+}58+59+export function watchDesktopSystemTheme(60+ onChange: (theme: DesktopSystemTheme | null) => void,61+): () => void {62+ if (process.platform !== "linux") {63+ onChange(null);64+ return () => undefined;65+ }66+67+ let closed = false;68+ let lastSerializedTheme = serializeTheme(readDesktopSystemTheme());69+ let reloadTimer: ReturnType<typeof setTimeout> | null = null;@@ -0,0 +281,21 @@281+ const envOutputDirectory = process.env.OMARCHY_SCREENSHOT_DIR?.trim();282+ if (envOutputDirectory) {283+ return Path.resolve(expandUserPath(envOutputDirectory));284+ }285+286+ const envPicturesDirectory = process.env.XDG_PICTURES_DIR?.trim();287+ if (envPicturesDirectory) {288+ return Path.resolve(expandUserPath(envPicturesDirectory));289+ }290+291+ try {292+ const userDirsFilePath = Path.join(OS.homedir(), ".config", "user-dirs.dirs");293+ const userDirsFile = await FS.readFile(userDirsFilePath, "utf8");294+ const picturesDirectoryMatch = userDirsFile.match(295+ /^XDG_PICTURES_DIR=(?:"([^"]+)"|'([^']+)'|([^\n#]+))/m,296+ );297+ const configuredDirectory =298+ picturesDirectoryMatch?.[1] ?? picturesDirectoryMatch?.[2] ?? picturesDirectoryMatch?.[3];299+ if (configuredDirectory) {300+ return Path.resolve(expandUserPath(configuredDirectory.trim()));301+ }@@ -3929,0 +4594,21 @@4594+ <div className="flex flex-wrap items-center gap-2">4595+ <span className="uppercase text-sm tracking-[0.2em]">Plan ready</span>4596+ {planTitle ? (4597+ <span className="min-w-0 flex-1 truncate text-sm font-medium">{planTitle}</span>4598+ ) : null}4599+ </div>4600+ {/* <div className="mt-2 text-xs text-muted-foreground">4601+ Review the plan4602+ </div> */}4603+ </div>4604+ );4605+});4606+4607+const MessageCopyButton = memo(function MessageCopyButton({ text }: { text: string }) {4608+ const [copied, setCopied] = useState(false);4609+4610+ const handleCopy = useCallback(() => {4611+ void navigator.clipboard.writeText(text);4612+ setCopied(true);4613+ setTimeout(() => setCopied(false), 2000);4614+ }, [text]);@@ -3929,0 +4542,21 @@4542+ questionIndex,4543+ onSelectOption,4544+}: {4545+ prompt: PendingUserInput;4546+ isResponding: boolean;4547+ answers: Record<string, PendingUserInputDraftAnswer>;4548+ questionIndex: number;4549+ onSelectOption: (questionId: string, optionLabel: string) => void;4550+}) {4551+ const progress = derivePendingUserInputProgress(prompt.questions, answers, questionIndex);4552+ const activeQuestion = progress.activeQuestion;4553+4554+ if (!activeQuestion) {4555+ return null;4556+ }4557+4558+ return (4559+ <div className="px-4 py-4 sm:px-5">4560+ <div className="flex gap-2">4561+ <span className="uppercase text-sm tracking-[0.2em]">4562+ {questionIndex + 1}/{prompt.questions.length} {activeQuestion.header}@@ -3930,0 +5529,21 @@5529+ >5530+ {renderRowContent(row)}5531+ </div>5532+ );5533+ })}5534+ </div>5535+ )}5536+5537+ {nonVirtualizedRows.map((row) => (5538+ <div key={`non-virtual-row:${row.id}`}>{renderRowContent(row)}</div>5539+ ))}5540+ </div>5541+ );5542+});5543+5544+function isAvailableProviderOption(option: (typeof PROVIDER_OPTIONS)[number]): option is {5545+ value: ProviderKind;5546+ label: string;5547+ available: true;5548+} {5549+ return option.available && option.value !== "claudeCode";
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
cacfc6b8-2257-404a-a477-3a49acf228a7You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Tip
CodeRabbit can use OpenGrep to find security vulnerabilities and bugs across 17+ programming languages.
OpenGrep is compatible with Semgrep configurations. Add an
opengrep.ymlorsemgrep.ymlconfiguration file to your project to enable OpenGrep analysis.