You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Skip the loopback bind in t3 auth session issue
#32105
t3 auth session issue binds a loopback port even when it only talks to a server that is already running. A sandbox that denies listen on 127.0.0.1 then fails the command before any token is issued.
On current main:
apps/server/src/cli/auth.ts runs every auth command through resolveCliAuthConfig.
apps/server/src/cli/config.ts calls resolveServerConfig with mode and port unset. Unset mode becomes web. An unset port in web mode calls findAvailablePort.
packages/shared/src/Net.ts implements that probe with server.listen on 127.0.0.1 (canListenOnHost, and reserveLoopbackPort when the preferred port is busy).
The desktop command does not start a listener. It issues, lists, or revokes a session for the existing app. The port probe is unnecessary there.
Observed on macOS with the Codex auto sandbox: the command dies with listen EPERM 127.0.0.1. The installed T3 Code (Beta) app is dated 2026-10-31 and still contains findAvailablePort. No token is issued.
Please skip that bind for t3 auth session issue, t3 auth session list, and t3 auth session revoke when they attach to an already running server. Use the running server's port, or skip port selection when the command does not start a listener.
This is not a request to allow the sandbox to bind. The command should not listen.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
t3 auth session issuebinds a loopback port even when it only talks to a server that is already running. A sandbox that denieslistenon127.0.0.1then fails the command before any token is issued.On current
main:apps/server/src/cli/auth.tsruns every auth command throughresolveCliAuthConfig.apps/server/src/cli/config.tscallsresolveServerConfigwithmodeandportunset. Unset mode becomesweb. An unset port in web mode callsfindAvailablePort.packages/shared/src/Net.tsimplements that probe withserver.listenon127.0.0.1(canListenOnHost, andreserveLoopbackPortwhen the preferred port is busy).The desktop command does not start a listener. It issues, lists, or revokes a session for the existing app. The port probe is unnecessary there.
Observed on macOS with the Codex
autosandbox: the command dies withlisten EPERM 127.0.0.1. The installed T3 Code (Beta) app is dated 2026-10-31 and still containsfindAvailablePort. No token is issued.Please skip that bind for
t3 auth session issue,t3 auth session list, andt3 auth session revokewhen they attach to an already running server. Use the running server's port, or skip port selection when the command does not start a listener.This is not a request to allow the sandbox to bind. The command should not listen.
All reactions