GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): Claude no longer shows "Connecting" on every turn by diegoagdiaz · Pull Request #42508 · pingdotgg/t3code

Conversation

@diegoagdiaz

@diegoagdiaz diegoagdiaz commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Problem

Every Claude turn showed "Connecting to Claude", even when the thread's Claude CLI was already running and connected. The adapter treated each turn's first API request as startup, so on a reused process it labeled the model's time to first token as a connection step. Codex shows no such step on a live session.

Fix

Track the connecting phase per Claude process instead of per turn. Only a new process's first request reports connecting; later turns on the same process go straight to Thinking. A restarted process reports it again. This keeps the signal from #41928 — one awaited request with one meaning — and only narrows when it applies.

A reused process may still reopen an idle connection, but nothing the CLI reports distinguishes that from the model's time to first token, so it shows as Thinking rather than guessing with a timer.

Scope

Follow-up to #41928, which introduced the connecting phase. This is a small fix for an obvious bug, so there is no separate issue.

Evidence

Second message in a thread whose provider process is already running (Claude Haiku 5.5, GPT-6-Luna):

Before (Claude) After (Claude) Codex, for comparison
before-claude-second-message.mp4
after-claude-second-message.mp4
codex-second-message.mp4
Starting Claude → Connecting to Claude → reply Starting Claude → Thinking → reply Starting Codex → Thinking → reply

With the fix, Claude follows the same sequence as Codex on a live session.

The first message of a new thread still shows Starting Claude → Starting Claude MCP servers → Connecting to Claude → Thinking, as before.

The brief "Starting {provider}" on the second message appears on both providers and is a separate issue, not part of this change.

Verification

  • Adapter test covers a process's first request (connecting), a later request in the same turn, a second turn on the same process (no connecting), and a restarted process (connecting again).
  • Tried in the dev app on clean state with Claude Haiku 5.5 and Codex GPT-6-Luna, logging the live row every 50 ms; the labels above come from those logs.
  • vp run check:changed passes.

Implemented with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@diegoagdiaz @claude
fix(server): Claude no longer shows "Connecting" on every turn
17b9fe5
A reused Claude process is already connected, but the adapter reported the
connecting phase on the first API request of every turn. Track it per process
instead, so only a new process's first request shows "Connecting to Claude".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 25, 2026
@diegoagdiaz
diegoagdiaz marked this pull request as ready for review November 25, 2026 00:23
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 2210f2d
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f555423a-b5ff-4e7a-ae29-f61a1e7bf4f1
Commits

Reviewing files that changed from the base of the PR and between 17b9fe5 and aad82b8.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The Claude adapter now reports “connecting” for the first qualifying API request on each query session. Tests check that later turns on the same process do not report it again and that a replacement process starts a new connecting phase.

Changes: Claude startup phase

Layer / File(s) Summary
Track startup per query session
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts, apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
Startup tracking now uses query sessions instead of turns. The test checks the first request, later turns on the same process, and a new process after runtime restart.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: yash-singh1, juliusmarminge

Merge Risk: Minimal · previous review 17b9f

The change makes the Connecting indicator appear only for a new Claude process and not on every turn. It is a small, localized UI-signal change with tests for reuse and restart, and no merge-blocking risk is evident.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: Claude no longer shows the "Connecting" status on every turn. The raw summary and objectives confirm that the connecting phase now tracks per Claude process instead o…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description covers the problem, the fix, scope, and verification, and it follows the template's section structure. It states that the problem is that every Claude turn shows "Connecting to Claude"…
Full details: Title check

Explanation

The title states the main change: Claude no longer shows the "Connecting" status on every turn. The raw summary and objectives confirm that the connecting phase now tracks per Claude process instead of per turn, so the title matches the changeset. It uses the conventional commit format the template suggests.

Full details: Description check

Explanation

The description covers the problem, the fix, scope, and verification, and it follows the template's section structure. It states that the problem is that every Claude turn shows "Connecting to Claude" even when the process is already connected, and that the fix tracks the connecting phase per process instead of per turn. The Scope section links the follow-up to #41928 and says no separate issue is needed for this small fix of an obvious bug. The Verification section lists the adapter test cases, a manual check in the dev app with logged timings, and a passing vp run check:changed run. The template asks for focused tests and observed results, and the author provides both. The template's Change section asks for the reasoning behind the fix, and the author supplies it. The Evidence section includes before and after screenshots, as the template requires for UI changes. Minor gaps remain. The template asks for the model and harness at the end, and the author gives both (Claude Opus 5.5 in Claude Code). The title is not part of the provided description, so its conventional-commit format cannot be checked here.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 369b469
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4ed3cde9-51a9-4b50-b910-c290031639cd
Commits

Reviewing files that changed from the base of the PR and between 369b469 and 17b9fe5.

Files selected for processing: 2

  • apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
  • apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 25, 2026
@juliusmarminge @claude
Merge origin/main into fix/claude-connecting-every-turn
aad82b8
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 25, 2026

Copy link
Copy Markdown
Member

Evidence

Sent three consecutive prompts requesting only one, two, and three in the same Claude Haiku 5.5 thread, waiting for each reply without stopping the provider. Separate fresh databases; same 1280×800 web viewport and light theme; real Claude provider through the configured hub. Recordings are cropped to the conversation and retain original timing.

Before After
2210f2d733 aad82b8580
Before recording After recording
Turns two and three show Connecting to Claude while reusing the process. Turns two and three show Thinking; Connecting appears on the first turn only.

Browser action sequence and status observer · Status and process observations

The browser actions were executed interactively; the uploaded driver documents their sequence. Replay scenarios cannot exercise Claude-specific protocol behavior.

Not shown:

  • A separate provider restart was not exercised; the comparison covers a new process's first turn and subsequent turns reusing that process.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 25, 2026
@juliusmarminge
juliusmarminge merged commit 38adba8 into pingdotgg:main Nov 25, 2026
56 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 25, 2026
@patroza patroza mentioned this pull request Nov 25, 2026
Merge upstream main through feecca53e4dc patroza/t3code#675
Merged
AIdoesmyjob pushed a commit to AIdoesmyjob/t3code that referenced this pull request Nov 25, 2026
@diegoagdiaz @juliusmarminge @AIdoesmyjob
fix(server): Claude no longer shows "Connecting" on every turn (pingd…
8aac08f
…otgg#42508)

Co-authored-by: Julius Marminge <[email protected]>
(cherry picked from commit 38adba8)
@AIdoesmyjob AIdoesmyjob mentioned this pull request Nov 25, 2026
Daily upstream sync 2026-11-25: privacy, data and provider fixes AIdoesmyjob/t3code#64
Closed
@diegoagdiaz
diegoagdiaz deleted the fix/claude-connecting-every-turn branch November 25, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@diegoagdiaz @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.