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 — feat(web): import recent Codex and Claude threads during onboarding by t3dotgg · Pull Request #8066 · pingdotgg/t3code

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Aug 24, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

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

coderabbitai Bot commented Aug 24, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

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:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XL 500-999 changed lines (additions + deletions). labels Aug 24, 2026
@github-actions

github-actions Bot commented Aug 24, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 24, 2026
View reviewed changes
Comment thread apps/server/src/project/AgentSessionScanner.ts Resolved

Uh oh!

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

Comment thread apps/server/src/orchestration/decider.ts Resolved

Uh oh!

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

Comment thread apps/server/src/ws.ts Resolved

Uh oh!

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

Comment thread apps/web/src/components/onboarding/WelcomeWizard.tsx Resolved

Uh oh!

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

Comment thread apps/server/src/orchestration/decider.ts Resolved

Uh oh!

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

Comment thread apps/server/src/project/AgentSessionScanner.ts Resolved

Uh oh!

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

macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 24, 2026
View reviewed changes

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
Comment thread apps/server/src/ws.ts Resolved

Uh oh!

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

cursor[bot]
cursor Bot reviewed Aug 24, 2026
View reviewed changes
Comment thread apps/server/src/project/AgentSessionImporter.ts Resolved

Uh oh!

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

Comment thread apps/web/src/components/onboarding/WelcomeWizard.tsx Resolved

Uh oh!

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

@macroscopeapp

macroscopeapp Bot commented Aug 24, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

cursor[bot]
cursor Bot reviewed Aug 24, 2026
View reviewed changes
Comment thread apps/server/src/project/AgentSessionImporter.ts Resolved

Uh oh!

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

@t3dotgg
t3dotgg force-pushed the t3code/overhaul-onboarding-flow branch from d6a53bc to d02d817 Compare August 25, 2026 08:55
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 25, 2026
View reviewed changes
Comment thread apps/server/src/project/AgentSessionScanner.ts Resolved

Uh oh!

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

Comment thread apps/server/src/project/AgentSessionScanner.ts Resolved

Uh oh!

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

@t3dotgg
t3dotgg force-pushed the t3code/overhaul-onboarding-flow branch from d02d817 to 8468b95 Compare August 25, 2026 09:56
t3dotgg added 4 commits August 25, 2026 03:51
@t3dotgg
feat(web): import recent Codex and Claude threads during onboarding
86c842d
@t3dotgg
fix(server): reuse checkpoint test runtime to satisfy lint
a819514
@t3dotgg
fix(server): make recent agent thread imports retryable and complete
57e706a
@t3dotgg
fix(server): hide injected Codex context in imported threads
e2725bb
@t3dotgg
t3dotgg force-pushed the t3code/import-recent-agent-thread-history branch from 3d037e6 to e2725bb Compare August 25, 2026 10:56
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 25, 2026
View reviewed changes
Comment thread apps/web/src/components/onboarding/WelcomeWizard.tsx Resolved

Uh oh!

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

Comment thread apps/web/src/components/onboarding/WelcomeWizard.tsx Resolved

Uh oh!

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

Comment thread apps/server/src/project/AgentSessionImporter.ts Resolved

Uh oh!

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

Comment thread apps/server/src/orchestration/decider.ts Resolved

Uh oh!

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

Comment thread packages/contracts/src/agentSessions.ts Resolved

Uh oh!

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

Comment thread apps/server/src/project/AgentSessionScanner.ts Resolved

Uh oh!

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

Comment thread apps/server/src/project/AgentSessionScanner.ts Resolved

Uh oh!

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

Comment thread apps/server/src/orchestration/decider.ts Resolved

Uh oh!

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

@t3dotgg t3dotgg mentioned this pull request Aug 28, 2026
feat(codex): import conversations created outside T3 Code #8054
Closed
6 tasks done
@t3dotgg
fix(onboarding): make recent agent thread imports safe to retry
7d8de88
@github-actions github-actions Bot added size:XXL 1,000+ changed lines (additions + deletions). and removed size:XL 500-999 changed lines (additions + deletions). labels Aug 29, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 29, 2026
View reviewed changes

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
Comment thread apps/server/src/project/AgentSessionImporter.ts Resolved

Uh oh!

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

macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 29, 2026
View reviewed changes
Comment thread packages/contracts/src/agentSessions.ts Resolved

Uh oh!

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

Comment thread apps/server/src/project/AgentSessionImporter.ts Resolved

Uh oh!

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

Comment thread apps/server/src/project/AgentSessionScanner.ts Resolved

Uh oh!

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

cursor[bot]
cursor Bot reviewed Aug 29, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Fix All in Cursor

❌ 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.

All reactions
Comment thread apps/web/src/components/onboarding/WelcomeWizard.tsx Resolved

Uh oh!

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

@t3dotgg
fix(onboarding): harden recent agent thread imports
6ce81b5
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 29, 2026
View reviewed changes
Comment thread apps/server/src/project/AgentSessionImporter.ts Resolved

Uh oh!

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

@t3dotgg
fix(server): prevent agent session import races
52aeac1
@t3dotgg
t3dotgg merged commit 5047c7b into t3code/overhaul-onboarding-flow Aug 31, 2026
26 checks passed

Uh oh!

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

@t3dotgg
t3dotgg deleted the t3code/import-recent-agent-thread-history branch August 31, 2026 10:58
t3dotgg added a commit that referenced this pull request Aug 31, 2026
@t3dotgg
feat(web): import recent Codex and Claude threads during onboarding (#…
9bb215c
…8066)
t3dotgg added a commit that referenced this pull request Sep 1, 2026
@t3dotgg
feat(web): import recent Codex and Claude threads during onboarding (#…
4898958
…8066)
t3dotgg added a commit that referenced this pull request Sep 1, 2026
@t3dotgg
feat(web): import recent Codex and Claude threads during onboarding (#…
3a725c5
…8066)
t3dotgg added a commit that referenced this pull request Sep 1, 2026
@t3dotgg
feat(web): import recent Codex and Claude threads during onboarding (#…
12ca92e
…8066)
@t3dotgg t3dotgg mentioned this pull request Sep 4, 2026
[Bug]: Opened a folder I'd previously used Claude Code inside, tried typing /resume - nothing happens - cannot resume #4519
Closed
2 tasks done
t3dotgg added a commit that referenced this pull request Sep 5, 2026
@t3dotgg
feat(web): import recent Codex and Claude threads during onboarding (#…
7aae2a8
…8066)
t3dotgg added a commit that referenced this pull request Sep 5, 2026
@t3dotgg
feat(web): import recent Codex and Claude threads during onboarding (#…
b3b29ed
…8066)
t3dotgg added a commit that referenced this pull request Sep 5, 2026
@t3dotgg
feat(web): import recent Codex and Claude threads during onboarding (#…
6e51d78
…8066)
This was referenced Sep 7, 2026
Bug: Imported Codex tasks use <recommended_plugins> as their titles #10513
Closed
feat(orchestration-v2): import an existing Claude Code or Codex session by id, with two-way transcript sync #5499
Closed
@JSMike JSMike mentioned this pull request Sep 27, 2026
feat: resume external CLI sessions from new threads #13961
Closed
3 of 4 tasks
This was referenced Nov 2, 2026
feat(threads): hand off Claude CLI conversations to T3 DJProspero1/t3code#1
Draft
feat(threads): hand off Claude CLI conversations to T3 #30341
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments

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.

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.

1 participant

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