Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
There was a problem hiding this comment.
Reviewed the web-side changes (OmarchyLinkedThemeSync.tsx, useOmarchyLinkedTheme.ts, omarchyLinkedTheme.ts, themePalette.ts, ThemeSettings.tsx, SettingsPanels.tsx, __root.tsx) for consistency with the existing theme-library UI. The store/hook wiring matches the existing useCustomThemes pattern and the new component adds no markup of its own. Two findings on the new theme card call site in ThemeSettings.tsx, where the linked card behaves differently from every sibling card in the same grid.
Posted via Macroscope — UI Consistency
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f0c53d0. Configure here.
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR introduces a new feature for following Omarchy theme changes on Linux desktop, adding new IPC channels, file watchers, React components, state management, and UI integration. New features with this scope warrant human review. You can add or adjust custom eligibility rules. Learn more. |
It's addressed |
|
Note 🤖 GPT-5.6 Sol responding on behalf of Theo We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together. This adds a permanent file watcher and desktop IPC path for one Linux distribution's theme files. The narrow compatibility path does not justify its long-term maintenance cost. If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed. |

What Changed
~/.local/state/omarchy/current/theme/vscode-theme.json.currentdirectory and refreshes the active palette after theme changes, including its remove-then-move swap behavior.Why
Omarchy already generates a VS Code theme for its current desktop theme, so why not just use that since T3Code supports it, yeh? This uses the existing way Omarchy points to a current theme so it makes integration easy. So users can opt into following Omarchy without hooks, configuration, server-side theme machinery, or a generic integration framework...just pick the "Omarchy Linked" theme and they don't have to do anything else.
UI Changes
Demo video: Watch T3 Code follow a live Omarchy theme switch
Verification
Omarchy Linked, switched away toT3 Chat, and restored linked mode.Checklist
Note
Medium Risk
Adds a Linux filesystem watcher and new IPC that ships theme JSON into the renderer, plus localStorage caching used at boot. Bounded by size limits and platform gates, but it sits on the appearance/IPC path.
Overview
Lets Linux desktop users pick Omarchy Linked so T3 Code follows Omarchy's generated VS Code palette at
~/.local/state/omarchy/current/theme/vscode-theme.json, with no extra setup.The main process watches Omarchy's stable
currentdirectory (not the swappedthemedir), retries through the remove-then-move gap, and pushes updates over IPC. The renderer parses that file into a reserved__omarchy-linkedidentity, caches the last valid palette for boot, and keeps the last good colors on malformed updates. The card only appears when a palette is present.Also shares
THEME_FILE_MAX_BYTES(256 KB) for both Omarchy reads and the existing theme-file picker.Reviewed by Cursor Bugbot for commit e6a1e53. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add live Omarchy theme syncing between desktop and web renderer
$HOME/.local/state/omarchy/current/theme/vscode-theme.json, debounces filesystem events, and broadcasts theme snapshots to all Electron windows viaOMARCHY_THEME_CHANGE_CHANNELgetOmarchyThemeandonOmarchyThemeChangethrough the preload bridge with strict payload validation, so the renderer can request and subscribe to Omarchy theme updatessyncOmarchyLinkedThemeto parse VS Code theme JSON into a reservedOmarchy Linkedtheme definition, with a cached palette inlocalStorageso the boot script can paint before React mountsOmarchy Linkedcard in the theme gallery when a linked theme is available, wired into existing persistence and pair-picking flowsPICKED_THEME_FILE_MAX_BYTESinwindow.pickThemeFileswith the sharedTHEME_FILE_MAX_BYTES(256 KB) constant from contractsreadOmarchyThemeFileandwatchOmarchyThemeare platform-gated to Linux and returnnullon other platforms; confirm no runtime path expects non-null outside Linux. TheconfirmMissingThemeFileretry loop tolerates Omarchy's remove-then-move swap gap but could delay a legitimate removal emission by the configured retry duration.Macroscope summarized e6a1e53.