Conversation
mavasbel
force-pushed
the
cross-project-move
branch
from
September 17, 2026 17:00
4e006c5 to
c416568
Compare
mavasbel
force-pushed
the
cross-project-move
branch
from
September 18, 2026 04:20
c416568 to
820ad1e
Compare
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.
Issue for this PR
Closes #49212
Closes #43938
Closes #35306
Type of change
What does this PR do?
The
/movesession command currently only surfaces worktrees of the current project and rejects destinations outside the project's worktree (DestinationProjectMismatchError). Searching for nested projects returns "No results found", the footer directory indicator stays stale after moving, and the palette description duplicates the command title.This PR:
moveSessionto allow moving sessions to arbitrary directories and across distinct projects.fs.ensureDir.ProjectTableupon move (including"global"for plain non-git directories).fs.realpathSync.nativeand expands~.useDirectory()to read the active session's directory, fixing the stale footer indicator (closing tui: directory indicator stays stale after /move in a new session #43938).How did you verify your code works?
packages/schema/test/session-event.test.ts.packages/core/test/move-session.test.ts:moves session across distinct project repositories without transferring git changes.All 4 move-session tests pass (
bun test test/move-session.test.ts).packages/tui/test/component/dialog-move-session.test.tsandpackages/tui/test/context/directory.test.ts.bun turbo typecheckpasses cleanly across all 30 workspace packages.Checklist