You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Don't work in a project" still attaches the chat to the last opened project #190
Launch the app from a neutral folder with no project selected (e.g. C:\Users<user>).
Start a new chat and send "Hello". The transcript lands in ~/.commandcode/projects/c-users-/.jsonl with header "cwd":"C:\Users\" — correct, projectless.
In the project picker (top-left project button), choose "Don't work in a project".
Send the next message in the same chat.
Observe: the chat is now attached to the project that was open before, and its transcript has been rewritten to ~/.commandcode/projects//.jsonl with header "cwd":"C:\". Timestamps ~1 minute apart. No notice shown.
Expected behavior
After choosing "Don't work in a project", the chat should remain projectless (its transcript keyed to the neutral/home session folder) until the user explicitly selects a project. If an existing transcript must be relocated to another project folder, the user should be told.
Actual behavior
The choice is not persisted. "Don't work in a project" only clears the window's selected project (renderer onClearProject -> electronAPI.setCwd("") -> main select(sender, "") -> removeSender). The chat thread itself keeps its projectPath, so the send path computes cwd = thread.projectPath ?? getCwd() and calls setCwd(cwd), re-attaching the session to the previously opened project. The transcript is silently moved between project folders (main has a "[sessions] moved 's history from
" path) with no user-visible notice, so the chat appears in that project's sidebar.
Activity