feat(daemon): wire generated plans and continue ChangeSet - #36
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
做了什么
已 merge
origin/cursor/gap-app-planning-changeset-295b(bb9bcbb),并在 Daemon 接线现有 Application use case,没有重写 Application。MOCK_PLAN_DOCUMENT。调用app.startPlanning(不传planDigest),把返回的plan写入 artifact。graph;否则省略graph,由 Application 用生成计划转执行图。POST /api/v1/authoring-sessions/:sessionId/change-sets/:changeSetId/_cmd/continue。ChangeSet 必须属于该 session(turn 上已有changeSetId)。If-Match 绑 session revision。{stateDir}/workspace-grants.json;未知wsauth_*仍 403。绝对路径不进 Task/Event。未改 Renderer、protocol DTO、公共 Application 规则。
验证
pnpm --filter @workforce/daemon typecheck→ 0pnpm --filter @workforce/desktop typecheck→ 0未跑:Daemon Vitest / HTTP integration、全量
pnpm test、headed Electron、live Codex / live Planner。风险