Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(client): show reconnecting instead of stale working status #25471

Mergedsaphid(GitHub profile, opens in a new tab)merged 14 commits intomain fromrefs/pull/25471/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Problem

When an environment stops answering, cached active threads still say Working with an elapsed timer even though the connection banner says reconnecting. This makes an unreachable agent look active. Fixes #25449.

Change

Pass the existing environment connection phase through shared thread-shell presentation, including quiet cached reads. Web/desktop and React Native thread lists show Connecting, Reconnecting, or Offline for cached active work and suppress its work timer until connected again. Known terminal outcomes and pending requests retain their existing priority. Connection loss does not change the authoritative runtime or move threads between sections; pinned rows intentionally stay above Working.

Scope and approval

This is a focused correction of an obvious status inconsistency, submitted under the small bug-fix exception in CONTRIBUTING.md. The shared presentation change and both client consumers address the same defect. No setting, wire contract, provider behavior, or persisted state changes.

Verification

  • Before the fix, both client resolver regressions failed: expected Reconnecting, received Working. The shared-atom regression also failed because cached shells lacked connection phase.
  • vp test run packages/client-runtime/src/state/threadShell.test.ts packages/client-runtime/src/state/threadInbox.test.ts packages/client-runtime/src/state/presentation.test.ts apps/web/src/components/Sidebar.logic.test.ts apps/mobile/src/features/threads/threadListV2.test.ts: 192 passed, rerun by the parent.
  • CI=true vp run check:changed: passed format, lint, knip, affected-package typechecks and 323 tests across 8 files on the rebased head. The first post-rebase test run could not launch the pinned Chromium runtime; installing that test prerequisite resolved it.
  • Parent code audit: no actionable findings. A separate Claude Opus 5.5 review was attempted but could not start because organization subscription access is disabled; no independent review is claimed.

Before / after — actual Electron captures. Same disposable projected running threads, selection, viewport and Working setting. The remote fixture server is paused for both captures. Before: pinned and unpinned rows show Working 12m. After: both show Reconnecting without sidebar timers; pin precedence, Working membership and the historical Failed row remain intact. This GIF alternates still captures, not a motion comparison.

Before and after: disconnected Electron sidebar

Sidebar enlargement for narrow screens:

Before and after: complete sidebar enlargement

Recovery without reload. Resuming the same remote server restores Working and its timer and removes the reconnecting banner. The candidate recording below is normal speed, sampled at 8 fps; it is not a latency benchmark or a baseline/candidate motion comparison.

Candidate recovery after resuming the fixture server

Candidate recovery: complete sidebar enlargement

Playable recovery video · Before screenshot · After screenshot

Proof uses real Electron rendering/transport with synthetic projected runs and startup reconciliation disabled on the disposable fixture server; no provider executed. Base: 3ca62a5644572aab1cf7a058944aa44df516734c; captured candidate: a648ced13d1 (patch SHA-256 07c97a869024f8b145bdcfa783b372bf39bb3642fe985029cd530c3062fd40dc). Current head 8d182c03ef5 is rebased onto 071239804e3; git range-diff reports the fix unchanged. The existing captures demonstrate the unchanged connection-status derivation, status rendering and timer guard; they were not recaptured after the rebase. New base changes to mobile row layout have logic/typecheck coverage here, not new mobile visual proof. Both captured desktop builds used an isolated profile and --disable-gpu. Only the current desktop sidebar's reconnecting path and recovery were visually exercised; mobile, legacy sidebar, and other connection phases have focused logic coverage only. The central timeline's cached Working timer and lineage counts remain outside this sidebar fix.

Implemented with GPT-6.1 Sol in the Codex harness through T3 Code. Desktop proof by GPT-6 Astra in the same harness.

Current-head merge verification

verified current head 66eb5acb0d92d02b7bcd35e2ac77b88c6e2efdd4 after merging main. the merge keeps main's removal of the unused sidebar priority table and passes connection phase through the new side-chat shell call. intent and 14-file scope are preserved.

blacksmith vp run check:changed github/main passed format, lint, both knip checks, seven package typechecks, 361 tests across nine files, and 11 compiler checks. two independent read-only reviewers approved this exact head without findings. github reports clean mergeability; 23 checks passed and 11 skipped, with none pending or failing. no unresolved review threads remain.

chrome exercised the replay provider through the actual adapter, orchestration, and client: working -> reconnecting without a sidebar timer -> recovered approval -> working -> done, without reload. the existing approval row retained its alert while disconnected. this 14-second normal-speed gif recording has startup frames trimmed; uploaded playback and seeking were checked.

current head: replay turn reconnects, recovers approval, resumes and completes

unverified this pass: native mobile rendering, electron, relay/tunnel, and paid providers. their earlier evidence remains below.

verified by gpt-6.1-sol through the codex harness.

Sign in to join this conversation.