Desktop app 1.1.15: cannot create a second Local (branch) session while one is running — "This project already has an active Local workspace"
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi thông qua create_branch_workspace với một phiên Local đang chạy, sau đó kiểm tra các log của 1.1.15 và các chuỗi proactive branch warmup đã được báo cáo. Được xem là hoàn tất khi có thể tạo lại đồng thời nhiều phiên Local, hoặc khi mọi giới hạn có chủ đích đều được ghi lại bằng thông báo lỗi có thể thực hiện được.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
After the desktop app auto-updated to 1.1.15, creating a new Local (branch-type) session in a project fails whenever another Local session in that same project has a live CLI process:
Session creation failed: Failed to create session: invalid argument: This project already has an active Local workspace.
This is a behavior change. Before 1.1.15 I routinely ran several Local sessions side by side in the same project, and had done so for ~3 months.
The blocking condition appears to be a running session, not the number of workspaces: at the moment of failure the project had 74 non-archived workspace_type='branch' workspaces, and exactly one session row with is_running = 1 — the session I was actively chatting in. So the app effectively enforces "one live Local session per project", and the currently-focused session is the thing that blocks creating the next one.
Affected version
Desktop app 1.1.15 (macOS). Bundled CLI: 1.0.83-5.
Steps to reproduce the behavior
- Open a project backed by a local checkout using Local / branch workspaces (not worktrees).
- Start a session in it and keep it active (live CLI process).
- Try to create another session in the same project.
- Creation fails with
invalid argument: This project already has an active Local workspace.
Expected behavior
Multiple Local sessions in the same project should be creatable concurrently, as they were in 1.1.13 / 1.1.14. If concurrent Local sessions must now be limited, the restriction should be documented and the error should say what to do about it (e.g. "stop session X first") rather than surfacing a raw invalid argument.
Additional context
Evidence that this is new in 1.1.15
| Check | Result |
|---|---|
Non-archived workspace_type='branch' workspaces in the affected project |
74, oldest 2026-06-16 → no historical single-workspace limit |
Occurrences of active Local workspace across 71 log files (back to Aug 22) |
0 before today; 7 failures today within ~11 minutes |
| First occurrence | 2026-09-06T20:35:22Z, on create_branch_workspace |
data.db.pre-update-backup-1.1.15-… timestamp |
2026-09-06 16:46 local — update to 1.1.15 preceded the first failure by ~6h |
sessions rows with is_running = 1 at failure time |
exactly 1 (the focused session) |
Possibly related new strings in the 1.1.15 binary, which suggest this comes from a new proactive branch-warmup mechanism:
This project already has an active Local workspace.Local workspace creation is still waiting for proactive warmup cleanup.Proactive branch warmup stopped because the shared checkout changed before the session started.internal error: entered unreachable code: branch workspace wait loop always returns
Why worktrees aren't a workaround here
The project in question is a personal Obsidian vault. The notes must live at one fixed path so the Obsidian app and the sessions see the same files, so Local/in-place is the only viable workspace type — a worktree would create a detached copy and break the vault. That makes "use worktrees instead" not an option, and "stop the session you're currently talking in before you can start another" a significant workflow regression for anyone using several topic-scoped sessions against one local checkout.
Environment
- macOS, Apple Silicon
- Desktop app 1.1.15, CLI 1.0.83-5
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/copilot-cli
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
github/copilot-cli#4932 ·
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github/copilot-cli#4909 ·
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
github/copilot-cli#4906 ·
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot-cli#4848 ·
-
area:agents area:mcp
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot-cli#4729 ·
Tất cả issue của github/copilot-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
elastic/gradle-plugins#156 ·
-
Priority/High ready-for-agent Severity/Major Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
comp/cli P3 type/docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
NousResearch/hermes-agent#119756 · 1 bình luận ·
-
comp: build/pipeline type: bug version: current (v17+)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
angular/angularfire#3766 ·
-
out-of-date
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
CachyOS/CachyOS-PKGBUILDS#1903 ·