docs(desktop): update resolveNewSessionCwd priority comment for detached-everywhere

The remote remembered cwd is no longer a bare-new-session default after
the #57911 fix; the comment listed it as priority 2. Follow-up from
salvage self-review of PR #57926.
This commit is contained in:
kshitijk4poor
2026-09-02 01:05:36 +05:30
committed by kshitij
parent 3420c9facb
commit 968ff47ca8
+3 -1
View File
@@ -208,7 +208,9 @@ export function goToProject(id: string, options?: { newSession?: boolean }): voi
//
// Priority (first hit wins):
// 1. Explicit sidebar project scope (drilled into a project / Home bucket)
// 2. Configured default project dir / remote remembered cwd (detached otherwise)
// 2. Configured default project dir (detached otherwise — in BOTH local and
// remote mode; a bare new chat never inherits the sticky remembered cwd,
// #57911 / #84220)
//
// The "active project" is just an atom ($projectScope) — so inside a project a
// new session (cmd-n, the trunk "+") starts at that project's root (its primary