Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(desktop): show connecting splash while the local backend starts #19706

Mergedronak-guliani(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/19706/headmerged by juliusmarminge View on GitHub

Problem

Native desktop startup creates no window until the primary local backend reports ready. The existing connecting splash only covers WSL-only startup, leaving native and dual-mode launches without visible startup feedback.

Change

Show the existing splash before starting an enabled primary backend. Native and dual-mode launches say “Starting T3 Code…”; WSL-only launches retain “Connecting to WSL…”. Disabled local execution still opens the main window directly. The existing backend-ready and main-window first-reveal handoff closes the splash.

Merged current main into the original branch and rebuilt the focused change using its current lifecycle. Replaced the original isolated label/teardown tests with one parameterized startup regression exercising DesktopApp and DesktopWindow together. Original contribution by @ronak-guliani in #19706; original commits are retained.

Scope and approval

Maintainer takeover for batch ssh-relay-remote-04: claim. This changes the default desktop startup experience; human product approval remains required. The takeover is not approval to merge. No new setting, transport, provider, web, mobile, or shared-contract behavior is introduced.

Verification

  • Base: 1451e7c; rebuilt head: 9e61004.
  • DesktopWindow and DesktopLifecycle suites: 43 baseline tests → 47 tests. With main production and the new regressions, native and dual startup fail because no splash exists when backend start is requested (45 pass / 2 fail). With this fix, all 47 pass.
  • The integrated fixture verifies splash creation before backend start, main creation after backend readiness, splash dismissal only on first main reveal, and disabled execution. WSL-only and disabled modes pass both before and after. This uses mocked Electron/backend service boundaries and does not prove native rendering or real WSL behavior.
  • Desktop typecheck, targeted lint, formatting, and diff checks pass.
  • Before/after test output. No native screenshots or recording: Electron cannot launch in this headless Linux VM because libcups.so.2, libcairo.so.2, libgtk-3.so.0, and libpango-1.0.so.0 are missing. Test-level fallback is recorded explicitly rather than claiming visual verification.
  • Native Linux, macOS, Windows/WSL, iOS, Android, and an actual Electron window were not verified. Windows before/after startup recording and native platform confirmation remain for a human; mobile behavior is outside this desktop-only change.
  • Persistent backend failure retains the existing restart behavior and leaves the splash visible until readiness or quit. This change does not add a failure UI.

Adversarial review round 1: Claude Opus 5.5 and Codex GPT-6-Sol independently reviewed the complete diff and each reran all 47 focused tests. No blocking code defects were found. The known persistent-failure spinner is documented above. Optional test-placement/duplicate-case suggestions were declined: the existing-file regression proves the startup handoff without a new one-off fixture. All currently reported checks on this head passed or skipped. The reported checks are PR size/vouch, CodeRabbit, and the marketing deployment; no current-head full desktop build/test CI result is reported. CodeRabbit’s code-review summary still names the original head; the independent reviews above cover the rebuilt head. This PR remains unmerged and is not declared merge-ready.

Models/harness: tests — GPT-6-Astra; implementation — GPT-6.1-Sol; review — Claude Opus 5.5 and GPT-6-Sol; T3 Code delegation with Codex/Claude harnesses.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This PR broadens the connecting splash from WSL-only launches to the default desktop startup path, changing the normal user-visible startup experience and adding a window during backend initialization. The implementation is contained and tested, but the default behavior change warrants human review.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      Warning

      Review limit reached

      Only developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing.

      Next included review available in 9 minutes.

      Check out review usage here.

      View limit details

      Limit details: You’ve used all 10 included reviews currently available.

      Learn how review limits work.

      Review configuration:

      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 3f852648-21c4-47e3-9965-14ae0810efc3
      📥 Commits

      Reviewing files that changed from the base of the PR and between 771acdaee2ebc5ddf67746424e8f95d3ce6f457d and 29b30aaed6fec2c0255b9190c6ca30f6ab890f21.

      📒 Files selected for processing: 3
      • apps/desktop/src/app/DesktopApp.ts
      • apps/desktop/src/window/DesktopWindow.test.ts
      • apps/desktop/src/window/DesktopWindow.ts

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 3e099e3e-645d-4e10-93f5-85e96da2af4f
      📥 Commits

      Reviewing files that changed from the base of the PR and between ec1313c8f8333292506f05a355bb72d308a455d8 and 771acdaee2ebc5ddf67746424e8f95d3ce6f457d.

      📒 Files selected for processing: 3
      • apps/desktop/src/app/DesktopApp.ts
      • apps/desktop/src/window/DesktopWindow.test.ts
      • apps/desktop/src/window/DesktopWindow.ts

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

      📝 Walkthrough

      The desktop app now shows a connecting splash before primaryBackend.start during local-environment startup, unless the app is already quitting. The splash says “Connecting to WSL…” when both WSL settings are enabled; otherwise, it says “Starting T3 Code…”. Tests cover the labels and splash closure on ready-to-show.

      Changes: Desktop connecting splash

      Layer / File(s)Summary
      Select and render splash label
      apps/desktop/src/window/DesktopWindow.ts, apps/desktop/src/window/DesktopWindow.test.ts
      The splash builder accepts a label selected from desktop settings. Tests cover the WSL and normal startup labels.
      Show splash during startup
      apps/desktop/src/app/DesktopApp.ts, apps/desktop/src/window/DesktopWindow.test.ts
      Local-environment startup now always shows the connecting splash before starting the primary backend. A test checks that the splash closes when the main window emits ready-to-show.

      Priority: ⚪ Not assessed

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Feature

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to 771ac

      No actionable startup-splash issue remains; the change is mergeable after normal checks.

      Pre-merge checks: Passed 3 · Failed 1
      Failed Failed checks: 1 warning
      Check nameStatusExplanationResolution
      Description checkWarningThe description explains the problem, implementation, scope, and focused verification. However, the Scope and approval section links a takeover claim rather than explicit maintainer approval of the di…Add a link to the triaged issue or discussion containing explicit maintainer approval of the change's direction and scope, including the approval comment. Do not mark the description complete until the required approval is recorded.
      Passed Passed checks: 3 passed
      Check nameStatusExplanation
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Title checkPassedThe title clearly states the primary change: showing the desktop connecting splash while the local backend starts.
      Full details: Description check

      Explanation

      The description explains the problem, implementation, scope, and focused verification. However, the Scope and approval section links a takeover claim rather than explicit maintainer approval of the direction and scope, and it states that human product approval is still required.

      Resolution

      Add a link to the triaged issue or discussion containing explicit maintainer approval of the change's direction and scope, including the approval comment. Do not mark the description complete until the required approval is recorded.

      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Comment `@coderabbitai help` to get the list of available commands.
    4. juliusmarminge assignedjuliusmarminge

    5. Taking over this one as maintainer for batch ssh-relay-remote-04. I will merge current main into this branch, keep the startup change focused, and run independent test, implementation, and adversarial review passes. This will remain unmerged.

    6. juliusmarminge merged thisce2707b

    7. juliusmarminge closed this

    8. Reverting this in #22222 together with the other desktop fixes the takeover campaign merged yesterday. Nothing was wrong with the review of this change; it was merged on CI and code audits only, and after #20907 from the same batch broke existing installs the maintainer decided that desktop changes do not ship without being run on a real desktop build. To bring it back: open a fresh PR from the original commit, run it on a real build that already has user state on each platform it touches, and put the before/after proof in the body.

Sign in to join this conversation.