Josh Gratton 6bf864d277 fix(web): timeout each WSL register attempt + expose reconciler trace
Two issues from a fresh cold-start launch:

1. The first register attempt hit ERR_CONNECTION_REFUSED (WSL not
   listening yet), surfaced as Failed to fetch, and then no retries
   fired. Most likely a registration step hung past the descriptor
   fetch (IPC bearer read, WS open, etc) so the per-instance pending
   promise never resolved, which kept reconcileOnce awaiting forever
   and left pendingReconcileRun wedged for every subsequent retry
   tick. Wrap each attempt in a 25s hard ceiling via Promise.race so
   a stuck step is force-rejected, the catch wrapper logs it, and the
   scheduleAutoRetry chain keeps progressing.

2. Production renderers don't have CDP, so when the silent failure
   above happened there was no way to inspect what state the reconciler
   was actually in. Expose window.__t3LocalSecondaryDebug with two
   methods:
     - getState() returns the most recent bootstraps list, per-instance
       registration errors, last reconcile timestamp, and attempt count.
     - retryNow() re-fires the reconcile loop on demand.
   Wrapped behind exposeDebugGlobal() so non-browser environments
   (vitest under node) don't poison globalThis.

Also wrapped the IPC call to getLocalEnvironmentBootstraps in a
try/catch with logging, in case the bridge throws during a startup
race.
2026-05-18 09:53:31 -04:00
2026-04-14 18:18:37 -07:00
2026-03-20 02:54:21 +00:00
2026-04-16 17:01:27 -07:00
2026-03-05 22:58:18 -08:00

T3 Code

T3 Code is a minimal web GUI for coding agents (currently Codex, Claude, and OpenCode, more coming soon).

Installation

Warning

T3 Code currently supports Codex, Claude, and OpenCode. Install and authenticate at least one provider before use:

  • Codex: install Codex CLI and run codex login
  • Claude: install Claude Code and run claude auth login
  • OpenCode: install OpenCode and run opencode auth login

Run without installing

npx t3

Desktop app

Install the latest version of the desktop app from GitHub Releases, or from your favorite package registry:

Windows (winget)

winget install T3Tools.T3Code

macOS (Homebrew)

brew install --cask t3-code

Arch Linux (AUR)

yay -S t3code-bin

Some notes

We are very very early in this project. Expect bugs.

We are not accepting contributions yet.

Observability guide: docs/observability.md

If you REALLY want to contribute still.... read this first

Before local development, prepare the environment and install dependencies:

# Optional: only needed if you use mise for dev tool management.
mise install
bun install .

Read CONTRIBUTING.md before opening an issue or PR.

Need support? Join the Discord.

S
Description
T3 Code fork for Android and server fixes
Readme MIT
902 MiB
0 Stars 1 Watchers 0 Forks
2026-09-20 14:36:07 +02:00
Languages
TypeScript 95.5%
MDX 2.1%
JavaScript 0.7%
Astro 0.3%
CSS 0.3%
Other 0.9%