Skip to content

"Don't work in a project" still attaches the chat to the last opened project #190

Backlog

Description

@nbzezo

GUI version

0.1.63

Operating system

Windows

Reproduction steps

  1. Launch the app from a neutral folder with no project selected (e.g. C:\Users<user>).
  2. Start a new chat and send "Hello". The transcript lands in ~/.commandcode/projects/c-users-/.jsonl with header "cwd":"C:\Users\" — correct, projectless.
  3. In the project picker (top-left project button), choose "Don't work in a project".
  4. Send the next message in the same chat.
  5. 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.

Screenshots, recordings, or sanitized logs

Session: 2053bc2f-c9d6-4fd6-b173-f68fd6416e32
Traces: 63d1ebc58e4d683249185de89baa2fe6, 8a9b3de4827193d7e9e8226293b78a5f, e81b8e6dfab5e67bc859c04b933d56ca, 52bcc2bab6f8b4bb8565664134592228, 4c303713a72aa001a388efcefb9905a2

Safety check

  • I removed credentials and private project information from this report.

Activity

  1. added
    bug
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions