Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Android 1.4.0 environment stays disconnected with old server version until Remove and re-enable #16905

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

Before submitting

  • I searched existing open and closed issues, including reports about Android connections, stale environment metadata, removal, and reconnecting.
  • I included the observed behavior, verified server version, and successful workaround. A deterministic clean-install reproduction is not available.

Area

apps/mobile

Summary

The Android app showed a previously working T3 Connect environment as disconnected and displayed server version 0.0.44, although the computer was running stable 0.0.45. New conversations and existing active conversations were inaccessible from Android, but agent activity notifications still arrived and the desktop remained usable.

Selecting Remove for the environment in Android, then enabling it again, restored the connection. The environment did not disappear permanently after Remove; it was available to enable again. This may be normal for a cloud-discovered environment. The problem reported here is the stuck connection that required this recovery sequence, not necessarily the removal behavior itself.

Steps to reproduce

Observed sequence on an existing installation; the initial trigger and a deterministic reproduction have not been established:

  1. Use a previously linked T3 Connect environment on a Linux computer, now running desktop/server stable 0.0.45.
  2. Open the production Android app, version 1.4.0, with the existing environment configuration.
  3. Observe that the environment is listed as disconnected and displays 0.0.44.
  4. Try to access active conversations or start a new conversation. Neither is available, even while notifications continue arriving.
  5. Select Remove for this environment in Android.
  6. Enable the environment again. The connection succeeds.

Expected behavior

Android connects to the reachable, compatible environment and allows existing conversations to be opened and new ones to be started. A stale or failed saved connection should have an effective reconnect/recovery path without requiring Remove.

Actual behavior

Android stayed disconnected with an older displayed server version until the Remove-and-re-enable sequence. The server version displayed after recovery was not recorded.

Impact

Major degradation: remote conversation access was blocked on Android while the desktop remained usable.

Version or commit

  • Android app: 1.4.0, production app; no V2 beta app installed.
  • Desktop/server: stable 0.0.45, Arch package t3code-bin 0.0.45-1.
  • Active server advertised orchestrationProtocolVersion: 1.
  • Android displayed server version 0.0.44 during the failure.

The desktop update-channel setting had been set to nightly, but the installed package and active server were verified to be stable V1. That setting was cleared during troubleshooting. No V2 migration or nightly installation was performed. The timing coincided with the recent V2 rollout, but causation is not established.

Environment

Linux x64 desktop/server; native Android client using T3 Connect. Android OS version and phone model were not collected.

Desktop Connections settings showed Local environment, T3 Connect, and Publish agent activity enabled. Network access was disabled. No error was visible in that desktop settings screenshot.

Logs or stack traces

Read-only check of the running local server's /.well-known/t3/environment returned:

{
  "serverVersion": "0.0.45",
  "orchestrationProtocolVersion": 1
}

No Android exception, connection error text, or pre-recovery client trace was captured. The underlying cause has not been diagnosed; this report does not establish whether the failure originated in mobile saved state, authentication, or the remote connection path.

Workaround

In Android, select Remove for the affected environment, then enable it again. The user confirmed that this restored the connection. No desktop reinstall or data deletion was needed as part of this workaround.

  • #16705 reports an unresponsive Android enable/disable switch with a V2 nightly environment. The same switch behavior was not established here.
  • #12012 reports an iOS direct environment that cannot be removed. Here Remove permitted recovery of an Android T3 Connect connection.
  • #16399 reports host tunnel recovery failure. No tunnel rejection or matching error was captured in this case, so it cannot be identified as the same defect.
  1. Not sure if related but since a few days, on nightly beta version, my android client can no longer connect to my macbook, it keeps saying: Client not supported. The ios client on my iPhone still works.

  2. I'm seeing a similar pattern on a different setup: Android 2.0 with macOS 0.1.0 Stable via T3 Connect. Notifications arrive, but opening them asks me to reconnect and fails. The saved entry shows 0.0.45 / “Client not supported,” although the direct descriptor returns 0.1.0 / protocol 2. My report #20416 was marked as a duplicate of #15051, where I'm following up. I haven't verified the Remove-and-re-enable workaround on my setup.

  3. juliusmarminge added labelsneeds more info

  4. juliusmarminge removed labelsneeds more info

  5. Thanks for following up! After applying the workaround and updating to the latest versions, I haven't encountered this issue again. It appears to be resolved on my end.

  6. Closing this as fixed on main by 02b794c782 (https://git.cafe/pingdotgg/t3code/pulls/15052, "incompatible hosts no longer switch environments off for good"), which first shipped in v0.1.1. @LuisAmaury confirmed above that the problem has not returned since updating.

    Cause. When a host's protocol didn't match the app's, the app saved the environment as switched off. That saved state survived both the host update and an app relaunch. Remove and re-enable worked because it cleared the saved state. The fix keeps an incompatible host blocked only at runtime and leaves the user's on/off choice alone.

    What we ran on main at 0b02b21e5a, with the Android dev client on a Pixel 9 emulator (API 36) and a direct connection to a server that first reported protocol 1 / 0.0.44, then the current protocol / 0.1.3:

    1. Paired the environment while the host was compatible. It connected and listed threads.
    2. Switched the host to the old version and relaunched the app. It showed Client not supported: This client requires a newer server.
    3. Updated the host. Then:
      • Relaunch only: the app reconnected and listed threads. Remove was not needed.
      • No relaunch: tapping the environment's switch in Settings → Environments reconnected it. Its detail page showed Version 0.1.3 and Connected.

    The registry tests that came with https://git.cafe/pingdotgg/t3code/pulls/15052 fail on the commit before it: the rejected environment stays in the persisted switched-off list. They pass on main (41/41).

    T3 Connect (relay) was not exercised end to end here. On main, the relay health check goes through the same registry path. If an environment still gets stuck on v0.1.1 or later, please open a new issue with the app and host versions.

  7. juliusmarminge closed this

Sign in to join this conversation.