GeezerVison is showing github.com — feat: move a started thread to another project by batchema · Pull Request #12 · batchema/t3code
Conversation
batchema
commented
Nov 14, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
A started thread could not move to another project. This adds Move to project, the first part of #6. Moving to another machine is not included.
What it does
Move an idle thread into another project's root folder on the same machine. You can do it from:
- the thread's context menu (sidebar or chat header)
- Move thread to... in the command palette
- the mobile thread row menu
- the
t3_thread_organize MCP action move
When you move a thread:
- Same thread. It keeps its id and history.
- Sessions. If the folder changes, its provider sessions end. That's the same path upstream's worktree handoff uses. The next turn resumes the provider conversation in the new folder. If the provider can't resume, upstream's resume fallback starts a fresh session seeded with the thread's history.
- Tasks. Scheduled tasks bound to the thread move with it. They follow the project the thread actually ends up in, so two racing moves can't leave tasks behind.
- Old worktree. It is left untouched, along with its branch, and shows as unused in Storage cleanup. Moving back is the same action.
- Confirmation. A dialog says what the move changes, and the MCP result carries the same text in
notice. The worktree lines only show when the thread had a worktree.

Checkpoints
A thread used to have one checkpoint scope, and every run overwrote that scope's folder. That's fine for worktree handoffs, because worktrees of one repo share a .git. After a move to another repo, though, every earlier diff broke ("Failed to load full thread diff").
Now a move records the target project on the thread, and later runs use a root:<projectId> scope. Threads that never move keep the root scope id, so nothing is migrated.
Earlier turns' diffs keep opening while their original folder exists. If that folder is deleted, the diff says so instead of a generic error. A range that crosses the move asks you to pick a single turn. Turn diffs no longer depend on the current project being a Git repository, so moving into a non-Git project keeps earlier diffs. Files from earlier turns can't be restored after any move, because file restore needs the thread's own worktree. The conversation can still be rewound without files.
Per provider
All adapters take the same path, the existing one for a cwd change:
- Claude. Resumes across repos. I checked this with Claude Code 2.1.322 and Haiku: a session started in repo A resumed from repo B and recalled its context.
- Codex. Threads are global, so it resumes.
- Cursor and Pi. Upstream already resumes moved threads from their original store or worktree.
- Others. Any resume failure falls back to a fresh session seeded with the history.
Limits
- The thread must be idle, so an agent can't move its own thread mid-turn. The error says to finish or stop it first. A move is also refused while the thread still runs background agents or commands, as worktree handoffs already are, or while a rollback is still being applied.
- "No project" is not a move target. "Turn into project" covers that case.
- Moves stay within one machine.
Verification
vp run check:changed passes.
- New tests, each failing without the change:
- Orchestration integration: a move detaches the live session, the next turns open sessions in each new root, the native conversation carries over, moving back works, and each project gets its own checkpoint scope. A move is refused while background work runs (this already passed through the shared detach guard) and while a rollback's effect is pending.
- Service: bound tasks move with the thread; No project and busy threads are refused; a retry is idempotent; the notice wording depends on the worktree; tasks end up in the thread's project when another move commits in between.
- Diff query: per-folder diffs work, a range across a move is refused, and a missing folder is named.
- Diff panel (browser): a turn diff renders when the current folder is not a Git repository.
- Real web client with the Replay (dev) provider:
- All three web entry points: sidebar menu, header menu, and command palette.
- Before the fix, an old diff broke after a move followed by a new turn. With the fix it opens, as shown above.
- After deleting the old worktree, the diff shows the missing-folder message.
- Not run:
- The mobile menu typechecks but wasn't run on a device.
- The new eval case
move-thread-to-another-project builds with --dry-run. It wasn't run against a model because no API key is available here.
Part of #6
Built with Claude Opus 5.5 in Claude Code, inside T3 Code.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
A started thread could not change projects. Move to project (thread menu,
command palette, mobile row menu, and t3_thread_organize action `move`)
now moves an idle thread into another project's root folder:
- The thread keeps its id and history. A folder change ends its provider
sessions, so the next turn resumes the conversation in the new folder,
or seeds a fresh session from the thread when the provider can't resume.
- Scheduled tasks bound to the thread move with it.
- A confirm dialog, and the MCP result's `notice`, say what changes.
- A moved thread gets a checkpoint scope per project, so earlier diffs keep
reading the repository they were captured in. Threads that never move
keep today's scope id. A diff whose folder is gone now says so.
Part of #6
- Refuse a move while the thread's rollback effect is still pending or running.
- Scheduled tasks follow the thread's committed project, so racing moves converge.
- Turn diffs no longer depend on the current folder being a Git repository.
- Clearer move notice: files from earlier turns can't be restored after any move.
Thread transfer impact
⚠️ The latest CI run did not produce a thread transfer result for 14fe836.
This comment will update automatically after the next completed run.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Fetching a selected turn's diff regardless of the current folder made
non-git turns, whose checkpoints are missing, show a load failure.
Historical diffs now load when the folder is git or the turn's
checkpoint is ready.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 14, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
|