Agent mode: branched chats can't stay active together. Switching branches shuts down the other session and is laggy
- [ ] Disable all other plugins besides Copilot (required)
- [ ] Diagnostics attached (required)
- [x] Screenshot of note + Copilot chat pane + dev console added (optional) — Recents list screenshots below
Copilot version: 4.1.0
Model used: Agent mode, OpenCode backend, anthropic/claude-opus-5-5
Obsidian: 1.15.1 (Linux)
Report ID: n/a
Describe the bug Agent mode normally keeps a chat's session running in the background until I close it. Chats that were branched off a conversation behave differently. Only one branch can stay active at a time. Switching to another branch silently shuts down the session of the branch I left. I never close anything. I only click between chats in the Recents list.
Because each switch kills one session and starts another, switching between branched conversations is very laggy. Each switch waits for a session restart instead of resuming a live one.
Steps to reproduce
- In agent mode, start a chat and send a few messages.
- Branch the conversation once or more, so there are several branched chats.
- Open the Recents list. Note the green "active session" dot next to each chat.
- Click one branched chat, then click a different branched chat.
- Watch the green dots. The branch you left loses its dot (its session shuts down), and the newly opened one starts a session after a noticeable delay.
Observed sequence (from the screenshots)
| Step | Chat opened (highlighted) | Green "active" dot shown on |
|---|---|---|
| 1 | test2 | test2 |
| 2 | test1 | test1, test2 |
| 3 | test3 | test3, test2 (test1's session shut down) |
test2 stays alive throughout. test1 and test3 are never active together. Opening one shuts the other down.
Expected behavior Branched chats should behave like ordinary chats. Each branch should keep its own session alive until I close it, so several branches can be active at once. Switching between them should be instant.
Screenshots
Additional context
- Nothing is closed manually between steps. Only switching chats in Recents.
- This looks like branched chats share one session slot, or the lifecycle code treats the branches as the same session and evicts the old one when another branch opens. That is a guess from the UI only, not verified in code.