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): allow ACP session re-import after thread deletion by StiensWout · Pull Request #44863 · pingdotgg/t3code

Conversation

@StiensWout

@StiensWout StiensWout commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Deleting an imported ACP thread prevented users from importing the same native session again. Re-import now creates a fresh T3 thread while preserving the exact provider-thread ID referenced by the deleted thread’s runs. Concurrent creates for the same native session serialize the provider-record lookup and write so each accepted thread keeps its own record.

Related: #30893, #21984, #21528, #34064, #29835, #39576

Reproduction on main

Commit a505181812 (main), in the running web app:

  1. Start the web app, open a project, and connect an ACP agent that already has at least one of its own sessions and can list them.
  2. Open that agent's settings and open its native session list.
  3. Import one session that is not already a T3 thread.
  4. Leave settings and delete the T3 thread that import just created.
  5. Open that agent's native session list again.
  6. Import the same session.

The session is offered for import again. After the second import, an error says the ACP session could not be imported because a T3 thread could not be created for it, and no new thread appears. Expected: T3 creates a new thread for that native session and the list marks the session imported.

The cause is at apps/server/src/provider/AcpRegistrySessions.ts:162. Ran cd apps/server && pnpm exec vp test run src/orchestration-v2/ThreadLaunchService.test.ts with the repro test added: it failed in 2 of 2 runs on a clean checkout, with expected 'Could not create a T3 thread for the …' to be true in the output.

Evidence

Environment: Linux x64, the repository's own tests.

Proven: the repro fails at the test commit 775c483c8f and passes on the head 065d5e308d, both on main 2547fb284f.

Before After
Commit 775c483c8f 065d5e308d
Result failed with "expected 'Could not create a T3 thread for the …' to be true" passed

Outside view: a person sees it in the running web app by following the steps under Reproduction on main.

Tests

  • 775c483c8f adds the failing test, alone, before the fix.
  • pnpm exec vp run check:changed 2547fb284f2e38b1e450d7cb87caca53b230ba69 passed on head.

Not in this change

  • Deleting the native session from the ACP provider remains a separate action.

Who did the work

  • Repro written by GPT 6.2 Sol, in Codex
  • Outside view by Grok 4.7, in Grok
  • Duplicate check judged by Claude Opus 5.5, in Claude Code
  • Written by GPT 6.2 Sol, in Codex
  • Trimmed by Claude Opus 5.5, in Claude Code
  • Reviewed by Claude Opus 5.5, in Claude Code, and by GPT 6.2 Sol, in Codex, and by Gemini 4 Neon, in Antigravity
  • Reproduction, checks and proof run by a program on base and head, not by an agent

Made in T3 Code by GPT 6.2 Sol, Claude Opus 5.5, Grok 4.7 and Gemini 4 Neon

Sorry, something went wrong.

Uh oh!

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

All reactions
StiensWout and others added 11 commits November 28, 2026 10:52
@StiensWout @codex
test(server): reproduce ACP session re-import after thread deletion
775c483
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(server): allow ACP session re-import after thread deletion
aa95f42
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @claude
refactor(server): keep the original thread-id name and repair path in…
40988db
… ACP import

Restores threadId and the unchanged history-repair block instead of renaming it
existingThreadId and restructuring it; only the project check is new.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@StiensWout @codex
test(server): cover retained provider records on native re-import
1c31d7b
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(server): preserve ACP history and provider records on re-import
5d9a657
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
test(server): keep the provider control projection fixture complete
5461321
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
test(server): reproduce concurrent native imports replacing a provide…
8531628
…r record

Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(server): require a concrete native ID for import locking
9bbe8f9
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
test(server): verify native re-import retains the original provider t…
2bb0770
…hread ID

Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @claude
test(server): drop a defined-check the equality assertion already covers
065d5e3
Co-authored-by: Claude Opus 5.5 <[email protected]>
@StiensWout @claude
ci: rerun
e04284b
CI failed only outside what this change touches: src/components/ComposerPromptEditorTiptap.input.browser.test.tsx.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Native provider-thread imports now check for retained IDs and serialize imports by native identity. ACP session imports resolve existing owners, handle launch races, and use the launched thread ID for history import.

Changes: Native thread re-import

Layer / File(s) Summary
Provider-thread identity and orchestration
apps/server/src/orchestration-v2/Orchestrator.ts, apps/server/src/orchestration-v2/ProjectionStore.ts, packages/provider-core/src/server/IdAllocator.ts, apps/server/src/orchestration-v2/Orchestrator.control-reads.test.ts, apps/server/src/orchestration-v2/ProviderTurnControlService.test.ts
The projection store checks whether a provider-thread ID is retained. The orchestrator serializes native imports and derives a reimport ID when needed. Tests cover imports after deletion and concurrent imports.
ACP session ownership and launch handling
apps/server/src/provider/AcpRegistrySessions.ts, apps/server/src/orchestration-v2/ThreadLaunchService.test.ts
ACP session imports reuse an existing owner, check for a raced owner after launch failure, and use the launched thread ID for history import. The test covers re-import after deleting the imported thread.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant ThreadCreation
  participant Orchestrator
  participant ProjectionStore
  participant IdAllocator
  ThreadCreation->>Orchestrator: Dispatch import with native reference
  Orchestrator->>Orchestrator: Serialize by derived provider-thread ID
  Orchestrator->>ProjectionStore: Check whether provider-thread ID is retained
  ProjectionStore-->>Orchestrator: Return retained status
  Orchestrator->>IdAllocator: Derive reimport ID when retained
  IdAllocator-->>Orchestrator: Return provider-thread ID
  Orchestrator-->>ThreadCreation: Complete thread creation
Loading

Possibly related issues

  • [Bug]: Re-importing a deleted project imports zero sessions (stale import records and soft-deleted threads block import) #34043: The change supports re-importing a deleted ACP session thread. The issue describes a Claude folder import path, so it is only partially addressed.

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to 7481a

This change lets users re-import an ACP native session after deleting its thread, and it serializes concurrent imports. No actionable merge-blocking risk was identified in the reviewed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(server): allow ACP session re-import after thread deletion" matches the main change: after deleting an imported ACP thread, the same native session can be imported again. The changeset …
Description check Passed The description follows the repository template. It has a Problem section (deleting an imported ACP thread blocks re-import of the same native session, with expected behavior described), a Change sect…
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.
Full details: Title check

Explanation

The title "fix(server): allow ACP session re-import after thread deletion" matches the main change: after deleting an imported ACP thread, the same native session can be imported again. The changeset adds a re-import path that derives a new provider-thread ID, a hasProviderThread lookup, and serialized imports, all of which serve this goal. The title is a conventional commit and states the primary fix without file lists or vague terms.

Full details: Description check

Explanation

The description follows the repository template. It has a Problem section (deleting an imported ACP thread blocks re-import of the same native session, with expected behavior described), a Change section (re-import creates a fresh T3 thread that keeps the exact provider-thread ID, and concurrent creates serialize the lookup and write), a Scope note (it is a bug fix, and it links related issues), and a Verification section with a reproduction on main, a before/after table for the failing and passing test, and the commands run. The template asks for a note on what was not checked. The Not in this change section covers the scope boundary, but the description does not state explicitly what was left unchecked. The description also includes an extra Who did the work section, which the template does not request. These gaps are minor, so the description is mostly complete.

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: 981aeb5
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5caaed5e-78ca-457a-80f6-b678665eac16
Commits

Reviewing files that changed from the base of the PR and between e04284b and 7481ac5.

Files selected for processing: 1

  • apps/server/src/orchestration-v2/ThreadLaunchService.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 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 28, 2026
juliusmarminge and others added 3 commits November 28, 2026 10:09
@juliusmarminge @claude
Merge origin/main into wf/find-6bd72a227ac60e3e4ea0a6c1
8d02708
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge @claude
test(server): use the file's assert style in the ACP re-import test
30c355c
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge @claude
Merge the author's CI rerun commit
7481ac5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

Evidence

Import a real OpenCode native session, delete its T3 thread through the sidebar, then import the same session again. Both sides used Chromium at 1280×800, light theme, fresh databases, and OpenCode v2.4.2.

Before After
981aeb510a 7481ac52cb
Re-import fails with the reported error; row remains Import. Re-import succeeds; row becomes Imported.
Before: ACP session re-import error After: ACP session imported successfully
Before recording After recording

Scenario source. scenarios:prove exited 0: fails on base, passes on head.

Not shown:

  • Preservation of provider records referenced by deleted runs was not demonstrated: the native session had no model turns, and this UI flow does not expose those records.
  • Sending a subsequent model turn from the re-imported thread was not exercised.
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 28, 2026
@juliusmarminge
juliusmarminge merged commit 96d1bf0 into pingdotgg:main Nov 28, 2026
60 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 28, 2026
@omegent-app omegent-app Bot mentioned this pull request Nov 28, 2026
Merge upstream main through 0f78747290a1 patroza/t3code#688
Merged
sandscooling pushed a commit to sandscooling/t3code that referenced this pull request Nov 28, 2026
@kevlingo @claude
Merge remote-tracking branch 'origin/main' into kevlingo/features
190ffd3
Sync 1128a: 113 upstream commits to 96d1bf0, resolved by t3-sync-1128a-dev.

Conflicts, both additive:
- Orchestrator.ts dispatchWithReceipt: fork settle-cascade reindent kept,
  pingdotgg#44863's nativeImportLocks block inserted in place.
- SidebarThreadRow.tsx status ladder: pingdotgg#25471 wraps runStatus in a
  Connecting/Reconnecting/Offline topStatus; fork crew Idle and unread Done
  rungs kept at the end of runStatus.

Beyond the conflicts:
- client-runtime models.ts: pingdotgg#25471's resolveThreadConnectionStatus uses the
  fork's backgroundWorkHoldsThread, as shellRuntime already does, so crew
  sessions get the connection status too.
- Sidebar.logic.ts: pass pendingBackgroundTasks for pingdotgg#25471's widened input.
- McpHttpServer.registration.fork.test.ts: mock HostResources (pingdotgg#44713).

No fork feature dropped. Lockfile changed (Cursor SDK 1.5.2). No new migration.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
imetn added a commit to imetn/t4code that referenced this pull request Nov 28, 2026
@imetn
chore(upstream): port 42 high-value post-v0.1.13 PRs (mobile, web, se…
6008d4d
…rver)

Mobile (7 PRs):
- pingdotgg#44387 ProMotion 120Hz scroll stutter fix ([email protected] patch)
- pingdotgg#44161 iOS release status bar icons follow app theme
- pingdotgg#44939 Scroll to end no longer loses next tap
- pingdotgg#44937 image previews opened from composer chip stay closed
- pingdotgg#44660 center working glyph in Dynamic Island
- pingdotgg#44315 tapping image in html_render opens image viewer
- pingdotgg#30661 share a turn's final response from system share sheet (approved orthogonal graft in ThreadFeed.tsx)

Web & Desktop (17 PRs):
- pingdotgg#43101, pingdotgg#30027, pingdotgg#44935, pingdotgg#44900 Markdown code block & file tree preview, large preview Select-All Range copy, rendered table copy
- pingdotgg#44055, pingdotgg#44952, pingdotgg#44992 copy chat table as aligned text for chat apps (CJK & symbol width alignment)
- pingdotgg#33801 Mod+Alt+E maximizes right panel even when closed (T4 Tooltip preserved)
- pingdotgg#39122 snooze a thread indefinitely
- pingdotgg#44023 inline CLI update button in provider status section
- pingdotgg#33827 save files from preview panel to machine
- pingdotgg#44930, pingdotgg#44945, pingdotgg#44916, pingdotgg#44831, pingdotgg#44975, pingdotgg#45021 folder-add/draft/queue/HTML-reload/clear UX fixes

Server & Providers (18 PRs):
- pingdotgg#41726 Usage limits refresh skips full provider health checks (preserving T4 human-only manual Antigravity CLI probe and avoiding ACP health checks on limitsOnly)
- pingdotgg#32114, pingdotgg#43651 checkpoint capture baseline read & parallel source control discovery
- pingdotgg#44979 hung gh auth token no longer stalls MCP connect
- pingdotgg#44860, pingdotgg#44872 Claude main checkout settings/plugins & scratch folder cleanup
- pingdotgg#44902 send image attachments with actual byte magic MIME type (approved orthogonal graft in adapter.ts)
- pingdotgg#44994, pingdotgg#44399, pingdotgg#44406, pingdotgg#44418, pingdotgg#44448, pingdotgg#45014, pingdotgg#44827, pingdotgg#44913, pingdotgg#40454, pingdotgg#44863, pingdotgg#44926 terminal/git/Codex/ACP/CLI/desktop stability fixes

Verified:
- check:t4-locks main..HEAD: only the 2 user-approved orthogonal grafts (ThreadFeed.tsx, adapter.ts)
- Zero telemetry: 0 bytes changed in telemetry modules
- i18n:check pass across all 10 locales (0 untranslated zh.json keys)
- vp fmt --check pass across all 166 changed files
- Typecheck 0 new errors across all 13 touched packages
- Targeted unit tests + all 8 Web Chromium browser test suites (196/196) + independent GPT pre-merge review & fixes verified
@mg-dev25 mg-dev25 mentioned this pull request Nov 28, 2026
fix(patches): rebase 1448-form-free-text-mic and 1456-notice-hold on nightly 5399 Mgdev-25/t3code-patches#65
Merged
@v-k-data v-k-data mentioned this pull request Nov 28, 2026
[Bug]: A deleted imported Claude Code thread can't be re-imported into the same project #45055
Open
2 tasks done
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:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or 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

@StiensWout @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.