Add translucent sidebar and Command Code hook support#177
Conversation
SDSLeon
commented
Jun 14, 2026
- Type: Feature
- Add an opt-in translucent sidebar end-to-end, covering shared settings, appearance controls, renderer chrome, and native window startup so the app can open with the right material from the first paint.
- Keep native blur/material behavior and the opaque fallback aligned across the main process, IPC, and renderer, including reduced-transparency handling and platform checks.
- Add Command Code lifecycle hook plugin support with packaging, install flow, env forwarding, and session-status plumbing so hook events can drive sidebar state reliably.
- Refresh Command Code terminal-status heuristics and broaden test coverage around settings, window creation, plugin install, intent mapping, and thread/session transitions.
- Thread `sidebarTranslucency` through shared settings, IPC, and window chrome schemas. - Apply native material in the main process and pre-paint the renderer to avoid opaque flashes. - Update appearance controls, sidebar shell styling, and related tests.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 60599dea22
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| minWidth: 540, | ||
| minHeight: 720, | ||
| backgroundColor, | ||
| backgroundColor: useNativeMaterial ? "#00000000" : backgroundColor, |
There was a problem hiding this comment.
Make native-material windows transparent
When the saved translucent-sidebar setting is enabled, this relies on #00000000 exposing the OS material after the renderer clears the shell/sidebar backgrounds. Electron only honors alpha in backgroundColor for BrowserWindows created with transparent: true, and transparency is a construction-time property, but this window is never created transparent; users who launch with the setting on can therefore get an opaque window fill instead of the native blur.
Useful? React with 👍 / 👎.
- Create glass-capable windows at startup, live-toggle Windows acrylic, and keep native theme in sync. - Gate renderer translucency on content readiness and add glass tint CSS for the sidebar/overlay shells. - Update browser and overlay surfaces to use `--content-background`. - Add `relaunchApp` IPC for macOS glass toggles that require a restart.