GeezerVison is showing github.com — fix(server): Claude subagents resumed after a missed launch get their child thread by Gigioxx · Pull Request #18362 · pingdotgg/t3code
Conversation
Gigioxx
commented
Oct 11, 2026
•
edited by juliusmarminge
Loading
Uh oh!
There was an error while loading. Please reload this page.
Claude subagents resumed after T3 missed their launch could show “Thread unavailable”: recovery registered the task but skipped creating its child thread. Fixes #18319.
Recovered tasks now offer the missing child with a create-only adapter event. The ingestor creates it once and leaves an existing thread's saved title and model intact. Normal provider metadata updates retain their existing behavior. Current main is merged while preserving @Gigioxx's original commits and fix in #18362.
Head: 8b6cb2688b293d09c7b6b3c91edd0aef583193f2.
Verification:
- Focused Vitest suites: ClaudeAdapterV2.test.ts 297 → 297; ProviderEventIngestor.test.ts 34 → 35. All 332 pass. Both regression tests fail against main and pass after restoring the production changes byte-for-byte.
- SDK-frame recovery verifies exactly one create-only event, correct lineage, and creation before the subagent card update. The persisted ingestor test verifies missing-child creation, concurrent duplicate recovery, and later preservation of a changed title and model.
- Server and provider-core typechecks pass; formatting and diff checks pass. Targeted lint has no errors (one existing unused import warning).
- One independent full-diff adversarial round: Claude Opus 5.5 and Codex GPT-6-Sol both report no findings. Separate GPT-6.1-Sol implementation pass retained the small solution and shortened comments.
Verification is headless Linux at SDK-event and persisted-projection level. No live full-disk or dropped-ingestion run was performed; no screenshots are claimed for this server-only change. macOS, Windows, iOS, Android, and Electron desktop remain unverified. Approval and landing are handled centrally; this PR is unmerged and unwatched.
Original work credited to @Gigioxx. Maintainer integration: GPT-6.1-Sol; tests: GPT-6-Astra; reviews: Claude Opus 5.5 and GPT-6-Sol through T3 Code delegation in the Codex harness.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at f1ae8b4
Macroscope's review found this PR approvable — This focused server fix restores missing Claude subagent child-thread persistence during recovery while preserving existing thread metadata and normal event behavior. The optional event field and targeted regression tests keep the change low risk and localized.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 11, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Warning
Review limit reached
Only developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing.
Next included review available in 2 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used all 10 included reviews currently available.
Learn how review limits work.
Review configuration:
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
91904fed-994a-465b-8a14-1ec584b134f3
📥 Commits
-
Reviewing files that changed from the base of the PR and between c87221f and f1ae8b4.
📒 Files selected for processing: 5
-
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
apps/server/src/orchestration-v2/ProviderEventIngestor.test.ts
apps/server/src/orchestration-v2/ProviderEventIngestor.ts
packages/provider-core/src/server/ProviderAdapter.ts
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
b3e9cfe0-7a00-45e4-83e8-43471d9f4929
📥 Commits
-
Reviewing files that changed from the base of the PR and between c0c495e and c87221f.
📒 Files selected for processing (5)
-
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
apps/server/src/orchestration-v2/ProviderEventIngestor.test.ts
apps/server/src/orchestration-v2/ProviderEventIngestor.ts
packages/provider-core/src/server/ProviderAdapter.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.
📝 Walkthrough
-
When a resumed Claude subagent reopens, ClaudeAdapterV2 emits a child-thread creation event marked createOnly. The event ingestor does not store that event when the child thread already exists, so its metadata remains unchanged.
Changes: Claude subagent child-thread recovery
| Layer / File(s) |
Summary |
Create-only event handling packages/provider-core/src/server/ProviderAdapter.ts, apps/server/src/orchestration-v2/ProviderEventIngestor.ts, apps/server/src/orchestration-v2/ProviderEventIngestor.test.ts |
The app_thread.created event accepts optional createOnly. For an existing thread, the ingestor stores no event when createOnly is true, even if title or model selection differs. A test covers this case. |
Recovered subagent thread creation apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts, apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts |
ClaudeAdapterV2 emits a child-thread creation event for recovered subagents with createOnly: true. Newly discovered subagents continue to omit the flag. The workflow-resume test checks for the flag. |
Priority: ➖ Normal
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested reviewers: juliusmarminge
Merge Risk: ⚪ Minimal · up to c8722
-
Recovery creates the child thread referenced by the subagent card when it is missing, while preserving existing thread metadata. No concrete merge-blocking risk remains.
Security Architecture Review
-
Security architecture risk: 🔵 Low · up to c8722
The change is narrowly scoped and preserves existing threads. Recovery after another interrupted or failed save has not been fully established.
Retained concerns
No architecture-level concerns identified.
Security review details
-
Security Blast Radius
- inferred — The evidenced effect is bounded to creating recovered child-thread records and preserving existing thread metadata in the server persistence path. Deployment-wide or cross-repository exposure was not established.
Trust Boundaries and Controls
- inferred — On the inspected path, createOnly narrows metadata mutation rather than introducing an authorization bypass. Recovery uses existing task-history and registry checks, and the exported contract is consumed through internal event routing rather than a newly introduced external endpoint.
Resilience and Maintainability Implications
- observed — Per-thread ingestion serialization and transactional event/projection writes contain duplicate delivery and partial database writes. These controls do not acknowledge persistence back to the adapter: it records childThread after queue emission, and the existing ingestion-failure handler attempts run finalization rather than explicitly retrying the announcement.
Hardening Proposals
- proposed — If stronger interruption guarantees are required, consider acknowledged persistence or safely re-offering the create-only announcement on later resumes. This would strengthen recovery delivery; it is not a verified PR-introduced security finding.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Linked Issues check |
 |
Issue #18319 requires a child thread for a Claude subagent recovered after T3 missed its launch. ClaudeAdapterV2.ts now emits app_thread.created during the recovered subagent reopen with `createOn… |
| Out of Scope Changes check |
 |
The changes stay within #18319. The adapter change triggers recovery-time thread creation, the ingestor change preserves existing thread metadata, the provider event schema carries the new flag, and t… |
| Title check |
 |
The title clearly identifies the main fix: creating child threads for Claude subagents resumed after a missed launch. |
| Description check |
 |
The description explains the problem, implementation, linked issue, scope, focused verification, test results, and known limitations. It does not explicitly document maintainer approval or explain why… |
Full details: Linked Issues check
-
Explanation
Issue #18319 requires a child thread for a Claude subagent recovered after T3 missed its launch. ClaudeAdapterV2.ts now emits app_thread.created during the recovered subagent reopen with createOnly: true. ProviderEventIngestor.ts drops this event when the child thread already exists and accepts it when the thread is missing. The adapter test checks the create-only event, and the ingestor test checks that existing metadata remains unchanged. These changes implement the issue requirement.
Full details: Out of Scope Changes check
-
Explanation
The changes stay within #18319. The adapter change triggers recovery-time thread creation, the ingestor change preserves existing thread metadata, the provider event schema carries the new flag, and the tests cover both paths. No unrelated feature or issue work is shown in the pull request diff.
Full details: Description check
-
Explanation
The description explains the problem, implementation, linked issue, scope, focused verification, test results, and known limitations. It does not explicitly document maintainer approval or explain why the fix qualifies without prior approval, but the required information is otherwise substantially complete.
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Taking over this one as maintainer for batch claude-02. I will merge current main and verify recovered child-thread creation and metadata preservation before pushing here. Credit to @Gigioxx for identifying and fixing the missed-launch recovery path.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…subagent-child-thread
# Conflicts:
# apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
|
Current head 8b6cb26 passed all server/web test shards and lint. Build and Typecheck failed in apps/web/src/components/chat/ThreadDetailsPrRows.browser.test.tsx:236: missing openInShortcutEnabled. Neither that test nor its panel is changed by this PR. The focused server/provider-core typechecks passed locally. Handing this unrelated CI failure to the coordinator; no watcher or review rerun started.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
# Conflicts:
# apps/server/src/orchestration-v2/ProviderEventIngestor.ts
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Labels
macroscope-review
Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews
size:S
10-29 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
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.
|