GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: Terminal input freezes ~19s when a remote socket stalls; the fast dead-socket check never runs while connected · Issue #44762 · pingdotgg/t3code

[Bug]: Terminal input freezes ~19s when a remote socket stalls; the fast dead-socket check never runs while connected #44762

New issue
Copy link
New issue
Copy link
Done
#44784
Done
[Bug]: Terminal input freezes ~19s when a remote socket stalls; the fast dead-socket check never runs while connected#44762
#44784
Copy link

Description

@josephv123
josephv123
opened on Nov 28, 2026
Issue body actions

Before submitting

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

Area

apps/web

Steps to reproduce

  1. Connect the desktop app to a remote environment over a direct route that is not loopback or LAN (here: Tailscale).
  2. Open a terminal on that environment and type.
  3. Have the socket's network path go dead for a few seconds without a close. Here, lossy Wi-Fi plus a Tailscale path switch did it.

I have not built a deterministic repro. One that should work: on the server, drop outbound packets for that TCP flow for about 8 seconds, then restore them.

Expected behavior

While requests are pending and no frame has arrived for a few seconds, the client runs the existing silent-socket check (the host answers a fresh request while the socket stays silent for REMOTE_SILENT_SOCKET_AFTER, 2.5 s) and replaces the socket. It already does this after a wakeup, a Retry, or a network change.

Actual behavior

Nothing checks the socket until PING_TIMEOUT (15 s) expires, so terminal input freezes for up to 19 seconds. The replacement socket works immediately.

The host was reachable for most of the freeze: the server kept receiving and handling keystrokes for about 5 more seconds, and the host's tailscaled re-established the path 6 seconds in. The old socket stayed stalled, presumably in TCP retransmission backoff.

A second environment dropped the same way 20 seconds earlier. On this link it happened 4 times in 9 minutes.

awaitSilentSocket in packages/client-runtime/src/connection/supervisor.ts is only armed from supervisor signals (wakeup, retry, network change) in monitorConnectedLease, so a socket that stalls while the app is in the foreground waits out the full ping timeout.

Related: #22212, #24309, #3883.

Impact

Major degradation or frequent failure

Version or commit

0.1.14-nightly.20261128.5372 (client and server)

Environment

macOS 27 desktop app; server on Ubuntu 26.04; direct route over Tailscale

Logs or stack traces

# Desktop client trace (renderer spans), local time
01:01:42.2 - 01:01:51.7  88 x EnvironmentRpc.request terminal.write sent
01:01:53.6               EnvironmentRpc.request terminal.open sent
01:02:01                 all of the above complete: terminal.write 9.9-19.5 s each, terminal.open 8.1 s
01:02:01.66              EnvironmentSupervisor.connectionLost
                           connection.failure.reason  = transport
                           connection.failure.detail  = "<host> stopped responding for 15s. It may be overloaded, asleep, or off the network."
                           connection.connected_ms    = 38811
                           environment.target.kind    = BearerConnectionTarget
01:02:05                 next terminal.write: 39 ms

# Host tailscaled journal
01:01:48  magicsock: disco: node [client] now using <client public ip>:41641

Workaround

None found; the freeze ends on its own when the ping timeout replaces the socket.

Reacted by Joseph Vidal

Activity

  1. juliusmarminge
    closed this as completedin #44784on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.