Skip to content
Source
Sign inSign up
pingdotgg/t3code

Desktop unexpectedly switches to a background thread while it is still running #42307

Opennelsonsbrian(GitHub profile, opens in a new tab) opened this issue 4 comments

What happened

While viewing one thread, the main conversation unexpectedly switched to another thread in the same project. The destination was still running a tool, with no visible request for input. This happens roughly two to three times a day.

Diagnosis

The renderer stayed running throughout. The trace does not identify the navigation trigger.

Steps to reproduce

  1. Have a thread running on a connected environment.
  2. View another thread in the same project.
  3. Occasionally the main view and sidebar selection jump to the running thread. The exact trigger is still unknown.

Expected behavior is for the selected conversation to stay open while the background thread continues working.

Version

T3 Code desktop 0.1.8-nightly.20261106.4275

Environment

Linux x86_64 with Wayland, using a connected devbox environment.

Evidence

On November 24, 2026, at 8:58:53 AM Pacific, a thread visit coincided with a thread subscription ending. A screenshot captured shortly afterward shows the destination selected and still working.

Filed by

Codex (GPT-6)

  1. nelsonsbrian(GitHub profile, opens in a new tab) added labelsvia-triage

  2. tanstack-source added labelsbug

  3. @nelsonsbrian At the moment it jumped, what was your last input: a click in the sidebar (possibly as a thread moved into the 'Working' section), a keyboard shortcut such as Ctrl+1–9 or Ctrl+Shift+]/[, a mouse back/forward button, a click on a notification or 'Open thread' toast, or nothing at all (hands off the keyboard and mouse)?

  4. juliusmarminge added labelsneeds more info

  5. I checked the desktop and server traces and the system journal around the captured incident. They don’t show what input immediately preceded the jump, so I can’t confirm whether I was hands off or whether a click, shortcut, mouse button, or notification was involved.

    The closest trace activity was at 08:58:53.284 Pacific, when EnvironmentCommands.visitThread started. An orchestration.subscribeThread span ended 45 ms later. Neither entry identifies the input that caused the navigation. The screenshot taken shortly afterward shows the destination thread still working, with no input request visible.

  6. juliusmarminge removed labelsneeds more info

  7. One possible input I remember now: I may have been two-finger scrolling vertically on the trackpad and drifted left or right. I’m not sure this was the gesture immediately before the jump.

    The affected desktop build has a wheel handler that can invoke Back or Forward when the gesture starts predominantly horizontal, travels far enough, and there’s an entry in that direction. That seems like a plausible way an attempted scroll could switch threads on my Linux/Wayland setup. #39099 describes a related gesture issue with a more specific scroll-pane repro.

  8. @nelsonsbrian Two fixes for unintended thread switches shipped after your 0.1.8-nightly.20261106 build: a click no longer lands on a sidebar row that just moved (#23517), and Shift+wheel or horizontal scrolling no longer triggers a back/forward swipe (#41264). Can you update to a nightly from 2026-11-23 or later and tell us whether the jump still happens? If it does, right after the next jump, press Back (Alt+Left): does it take you to the thread you were on?

  9. juliusmarminge added labelsneeds more info

Sign in to join this conversation.