Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: macOS desktop is sluggish after relaunch, with ~22 s delays on local requests #48298

Openchomamateusz-agent(GitHub profile, opens in a new tab) opened this issue 0 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. On macOS, quit and reopen T3 Code Desktop with an existing local profile containing more than 10,000 threads.
  2. As soon as the window appears, try switching threads or opening the branch picker while the previous view restores.
  3. Compare local backend readiness with DesktopAppActivation.setRendererReady, and compare client RPC durations with the corresponding server handler timings.

This reproduced across three launches of the affected profile. A small isolated web profile (one project and one thread, same packaged build) did not show a delay of this size. There is no minimal desktop reproduction yet.

Expected behavior

Once the window is visible, navigation and controls should respond while startup data is loading. Ordinary local requests should not take tens of seconds to complete.

Actual behavior

The window is sluggish just after relaunch. The renderer reported ready 21.6 s, 22.7 s, and 23.1 s after the local backend was ready across three launches. In the latest sample the backend was ready at +5.7 s, the renderer signaled readiness at +28.8 s, and some client requests completed around +52 s. The readiness signal is not a measurement of click latency or a claim that the window froze continuously.

Impact

Major degradation or frequent failure

Version or commit

Observed on a downstream desktop build, 0.1.14-local.stack.20261203.1 (upstream base 3067c4984715c28dfcd7eb85b434535ad210d8b5), and in two launches before that build was installed. Not yet reproduced on an unmodified upstream build; first affected revision unknown.

Environment

macOS 26.6.2, Apple Silicon, Desktop with the local backend.

Logs or stack traces

Summarized timings from one launch; no raw logs attached. The client and server entries were matched by method and time window, not by a shared trace ID.

MethodClient elapsedServer handler
vcs.listRefs22.7 s414–418 ms
assets.createUrl22.8 s9–12 ms

The first full thread-list SQL read also took 6.26 s. That may contribute to startup cost (related: #22659), but does not account for the longer client timings on its own. A renderer performance capture correlated with WebSocket frame delivery would help distinguish waiting for a response from delayed processing in the window.

  1. tanstack-source added labelsbug

Sign in to join this conversation.