Skip to content

The agent that grows with you

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

kshitijk4poor968ff47ca8d3
diff --git a/apps/desktop/src/store/projects.ts b/apps/desktop/src/store/projects.ts
index 59d9fcf8d78..22a42cf38fe 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