Repository navigation
feat(threads): move a thread to another project - #41
Merged
Merged
Conversation
A thread could never leave the project it was created in. `thread.metadata.update` takes an optional `projectId`. The orchestrator rejects a move to the same project, to a missing, deleted or archived project, and while a turn is preparing, starting, running or waiting, or a question is pending. The event stays `thread.metadata-updated` with the full thread, so stored events decode as before and the projection already writes `project_id`: no migration. A thread without its own worktree now runs in the new project's root, so the move detaches its provider sessions like any workspace change. A thread with its own worktree keeps `worktreePath` and `branch`. Scheduled tasks bound to the thread follow it through a small event follower, whichever client moved it; it writes only when a thread's project changes. Client thread lists are derived from the thread shell, so the sidebar groups follow the new `projectId`. Surfaces: a "Move to project…" submenu in the sidebar thread menu, listing the other live projects on the same server, and `t3_thread_update` with `action: "move"`, `projectId` and an optional new `title`. The MCP action refuses the No project folder as a target. Servers advertise `threadProjectMove`, so clients hide the menu on servers that would ignore the field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ext says what stays Review nits on the move feature: the submenu label used the global message resolver instead of the one the menu builder passes, and the t3_thread_update description said the workspace cannot change while a move can change a thread's root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A thread could never leave the project it was created in. About 20 autofixedcloud threads on serveri sit in "upcloud siirto" and must move to "autofixed-cloud".
How it works
thread.metadata.updatetakes an optionalprojectId. The event staysthread.metadata-updatedwith the full thread, so stored events decode as before and the projection already writesproject_id. No migration.worktreePathandbranch.ThreadMoveTaskFollower). It writes only when a thread's project changes.projectIdfrom the thread shell, so they follow the move. Settled and snoozed state is per thread and does not change.Surfaces
threadProjectMove, so the menu stays hidden on servers that would ignore the field.t3_thread_updatewithaction: "move",projectIdand an optional newtitle. It refuses the No project folder as a target.Checks
Model: Claude Opus 5.5 in Claude Code, through T3 Code.
🤖 Generated with Claude Code