From 968ff47ca8d34fcd5a4fa8c30599df57fb0c9380 Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Wed, 2 Sep 2026 01:05:36 +0530 Subject: [PATCH] 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. --- apps/desktop/src/store/projects.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/store/projects.ts b/apps/desktop/src/store/projects.ts index 59d9fcf8d7..22a42cf38f 100644 --- a/apps/desktop/src/store/projects.ts +++ b/apps/desktop/src/store/projects.ts @@ -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