Skip to content

[Bug]: With the background service installed, bare t3 exits with "already running" instead of opening the running server #31510

Closed

Description

@iurii-provizio

Before submitting

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

Area

apps/server

Steps to reproduce

  1. Install the background service for the default T3 home (t3 service install, or t3 up) and let it run.
  2. In a terminal, run t3 with no subcommand.

Expected behavior

t3 --help describes the bare command as "Run T3 Code in this terminal and open it in your browser." When this T3 home is already served by the background service that t3 up installed, t3 should give the same result: open that server in the browser, or in the desktop app as t3 app does. If it has to refuse, the error should name the exact command that connects, because the server's URL alone needs pairing first.

Actual behavior

It exits with code 1:

$ t3

ERROR
  A T3 Code server is already running for /home/<user>/.t3 (pid <pid>, http://127.0.0.1:3773). Connect to that server, stop it before starting another, or use a different --base-dir.

The message says "Connect to that server" but not how. Opening the URL needs a pairing token, and t3 pair and t3 app are not mentioned. The first thing a user tries after t3 up therefore fails, even though nothing is wrong with the setup.

Impact

Minor bug or occasional failure

Version or commit

0.1.7 (CLI from the desktop AppImage launcher, background service on 0.1.7)

Environment

Ubuntu 24.04.5, background service as a systemd user unit (t3code.service)

Logs or stack traces

$ t3 status
This machine
  Service        installed · [email protected]

Workaround

Use t3 app to open the desktop app, or t3 pair to get a pairing URL for the running server.

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