Repository navigation
fix(sessions): start New Task outside projects and let chats move freely - #2466
Merged
Merged
Conversation
Every global New Task inherited the project the user happened to be viewing, so a plain conversation could not be started without a project, and an existing conversation could only move between projects by drag and never out of one. Global New Task now starts in the temporary group; project + buttons and the empty-home switcher still target a project. The empty home lists "No project" first and gains a Choose project chip for temporary homes. The topbar project crumb moves an idle conversation into another open project or out of any, backed by session.moveProject accepting an explicit null projectPath. fixes #2455
Deploying pi-desktop with
|
| Latest commit: |
1eecc35
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5bdb4b61.pi-desktop.pages.dev |
| Branch Preview URL: | https://fix-new-task-project-scope.pi-desktop.pages.dev |
This was referenced Nov 20, 2026
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.
Fixes #2455
The maintainer decided to redesign this interaction, superseding the earlier "New Task uses the current project" spec rule.
Behavior
+, project index, worktreeAn active remote session still creates in its remote project. Running, remote, native, and isolated-worktree conversations keep a static crumb. The sidebar session context menu still has no project list.
Contract
session.moveProjectaccepts an explicitprojectPath: null(host-core setsproject_id = NULL). A missing key or blank path is stillINVALID_PARAMS; older hosts rejectnullthe same way. No schema change.Tests
session-project-scope.test.mjs: global New Task is path-less (fails on old code), explicit target still attaches, move out and back keeps the transcript and the workspace follows, running/unopened targets are refused.move_session_project_reassigns_only_the_project_and_rejects_running_turnsextended forNone.apps/desktoptypecheck passes. Desktopnode --testgives 5277 pass and 4 fail. All 4 failures also happen without this change or are flaky (file-manager-git-timeoutpasses on rerun;image-model-disclosure,market-browse, andsettings-inline-importalso fail on a baseline worktree).cargo test -p host-core: everything passes except 2 tests that also fail on main locally (plugins legacy id, review_rpc external write).cargo fmt --checkand clippy (no new warnings) pass.