Skip to content

feat(daemon): wire generated plans and continue ChangeSet - #36

Merged
cursor[bot] merged 3 commits into
devfrom
cursor/gap-daemon-ce59
Sep 13, 2026
Merged

cursor[bot] merged 3 commits into
devfrom
cursor/gap-daemon-ce59

Conversation

@nicechencs

Copy link
Copy Markdown
Owner

做了什么

已 merge origin/cursor/gap-app-planning-changeset-295bbb9bcbb),并在 Daemon 接线现有 Application use case,没有重写 Application

  • startPlanning:不再用 MOCK_PLAN_DOCUMENT。调用 app.startPlanning(不传 planDigest),把返回的 plan 写入 artifact。
  • confirmPlan:仅在项目已绑定 / 项目 authoring scope 内有已发布可执行图时传 graph;否则省略 graph,由 Application 用生成计划转执行图。
  • continueAuthoringChangeSetPOST /api/v1/authoring-sessions/:sessionId/change-sets/:changeSetId/_cmd/continue。ChangeSet 必须属于该 session(turn 上已有 changeSetId)。If-Match 绑 session revision。
  • workspace:Desktop Main 把 picker grant 写到 {stateDir}/workspace-grants.json;未知 wsauth_* 仍 403。绝对路径不进 Task/Event。

未改 Renderer、protocol DTO、公共 Application 规则。

验证

  • pnpm --filter @workforce/daemon typecheck → 0
  • pnpm --filter @workforce/desktop typecheck → 0

未跑:Daemon Vitest / HTTP integration、全量 pnpm test、headed Electron、live Codex / live Planner。

风险

  • 现有 composition 测试若仍断言 Mock 计划正文,可能会红。
  • 生成计划仍是 Application 模板 DAG,不是 live Planner Run。
Open in Web Open in Cursor 

cursoragent and others added 3 commits September 13, 2026 14:14
…ngeSet apply

start-planning fills the plan from the project objective and acceptance
instead of mockPlanFixture. confirm-plan can use that generated plan when
no published graph is supplied. partially_applied ChangeSets get a
same-session continue apply that reports partial failure honestly.

Co-authored-by: NiceChen <nicechencs@gmail.com>
Call Application startPlanning/confirmPlan without mock plan fallbacks, add continueAuthoringChangeSet HTTP on the same authoring session, and persist Desktop workspace grants for host git paths.

Co-authored-by: NiceChen <nicechencs@gmail.com>
Route turn retry through retryAuthoringTurn instead of unsupported_capability, and expose ChangeSet retry on the same authoring session so failed sets can move to applying before continue.

Co-authored-by: NiceChen <nicechencs@gmail.com>
@cursor
cursor Bot merged commit 407ab96 into dev Sep 13, 2026
1 check failed
@cursor
cursor Bot deleted the cursor/gap-daemon-ce59 branch September 13, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants