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.
Pull request overview
Restores Linux desktop-shell icon/launcher association for the Electron desktop app by ensuring the running window’s WM class matches the packaged .desktop entry (StartupWMClass).
Changes:
- Append Electron’s Linux
--classcommand-line switch usingenvironment.linuxWmClassduring identity configuration. - Add a regression test asserting the
classswitch is appended with the expected packaged value (t3code).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| apps/desktop/src/app/DesktopAppIdentity.ts | Adds Linux WM class configuration via appendCommandLineSwitch("class", ...) during app identity setup. |
| apps/desktop/src/app/DesktopAppIdentity.test.ts | Extends the ElectronApp test double to record command-line switches and adds a Linux-specific regression test. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ApprovabilityVerdict: Approved da9c86c This PR contains only test file changes - adding test cleanup and a new test case for Linux window class. No runtime code is modified. The unresolved review comment on You can customize Macroscope's approvability policy. Learn more. |
da9c86c to
cbb2392
Compare
|
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. Closing because the Linux window-class fix is already on current main. DesktopPreReadyPlatform applies the class switch from linuxWmClass before startup. This PR now contains only a test for that existing behavior, not a remaining production fix. A new dock association failure would need a current reproduction. If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed. If GitHub does not let you reopen it, leave a comment here and we'll take another look. |
What Changed
classcommand-line switch from the existinglinuxWmClassenvironment value.Why
The generated Linux desktop entry uses
StartupWMClass=t3code, but the migrated desktop runtime no longer applied the matching Electron window class. Linux shells therefore saw the running window asT3 Code (Alpha)and could not associate it with the installed desktop entry and bundled icon.This restores the existing identity configuration so the runtime window and launcher use the same class.
UI Changes
No in-app UI changes. This fixes Linux desktop-shell integration for the existing application icon.
Checklist
Verification
vp test run apps/desktop/src/app/DesktopAppIdentity.test.tsvp run --filter @t3tools/desktop typecheckvp lint apps/desktop/src/app/DesktopAppIdentity.ts apps/desktop/src/app/DesktopAppIdentity.test.ts --report-unused-disable-directivesvp fmt --check apps/desktop/src/app/DesktopAppIdentity.ts apps/desktop/src/app/DesktopAppIdentity.test.tsgit diff --checkGenerated with GPT-5 Codex using the Codex CLI harness.
Note
Restore Linux dock icon association by setting
linuxWmClasstot3codeAdds a test in DesktopPreReadyPlatform.test.ts that verifies the Linux window class (
linuxWmClass) is set to"t3code"and that the["class", "t3code"]command-line switch is appended before Electron is ready. Also adds anafterEachhook to clean up stubbed environment variables between tests.Macroscope summarized cbb2392.
Note
Low Risk
Test-only changes with no runtime behavior in this diff; low risk to production.
Overview
Adds a regression test on
DesktopPreReadyPlatformfor packaged Linux builds: whenVITE_DEV_SERVER_URLis empty and the host is Linux, pre-ready Electron options exposelinuxWmClassast3codeandappendSwitch("class", "t3code")runs before Electron is ready—matchingStartupWMClassin the desktop entry so the dock can associate the running window with the launcher icon.Also adds
afterEach→vi.unstubAllEnvs()so env stubs from that test do not leak into other cases.Reviewed by Cursor Bugbot for commit cbb2392. Bugbot is set up for automated code reviews on this repo. Configure here.