Create a default project when the first task has none #29

Merged
weichen merged 2 commits from fix/empty-create-task into main 2026-10-01 05:28:41 +00:00
Owner

空库时主按钮「新建任务」只提示先建项目。现在先创建「默认项目」再打开会话;已有项目时不另建项目。

验证:tsc -b 通过,vitest 40。浏览器空库点一次得到「默认项目」和一条会话,再点一次仍是这一个项目、会话变为 2。

合入后 Dev 仓 fix/empty-create-task 的 gitlink 才能合。

空库时主按钮「新建任务」只提示先建项目。现在先创建「默认项目」再打开会话;已有项目时不另建项目。 验证:tsc -b 通过,vitest 40。浏览器空库点一次得到「默认项目」和一条会话,再点一次仍是这一个项目、会话变为 2。 合入后 Dev 仓 fix/empty-create-task 的 gitlink 才能合。
weichen added 1 commit 2026-10-01 04:51:05 +00:00
Why: On an empty workspace the primary button and the empty state both say to start by creating a task, but the action only toasted that a project was required.
Evidence: A fresh embedded instance returns an empty project list, so the first click never opened a conversation.
Impact: The first task now creates 「默认项目」 and opens it. Existing projects are unchanged.
Refs: walkthrough of the empty workspace on main
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen added 1 commit 2026-10-01 05:28:20 +00:00
weichen merged commit 59065fecb8 into main 2026-10-01 05:28:41 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Frontend#29