This was generated by AI during triage.
Before submitting
Area
apps/web
Steps to reproduce
- Open a thread that is attached to a feature branch or worktree.
- Press Command+Shift+N to quickly start another chat for parallel work in the same project.
- Type a prompt and send it without changing the workspace controls.
- Inspect the new thread's branch and working directory.
Expected behavior
Command+Shift+N should create the new chat in the branch and worktree of the thread that was active when the shortcut was pressed.
This was the shortcut's original purpose. PR #56 introduced mod+shift+n as "new chat with same Git state."
Actual behavior
The new chat keeps the project but drops the active branch and worktree. It uses the project's configured new-thread defaults instead, which can place the agent in the main checkout, another branch, or a fresh worktree.
This is extremely frustrating during feature work. The natural flow is to press Command+Shift+N, send a small parallel task, and return to the original chat. The new draft looks close enough to the current context that it is easy to send the message before noticing the workspace changed. It often takes longer than I would like to admit to realize that the agent has been working in the wrong worktree.
The shortcut still maps to chat.newLocal, but its handler now calls the same generic startNewThreadFromContext path as an ordinary new thread. That function intentionally inherits only the project. It does not pass the active branch or worktreePath.
Impact
Major degradation or frequent failure
An agent can inspect or edit the wrong checkout before the user notices. Apart from wasted time, this can put changes on the wrong branch and make parallel work unreliable.
Regression history
Suggested fix
Keep the generic new-thread commands aligned with project defaults, but restore the distinct behavior of chat.newLocal:
- Resolve the active thread or draft's
branch, worktreePath, and environment mode.
- Pass that workspace context explicitly to
handleNewThread.
- Keep Command+Shift+N bound to this command.
- Add a regression test proving the shortcut preserves both a local feature branch and an existing worktree.
Version or commit
Current main as of September 4, 2026.
Environment
macOS, web/desktop client
Workaround
Create the draft, then manually select the previous or existing worktree before sending. A thread's context menu may also offer "New thread on branch." Both are slower and easy to forget when the shortcut suggests that it already preserves the current Git state.
Before submitting
Area
apps/web
Steps to reproduce
Expected behavior
Command+Shift+N should create the new chat in the branch and worktree of the thread that was active when the shortcut was pressed.
This was the shortcut's original purpose. PR #56 introduced
mod+shift+nas "new chat with same Git state."Actual behavior
The new chat keeps the project but drops the active branch and worktree. It uses the project's configured new-thread defaults instead, which can place the agent in the main checkout, another branch, or a fresh worktree.
This is extremely frustrating during feature work. The natural flow is to press Command+Shift+N, send a small parallel task, and return to the original chat. The new draft looks close enough to the current context that it is easy to send the message before noticing the workspace changed. It often takes longer than I would like to admit to realize that the agent has been working in the wrong worktree.
The shortcut still maps to
chat.newLocal, but its handler now calls the same genericstartNewThreadFromContextpath as an ordinary new thread. That function intentionally inherits only the project. It does not pass the active branch orworktreePath.Impact
Major degradation or frequent failure
An agent can inspect or edit the wrong checkout before the user notices. Apart from wasted time, this can put changes on the wrong branch and make parallel work unreliable.
Regression history
chat.newLocalshortcut.Suggested fix
Keep the generic new-thread commands aligned with project defaults, but restore the distinct behavior of
chat.newLocal:branch,worktreePath, and environment mode.handleNewThread.Version or commit
Current
mainas of September 4, 2026.Environment
macOS, web/desktop client
Workaround
Create the draft, then manually select the previous or existing worktree before sending. A thread's context menu may also offer "New thread on branch." Both are slower and easy to forget when the shortcut suggests that it already preserves the current Git state.