Skip to content

fix(server): skip Claude fork retries when the transcript is missing - #182

Merged
ScriptedAlchemy merged 2 commits into
mainfrom
t3/fix-claude-native-thread-fork
Nov 24, 2026
Merged

ScriptedAlchemy merged 2 commits into
mainfrom
t3/fix-claude-native-thread-fork

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Problem

When the source Claude transcript is missing on the T3 server running a fork (for example, after moving history to another machine without copying the Claude transcript), Claude reports Session … not found. T3 treats that as retryable, delays the fork, then shows an opaque internal thread ID when falling back.

Change

Recognize the SDK's exact missing-source error in both the default and custom Claude homes. Skip retries, continue with T3's saved thread history in a fresh Claude session, and explain that the provider transcript is not available on this server. Other fork failures still follow the existing retry policy.

Scope

Focused server-side bug fix; no client, provider settings, or wire contract changes. The fix does not copy or synchronize native transcripts.

Verification

  • Ran the real Claude SDK worker with an empty temporary Claude home: exit 1; Session 10000000-0000-4000-8000-000000000000 not found.
  • Regression cases failed before the fix. They now verify that the adapter classifies the missing transcript and that orchestration starts with the source history on the first attempt even with retries available.
  • vp run check:changed origin/main passed, including 632 tests and affected-package typechecks. Tested the server with a separate Claude home, not a live two-machine deployment.

OpenAI GPT-6.1 Sol via Codex in T3 Code.

@changeset-bot

changeset-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a88a6af

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy
ScriptedAlchemy enabled auto-merge (squash) November 24, 2026 14:37
@ScriptedAlchemy
ScriptedAlchemy merged commit 28815fa into main Nov 24, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant