GeezerVison is showing github.com — feat(web): import recent Codex and Claude threads during onboarding by t3dotgg · Pull Request #8066 · pingdotgg/t3code
Conversation
t3dotgg
commented
Aug 24, 2026
•
edited by macroscopeapp
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Project onboarding discovers existing Codex and Claude projects, but leaves their conversations behind.
Import threads active within the last 30 days with their visible messages and provider resume state. Malformed or oversized sessions are skipped, custom provider accounts stay matched, and imported history does not create Git checkpoints.
Focused scanner, importer, orchestration, projection, relay, onboarding, and server RPC tests passed. Scoped type checks also passed for server, web, desktop, mobile, contracts, and client-runtime. No browser or native-client verification was run.
Made by GPT-5.6 Sol using Codex in T3 Code.
Note Medium Risk
Touches orchestration commands, projections, provider runtime persistence, and onboarding import retries; mistakes could corrupt thread state or clobber live provider bindings, though idempotency and on-conflict-ignore paths are heavily tested.
Overview
Onboarding and a new agentSessionsImport RPC now pull in Codex and Claude conversations from the last 30 days, not just project roots. The server scans JSONL transcripts (size-capped, parsed for visible user/assistant text), then importRecentAgentThreads creates or reuses threads, dispatches thread.history.import, and stores provider resume bindings without overwriting an active session.
Imported history is modeled as thread.message-sent events tagged with historyImport, followed by thread.settled. That path skips Git checkpoints, does not mark threads as queued work in projections, and is excluded from agent-awareness “settled” notifications. isImportedAgentSessionMessageId keeps imported messages across reverts and out of live turn/queue logic on server and client.
The welcome wizard creates projects idempotently (stable command IDs and path resolution) and runs thread import after each project; scan candidates can include projectId for already-imported workspaces so history can still be backfilled.
Reviewed by Cursor Bugbot for commit 52aeac1. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Import recent Codex and Claude threads during onboarding
- Scanner discovers transcripts from Claude and Codex home directories within a 30-day window, parses JSONL into normalized threads, and deduplicates by provider instance and session ID
importRecentAgentThreads creates missing orchestration threads, imports historical messages, and persists provider-session bindings; per-thread failures are logged and skipped
- New
thread.history.import orchestration command emits thread.message-sent events with metadata.historyImport=true then a thread.settled event; only allowed on active, empty threads
- Imported messages are excluded from queued-turn detection, checkpoint creation, agent awareness relay publishing, and turn-count balancing during reverts
- Risk:
partitionOnboardingProjects in projectImport.logic.ts no longer returns alreadyImportedCount and includes already-imported projects in available/recent sets; ProviderSessionDirectory.upsert and ProviderSessionRuntimeRepository.upsert gain an optional options parameter
Macroscope summarized 52aeac1.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
anduimagui, enkhbold470, and ahalekelly reacted with heart emoji
PunGrumpy reacted with eyes emoji
All reactions
-
❤️
3 reactions
-
👀
1 reaction
coderabbitai
Bot
commented
Aug 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: ea1d009b-29f9-4179-964a-5fbd7691ab25
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:
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.
Thread transfer impact
✅ Thread transfer remains within every enforced ceiling.
ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.
| Provider |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
Total thread wire |
— |
13.3 KiB |
— |
15.1 KiB |
✅ |
| Codex |
Thread snapshot wire |
— |
6.9 KiB |
— |
7.3 KiB |
✅ |
| Codex |
Live turn WebSocket wire |
— |
6.4 KiB |
— |
7.8 KiB |
✅ |
| Codex |
Live turn WebSocket decoded |
— |
55.6 KiB |
— |
66.4 KiB |
✅ |
| Codex |
Live turn messages |
— |
11 |
— |
21 |
✅ |
| Claude |
Total thread wire |
— |
13.4 KiB |
— |
15.1 KiB |
✅ |
| Claude |
Thread snapshot wire |
— |
6.9 KiB |
— |
7.3 KiB |
✅ |
| Claude |
Live turn WebSocket wire |
— |
6.5 KiB |
— |
7.8 KiB |
✅ |
| Claude |
Live turn WebSocket decoded |
— |
56.4 KiB |
— |
66.4 KiB |
✅ |
| Claude |
Live turn messages |
— |
11 |
— |
21 |
✅ |
Baseline: unavailable · PR result: 52aeac1 · Source CI: success
Scenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 109.4 KiB
- Claude decoded thread snapshot: 110.1 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One finding: the new agentSessions.import handler treats ProviderSessionDirectory as an optional service and fabricates an AgentSessionScanError when it is absent, even though that service is provided in the same context as ProviderService. See the inline comment.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Not approved
Macroscope's review found this PR not approvable — This PR introduces a substantial onboarding capability that reads and persists recent Claude and Codex conversation history, then reconnects those threads to provider sessions. Its cross-layer orchestration, persistence, resume behavior, and sensitive transcript handling warrant human review.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed the new/changed Effect service code (AgentSessionImporter.ts, AgentSessionScanner.ts, ws.ts wiring, contracts errors). Dependency acquisition now happens through the environment (yield* Foo.Foo) and the RPC handler provides the services at the boundary, which matches the conventions. One error-modeling issue below.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 7d8de88. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Sep 7, 2026
This was referenced Nov 2, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XXL
1,000+ changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
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.
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.
|